|
@@ -53,7 +53,8 @@ int chacha_setup(chacha_state *st, const unsigned char *key, unsigned long keyle
|
|
|
LOAD32L(st->input[1], constants + 4);
|
|
|
LOAD32L(st->input[2], constants + 8);
|
|
|
LOAD32L(st->input[3], constants + 12);
|
|
|
- st->rounds = rounds; /* e.g. 20 for chacha20 */
|
|
|
+ st->rounds = rounds; /* e.g. 20 for chacha20 */
|
|
|
+ st->ivlen = 0; /* will be set later by chacha_ivctr(32|64) */
|
|
|
return CRYPT_OK;
|
|
|
}
|
|
|
|