mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
correct message size for ECIESx25519
This commit is contained in:
parent
f651baab25
commit
376bf6ba72
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ namespace garlic
|
||||||
// tag not found. Handle depending on encryption type
|
// tag not found. Handle depending on encryption type
|
||||||
if (GetEncryptionType () == i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD_RARCHET)
|
if (GetEncryptionType () == i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD_RARCHET)
|
||||||
{
|
{
|
||||||
HandleECIESx25519 (buf, length - 4);
|
HandleECIESx25519 (buf, length);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// otherwise assume ElGamal/AES
|
// otherwise assume ElGamal/AES
|
||||||
|
|
Loading…
Add table
Reference in a new issue