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)
{
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);