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:
parent
942b2b05e7
commit
bd04f92087
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user