From b3586a2826ba855025575e00e40576c867504dcc Mon Sep 17 00:00:00 2001 From: ZZMarquis Date: Wed, 16 Jan 2019 10:38:23 +0800 Subject: [PATCH] fix the incorrect pexp index fix the incorrect pexp index --- crypto/gmapi/gmapi_sdf_rsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/gmapi/gmapi_sdf_rsa.c b/crypto/gmapi/gmapi_sdf_rsa.c index 463f12f1..64136b8a 100644 --- a/crypto/gmapi/gmapi_sdf_rsa.c +++ b/crypto/gmapi/gmapi_sdf_rsa.c @@ -244,7 +244,7 @@ int RSA_set_RSArefPrivateKey(RSA *rsa, const RSArefPrivateKey *ref) || !(p = BN_bin2bn(ref->prime[0], sizeof(ref->prime[0]), NULL)) || !(q = BN_bin2bn(ref->prime[1], sizeof(ref->prime[1]), NULL)) || !(dmp1 = BN_bin2bn(ref->pexp[0], sizeof(ref->pexp[0]), NULL)) - || !(dmq1 = BN_bin2bn(ref->pexp[0], sizeof(ref->pexp[1]), NULL)) + || !(dmq1 = BN_bin2bn(ref->pexp[1], sizeof(ref->pexp[1]), NULL)) || !(iqmp = BN_bin2bn(ref->coef, sizeof(ref->coef), NULL))) { GMAPIerr(GMAPI_F_RSA_SET_RSAREFPRIVATEKEY, ERR_R_BN_LIB); goto end;