mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Update Makefile and some tests
This commit is contained in:
@@ -80,7 +80,7 @@ int main(void)
|
||||
unsigned char buf[64];
|
||||
|
||||
CHACHA20_STATE state;
|
||||
chacha20_set_key(&state, key, nonce, counter);
|
||||
chacha20_init(&state, key, nonce, counter);
|
||||
chacha20_generate_keystream(&state, 1, buf);
|
||||
|
||||
if (memcmp(buf, testdata, sizeof(testdata)) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user