]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/bn/bn_blind.c
Make sure all BIGNUM operations work within the FIPS provider
[thirdparty/openssl.git] / crypto / bn / bn_blind.c
index e003f9a08fe20d57e3c5fb4247d6608c32a73af4..826f3f06aaf71acc368e67966b575b74d09a662f 100644 (file)
@@ -270,7 +270,7 @@ BN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b,
 
     do {
         int rv;
-        if (!BN_priv_rand_range(ret->A, ret->mod))
+        if (!BN_priv_rand_range_ex(ret->A, ret->mod, ctx))
             goto err;
         if (int_bn_mod_inverse(ret->Ai, ret->A, ret->mod, ctx, &rv))
             break;