Skip to content

Commit bb9d397

Browse files
committed
default ChaCha to ChaCha20
1 parent 385bae8 commit bb9d397

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/stream/chacha/chacha_setup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ int chacha_setup(chacha_state *st, const unsigned char *key, unsigned long keyle
3535
LTC_ARGCHK(key != NULL);
3636
LTC_ARGCHK(keylen == 32 || keylen == 16);
3737

38+
if (rounds == 0) rounds = 20;
39+
3840
LOAD32L(st->input[4], key + 0);
3941
LOAD32L(st->input[5], key + 4);
4042
LOAD32L(st->input[6], key + 8);

0 commit comments

Comments
 (0)