Commit Graph

4 Commits

Author SHA1 Message Date
Christian Bundy
a40b363726 Fix test with wrong buffer size
Problem: For some reason the test sets `c` to 147 + 16 bytes, when we
only need 147 bytes. It's unclear to me why this is happening, but I can
confirm that Sodium-Native throws an error if you try this.

Solution: Use 147 bytes until I figure out what the problem is.
2020-09-01 14:22:55 -07:00
Christian Bundy
f710e35ed2 Remove unused open functions 2020-09-01 14:17:03 -07:00
Christian Bundy
3b75fe02e3 Add improvements from initial review 2020-09-01 14:01:58 -07:00
Christian Bundy
f36deb3334 Start porting box_easy test
This doesn't have the same output as you'd find at:

https://github.com/jedisct1/libsodium/blob/master/test/default/box_easy.exp

I don't know why, but I'm confident that I'm doing something wrong. I'm
very concerned about why my test has `c` with a length of 146 (which is
the length of the message plus 16 bytes for the HMAC) but the original
test has an *extra* 16 bytes... for another HMAC? I don't know.
2020-08-28 15:27:29 -07:00