diff --git a/src/framework/util/crypt.cpp b/src/framework/util/crypt.cpp index 173c64d4..b72b653a 100644 --- a/src/framework/util/crypt.cpp +++ b/src/framework/util/crypt.cpp @@ -267,7 +267,7 @@ void Crypt::rsaSetPrivateKey(const std::string& p, const std::string& q, const s mpz_set_str(m_d, d.c_str(), 10); // n = p * q - mpz_mul(n, p, q); + mpz_mul(m_n, m_p, m_q); #else #if OPENSSL_VERSION_NUMBER < 0x10100005L BN_dec2bn(&m_rsa->p, p.c_str());