Update Makefile and some tests

This commit is contained in:
Zhi Guan
2022-03-03 09:30:30 +08:00
parent b885a07ea2
commit cea08178a2
18 changed files with 1502 additions and 224 deletions

View File

@@ -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) {