diff options
-rw-r--r-- | crypto/bn/bntest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/bn/bntest.c b/crypto/bn/bntest.c index 86d384428c..9e478dfe24 100644 --- a/crypto/bn/bntest.c +++ b/crypto/bn/bntest.c @@ -629,6 +629,9 @@ int test_mont(BIO *bp, BN_CTX *ctx) BN_rand(&n,bits,0,1); BN_MONT_CTX_set(mont,&n,ctx); + BN_nnmod(&a,&a,&n,ctx); + BN_nnmod(&b,&b,&n,ctx); + BN_to_montgomery(&A,&a,mont,ctx); BN_to_montgomery(&B,&b,mont,ctx); |