We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 385bae8 commit bb9d397Copy full SHA for bb9d397
1 file changed
src/stream/chacha/chacha_setup.c
@@ -35,6 +35,8 @@ int chacha_setup(chacha_state *st, const unsigned char *key, unsigned long keyle
35
LTC_ARGCHK(key != NULL);
36
LTC_ARGCHK(keylen == 32 || keylen == 16);
37
38
+ if (rounds == 0) rounds = 20;
39
+
40
LOAD32L(st->input[4], key + 0);
41
LOAD32L(st->input[5], key + 4);
42
LOAD32L(st->input[6], key + 8);
0 commit comments