1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-02-02 06:54:15 +00:00

correct public key for ECIES address

This commit is contained in:
orignal 2020-11-03 18:41:27 -05:00
parent 942b2b05e7
commit bd04f92087

View File

@ -51,7 +51,7 @@ namespace data
if (cryptoType == CRYPTO_KEY_TYPE_ECIES_X25519_AEAD_RATCHET) if (cryptoType == CRYPTO_KEY_TYPE_ECIES_X25519_AEAD_RATCHET)
{ {
memcpy (m_StandardIdentity.publicKey, publicKey, 32); memcpy (m_StandardIdentity.publicKey, publicKey, 32);
RAND_bytes (m_StandardIdentity.publicKey, 224); RAND_bytes (m_StandardIdentity.publicKey + 32, 224);
} }
else else
memcpy (m_StandardIdentity.publicKey, publicKey, 256); memcpy (m_StandardIdentity.publicKey, publicKey, 256);