Avoid a conditional jump

This commit is contained in:
Frank Denis 2014-10-04 23:36:53 -07:00
parent d34743241e
commit e04f1b6854

View File

@ -28,7 +28,7 @@ crypto_sign_check_S_lt_l(const unsigned char *S)
n &= ((S[i] ^ l[i]) - 1) >> 8;
} while (i != 0);
return -(c == 0);
return ((int) c) - 1;
}
#endif