Re: [PATCH net-next v5 07/20] zinc: Poly1305 generic C implementations and selftest

From
Jason A. Donenfeld <Jason@zx2c4.com>
Date
2018-09-19 01:39:28
Also in
linux-crypto, lkml
Reply to
Eric Biggers, 2018-09-19
quoted
+     const size_t num = ctx->num % POLY1305_BLOCK_SIZE;
0 <= ctx->num < POLY1305_BLOCK_SIZE, so no need to mod by POLY1305_BLOCK_SIZE.
quoted
+     size_t num = ctx->num % POLY1305_BLOCK_SIZE;
Same here.
I know, but I was having a hard time convincing gcc-8 of that
invariant, and it was warning me. Perhaps this is something they
fixed, though, between 8.1 and 8.2 though. I'll check back and adjust
accordingly.
Thread (65 messages) 65 messages, 9 authors, last reply 2018-09-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help