{"push_id":697564178,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"92b443882f054a3cc6275a70438c77caac012c06","before":"421d626c7e3c679b44ed5a1681f39924fd105a53","commits":[{"sha":"85d59e7bf30afa7ffaccf1baedffc5f29bf54999","author":{"email":"e061f67722aec5b08a1d745fb7ec8d6e6fd586f0@gmail.com","name":"Patrik Wenger"},"message":"refactor C API\n\n* salsa20_first_bytes returns a pointer to newly allocated memory\n  (already XOR'd with key stream)\n* DRYer\n* much nicher C API with custom functions for 20/12/8 round variants\n\n=> new speed record: up to ~82k encryptions/s for small messages\n\nSMALL MESSAGES\n==============\nmessage size: 40 bytes\nencryption:\n-----------\nCalculating -------------------------------------\nFFI::Salsa20/20 + FFI::Poly1305\n                         7.532k i/100ms\nFFI::Salsa20/12 + FFI::Poly1305\n                         7.609k i/100ms\nFFI::Salsa20/8 + FFI::Poly1305\n                         7.895k i/100ms\n     FFI::Salsa20/20     1.986k i/100ms\n     FFI::Salsa20/12     2.040k i/100ms\n      FFI::Salsa20/8     2.083k i/100ms\n          Salsa20/20   343.000  i/100ms\n          Salsa20/12   460.000  i/100ms\n           Salsa20/8   536.000  i/100ms\n         XSalsa20/20   274.000  i/100ms\n         XSalsa20/12   379.000  i/100ms\n          XSalsa20/8   452.000  i/100ms\n            ChaCha20   304.000  i/100ms\n            ChaCha12   410.000  i/100ms\n             ChaCha8   482.000  i/100ms\n-------------------------------------------------\nFFI::Salsa20/20 + FFI::Poly1305\n                         82.052k (± 3.2%) i/s -    414.260k\nFFI::Salsa20/12 + FFI::Poly1305\n                         83.628k (± 4.0%) i/s -    418.495k\nFFI::Salsa20/8 + FFI::Poly1305\n                         84.783k (± 4.6%) i/s -    426.330k\n     FFI::Salsa20/20     21.291k (± 3.7%) i/s -    107.244k\n     FFI::Salsa20/12     21.384k (± 4.1%) i/s -    108.120k\n      FFI::Salsa20/8     21.335k (± 4.3%) i/s -    108.316k\n          Salsa20/20      3.618k (± 3.8%) i/s -     18.179k\n          Salsa20/12      4.697k (± 4.9%) i/s -     23.460k\n           Salsa20/8      5.471k (± 5.5%) i/s -     27.336k\n         XSalsa20/20      2.730k (± 3.7%) i/s -     13.700k\n         XSalsa20/12      3.661k (± 4.8%) i/s -     18.571k\n          XSalsa20/8      4.491k (± 7.1%) i/s -     22.600k\n            ChaCha20      2.854k (± 5.9%) i/s -     14.288k\n            ChaCha12      3.962k (± 6.1%) i/s -     20.090k\n             ChaCha8      4.831k (± 5.1%) i/s -     24.582k","distinct":true,"url":"https://api.github.com/repos/paddor/djb-crypto/commits/85d59e7bf30afa7ffaccf1baedffc5f29bf54999"},{"sha":"92b443882f054a3cc6275a70438c77caac012c06","author":{"email":"e061f67722aec5b08a1d745fb7ec8d6e6fd586f0@gmail.com","name":"Patrik Wenger"},"message":"add test C program\n\nprepare for command line utilities crypto_box and crypto_open","distinct":true,"url":"https://api.github.com/repos/paddor/djb-crypto/commits/92b443882f054a3cc6275a70438c77caac012c06"}]}