fix potential timing attacks in rsa, eax, ocb and ocb3

This commit is contained in:
Steffen Jaeckel
2017-06-20 15:55:35 +02:00
parent b03b93099d
commit 05e28d6cfa
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ int rsa_verify_hash_ex(const unsigned char *sig, unsigned long siglen,
} else {
/* only check if the hash is equal */
if ((hashlen == outlen) &&
(XMEMCMP(out, hash, hashlen) == 0)) {
(XMEM_NEQ(out, hash, hashlen) == 0)) {
*stat = 1;
}
}