mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
call CryptoConstants from Crypto.cpp only
This commit is contained in:
parent
c3238f4d0b
commit
a994bbc36b
5 changed files with 80 additions and 70 deletions
|
@ -525,7 +525,9 @@ namespace client
|
|||
{
|
||||
EVP_PKEY * pkey = EVP_PKEY_new ();
|
||||
RSA * rsa = RSA_new ();
|
||||
RSA_generate_key_ex (rsa, 4096, i2p::crypto::rsae, NULL);
|
||||
BIGNUM * e = BN_dup (i2p::crypto::GetRSAE ());
|
||||
RSA_generate_key_ex (rsa, 4096, e, NULL);
|
||||
BN_free (e);
|
||||
if (rsa)
|
||||
{
|
||||
EVP_PKEY_assign_RSA (pkey, rsa);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue