Browse Source

correct message size for ECIESx25519

pull/1456/head
orignal 5 years ago
parent
commit
376bf6ba72
  1. 2
      libi2pd/Garlic.cpp

2
libi2pd/Garlic.cpp

@ -457,7 +457,7 @@ namespace garlic @@ -457,7 +457,7 @@ namespace garlic
// tag not found. Handle depending on encryption type
if (GetEncryptionType () == i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD_RARCHET)
{
HandleECIESx25519 (buf, length - 4);
HandleECIESx25519 (buf, length);
return;
}
// otherwise assume ElGamal/AES

Loading…
Cancel
Save