mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
fixed build error
This commit is contained in:
parent
3540712517
commit
7d9893c614
@ -321,9 +321,6 @@ namespace crypto
|
|||||||
m_Ctx = EVP_PKEY_CTX_new (m_Pkey, NULL); // TODO: do we really need to re-create m_Ctx?
|
m_Ctx = EVP_PKEY_CTX_new (m_Pkey, NULL); // TODO: do we really need to re-create m_Ctx?
|
||||||
size_t len = 32;
|
size_t len = 32;
|
||||||
EVP_PKEY_get_raw_public_key (m_Pkey, m_PublicKey, &len);
|
EVP_PKEY_get_raw_public_key (m_Pkey, m_PublicKey, &len);
|
||||||
// TODO: remove
|
|
||||||
len = 32;
|
|
||||||
EVP_PKEY_get_raw_private_key (m_Pkey, m_PrivateKey, &len);
|
|
||||||
#else
|
#else
|
||||||
RAND_bytes (m_PrivateKey, 32);
|
RAND_bytes (m_PrivateKey, 32);
|
||||||
GetEd25519 ()->ScalarMulB (m_PrivateKey, m_PublicKey, m_Ctx);
|
GetEd25519 ()->ScalarMulB (m_PrivateKey, m_PublicKey, m_Ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user