summaryrefslogtreecommitdiffstats
path: root/crypto/engine/eng_rsax.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/engine/eng_rsax.c')
-rw-r--r--crypto/engine/eng_rsax.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/engine/eng_rsax.c b/crypto/engine/eng_rsax.c
index 173aaf8d34..96e63477ee 100644
--- a/crypto/engine/eng_rsax.c
+++ b/crypto/engine/eng_rsax.c
@@ -399,6 +399,7 @@ static int mod_exp_pre_compute_data_512(UINT64 *m, struct mod_ctx_512 *data)
/* Some tmps */
UINT64 _t[8];
int i, j, ret = 0;
+
/* Init _m with m */
BN_init(&_m);
interleaved_array_to_bn_512(&_m, m);
@@ -492,6 +493,7 @@ static int e_rsax_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx
BIGNUM local_dmp1,local_dmq1,local_c,local_r1;
BIGNUM *dmp1,*dmq1,*c,*pr1;
int ret=0;
+
BN_CTX_start(ctx);
r1 = BN_CTX_get(ctx);
m1 = BN_CTX_get(ctx);