Browse Source

correct public key for ECIES address

pull/1553/merge
orignal 4 years ago
parent
commit
bd04f92087
  1. 2
      libi2pd/Identity.cpp

2
libi2pd/Identity.cpp

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

Loading…
Cancel
Save