Commit Graph

25 Commits

Author SHA1 Message Date
Jonathan Rudenberg 36a0b41364 Be defensive about short ciphertexts 2014-07-21 23:20:44 -07:00
Jonathan Rudenberg 23f8d99470 Remove four allocs by embedding chacha20.Cipher 2014-07-14 22:57:30 -07:00
Jonathan Rudenberg 8f09b6f6b7 Skip first block when rekeying 2014-07-13 23:43:55 -07:00
Jonathan Rudenberg d3253d3baa Update Noise255 to match changes in spec 2014-07-13 23:29:20 -07:00
Jonathan Rudenberg e0ed980c97 Update authtext to match noise spec changes 2014-07-13 23:00:24 -07:00
Jonathan Rudenberg fe90ef5cb4 Make sure authtext is the last arg for consistency 2014-07-13 22:52:42 -07:00
Jonathan Rudenberg 84d73f6f89 Add BodyLen, rename EncryptedLen to BoxLen 2014-07-10 22:14:51 -07:00
Jonathan Rudenberg 0ab5aed0b2 Move KDFNum to method param 2014-07-06 22:53:19 -07:00
Jonathan Rudenberg 33aa69fc14 Fix reversed extra and info 2014-07-06 14:40:04 -07:00
Jonathan Rudenberg 84c8891ca7 KDFNum is a uint8 2014-07-06 13:03:37 -07:00
Jonathan Rudenberg e36eb5dddd Refactor to prepare for pipes implementation 2014-07-06 09:45:39 -07:00
Jonathan Rudenberg 39d629fcc7 Use scratch buffer to build plaintext 2014-07-05 20:46:15 -07:00
Jonathan Rudenberg 67a4951c9d Fix KDF 2014-07-05 20:36:32 -07:00
Jonathan Rudenberg 0706221ff8 Untangle chaining variable and cipher context 2014-07-05 00:26:00 -07:00
Jonathan Rudenberg a98f07ba16
Remove 2 allocs by reusing CipherContext 2014-07-03 23:25:11 -07:00
Jonathan Rudenberg 6650461c89
Remove 2 allocs by using buffer for keystream 2014-07-03 22:46:30 -07:00
Jonathan Rudenberg 908c2ac8a2
Remove 9 allocs by using a buffer for key derivation 2014-07-03 22:42:20 -07:00
Jonathan Rudenberg e8ef3d40dd
Remove an alloc by pre-allocating the dest slice 2014-07-03 21:54:44 -07:00
Jonathan Rudenberg 903cbf641c
Fix authData comment 2014-07-03 21:28:18 -07:00
Jonathan Rudenberg b5b487a2fa
Remove plaintextLen from mac args 2014-07-03 21:27:05 -07:00
Jonathan Rudenberg 8a2dc23c1f
Add encrypt benchmark 2014-07-03 21:26:45 -07:00
Jonathan Rudenberg f585254b83
Add additional roundtrip to test 2014-07-03 21:12:06 -07:00
Jonathan Rudenberg 63cdf72db2
Somehow this works 2014-07-02 23:49:15 -07:00
Jonathan Rudenberg 16ad7c857e
Noise255 2014-06-17 23:29:23 -07:00
Jonathan Rudenberg 0fb25e45a1
Start sketching 2014-06-15 21:33:00 -07:00