]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/rsa/rsa_pss.c
add zero strenght arguments to BN and RAND RNG calls
[thirdparty/openssl.git] / crypto / rsa / rsa_pss.c
index be1ea1f5995d69fc76e37319c27ee5fd6628058a..bca208340e24be35ae55958bcf53c8ed9e2ecc4f 100644 (file)
@@ -205,7 +205,7 @@ int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,
             ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE);
             goto err;
         }
-        if (RAND_bytes_ex(rsa->libctx, salt, sLen) <= 0)
+        if (RAND_bytes_ex(rsa->libctx, salt, sLen, 0) <= 0)
             goto err;
     }
     maskedDBLen = emLen - hLen - 1;