fix rsa_sign_saltlen_get_max_ex()

This commit is contained in:
Steffen Jaeckel 2013-09-04 22:45:29 +02:00
parent 25f4817d48
commit bf1ccb629b

View File

@ -29,7 +29,7 @@ int rsa_sign_saltlen_get_max_ex(int padding, int hash_idx, rsa_key *key)
int ret = INT_MAX;
LTC_ARGCHKVD(key != NULL);
if (hash_is_valid(hash_idx) &&
if ((hash_is_valid(hash_idx) == CRYPT_OK) &&
(padding == LTC_PKCS_1_PSS))
{
ret = rsa_get_size(key);