Remove incorrect and unnecessary casts.

This commit is contained in:
Dag-Erling Smørgrav 2017-03-16 18:07:24 +01:00
parent cfd3951ee1
commit 94720a2fff

View file

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