mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-23 04:51:08 +00:00
Remove incorrect and unnecessary casts.
This commit is contained in:
parent
cfd3951ee1
commit
94720a2fff
1 changed files with 1 additions and 1 deletions
|
@ -2062,7 +2062,7 @@ t_chacha_keystream(char **desc, void *arg)
|
||||||
t->desc, t->keylen * 8, t->rounds);
|
t->desc, t->keylen * 8, t->rounds);
|
||||||
chacha_init(&ctx, CIPHER_MODE_ENCRYPT, t->key, t->keylen);
|
chacha_init(&ctx, CIPHER_MODE_ENCRYPT, t->key, t->keylen);
|
||||||
chacha_reset(&ctx, t->iv, t->rounds);
|
chacha_reset(&ctx, t->iv, t->rounds);
|
||||||
ret &= t_compare_mem((void *)t->state, (void *)ctx.state, 64);
|
ret &= t_compare_mem(t->state, ctx.state, 64);
|
||||||
len = chacha_keystream(&ctx, out, sizeof out);
|
len = chacha_keystream(&ctx, out, sizeof out);
|
||||||
chacha_finish(&ctx);
|
chacha_finish(&ctx);
|
||||||
ret &= t_compare_sz(sizeof out, len) &
|
ret &= t_compare_sz(sizeof out, len) &
|
||||||
|
|
Loading…
Reference in a new issue