mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 08:56:17 +08:00
fix the incorrect pexp index
fix the incorrect pexp index
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user