Clear Coverity issue CID 186337

pull/552/head
Jeffrey Walton 2017-12-27 00:43:00 -05:00
parent 3b1f6827f5
commit 24883ca79f
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ inline void SIMON_Decrypt(W p[2], const W c[2], const W k[R])
p[0]=c[0]; p[1]=c[1]; p[0]=c[0]; p[1]=c[1];
unsigned int rounds = R; unsigned int rounds = R;
if (rounds & 1) if (R & 1)
{ {
const W t = p[1]; p[1] = p[0]; p[0] = t; const W t = p[1]; p[1] = p[0]; p[0] = t;
p[1] ^= k[rounds - 1]; p[1] ^= f(p[0]); p[1] ^= k[rounds - 1]; p[1] ^= f(p[0]);