This commit is contained in:
Nils Larsch
2005-04-23 12:46:24 +00:00
parent 132f25950b
commit b07a7b5daa
2 changed files with 5 additions and 5 deletions

View File

@@ -281,7 +281,7 @@ static int dsa_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig,
{ {
mont = BN_MONT_CTX_set_locked( mont = BN_MONT_CTX_set_locked(
(BN_MONT_CTX **)&dsa->method_mont_p, (BN_MONT_CTX **)&dsa->method_mont_p,
CRYPTO_LOCK_DSA, dsa->p, ctx)); CRYPTO_LOCK_DSA, dsa->p, ctx);
if (!mont) if (!mont)
goto err; goto err;
} }

View File

@@ -148,7 +148,7 @@ static int RSA_eay_public_encrypt(int flen, const unsigned char *from,
if (rsa->flags & RSA_FLAG_CACHE_PUBLIC) if (rsa->flags & RSA_FLAG_CACHE_PUBLIC)
{ {
if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_n, if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_n,
CRYPTO_LOCK_RSA, rsa->n, ctx) CRYPTO_LOCK_RSA, rsa->n, ctx))
goto err; goto err;
} }
@@ -521,7 +521,7 @@ static int RSA_eay_public_decrypt(int flen, const unsigned char *from,
if (rsa->flags & RSA_FLAG_CACHE_PUBLIC) if (rsa->flags & RSA_FLAG_CACHE_PUBLIC)
{ {
if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_n, if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_n,
CRYPTO_LOCK_RSA, rsa->n, ctx) CRYPTO_LOCK_RSA, rsa->n, ctx))
goto err; goto err;
} }
@@ -572,10 +572,10 @@ static int RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa)
if (rsa->flags & RSA_FLAG_CACHE_PRIVATE) if (rsa->flags & RSA_FLAG_CACHE_PRIVATE)
{ {
if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_p, if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_p,
CRYPTO_LOCK_RSA, rsa->p, ctx) CRYPTO_LOCK_RSA, rsa->p, ctx))
goto err; goto err;
if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_q, if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_q,
CRYPTO_LOCK_RSA, rsa->q, ctx) CRYPTO_LOCK_RSA, rsa->q, ctx))
goto err; goto err;
} }