all ratchets types are eligible for ECIESx25519

This commit is contained in:
orignal committed 2025-04-04 19:52:32 -04:00
1 parent 8ca74a3e1d
commit bce0ccf161
5 files changed
+14 -2

No files matched your search

+2 -2
View File
@@ -498,7 +498,7 @@ namespace garlic
buf += 4; // length
bool found = false;
if (SupportsEncryptionType (i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD))
if (SupportsRatchets ())
// try ECIESx25519 tag
found = HandleECIESx25519TagMessage (buf, length);
if (!found)
@@ -535,7 +535,7 @@ namespace garlic
decryption->Decrypt(buf + 514, length - 514, iv, buf + 514);
HandleAESBlock (buf + 514, length - 514, decryption, msg->from);
}
else if (SupportsEncryptionType (i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD))
else if (SupportsRatchets ())
{
// otherwise ECIESx25519
auto ts = i2p::util::GetMillisecondsSinceEpoch ();