Skip to content

Commit a1d2050

Browse files
committed
Always use e=65537 for RSA_PublicKey::generate_another
1 parent ec6a22c commit a1d2050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/pubkey/rsa/rsa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const BigInt& RSA_PublicKey::get_int_field(std::string_view field) const {
142142
}
143143

144144
std::unique_ptr<Private_Key> RSA_PublicKey::generate_another(RandomNumberGenerator& rng) const {
145-
return std::make_unique<RSA_PrivateKey>(rng, m_public->public_modulus_bits(), m_public->get_e().to_u32bit());
145+
return std::make_unique<RSA_PrivateKey>(rng, m_public->public_modulus_bits(), 65537);
146146
}
147147

148148
const BigInt& RSA_PublicKey::get_n() const {

0 commit comments

Comments
 (0)