-
Notifications
You must be signed in to change notification settings - Fork 484
Streams - add single call crypt functions #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
sjaeckel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
src/stream/chacha/chacha_test.c
Outdated
| if ((err = chacha_ivctr64(&st, n + 4, sizeof(n) - 4, 1)) != CRYPT_OK) return err; | ||
| if ((err = chacha_crypt(&st, (unsigned char*)pt, len, out)) != CRYPT_OK) return err; | ||
| if (compare_testvector(out, len, ct, sizeof(ct), "CHACHA-TV3", 1)) return CRYPT_FAIL_TESTVECTOR; | ||
| /* crypt in a single call using 64-bit counter with a value of 1 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a second testcase that also hits chacha_ivctr32().
fix mixed declarations and code add _memory chacha_ivctr32() test
b31130f to
13bc14d
Compare
|
I took the freedom to rebase everything on top of develop and clean up the duplicate commits :) |
13bc14d to
a2b343b
Compare
|
On 10Sep, 2018, at 2:37 AM, Steffen Jaeckel ***@***.***> wrote:
I took the freedom to rebase everything on top of develop and clean up the duplicate commits :)
Thanks. ...but the git log graph looks funny. ...and certainly not like it was after my rebase/squash. ??? May I assume it is fixable? ...how?
|
sjaeckel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should include these xx_memory() implementations in the single c files where there's only a single file for now!
@karel-m what do you think?
@buggywhip sorry, I didn't see that before!
I am for keeping |
|
Good point I didn't think about! |
Added single-call crypt functions to each of the stream ciphers using the <cipher>_memory() naming convention.
Checklist