From 0a51aa45ea2878a8c6ff2055d15c91b00504de1d Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 10 Jun 2026 14:07:09 -0400 Subject: [PATCH] request ECIES encrypted reply for LeaseSet lookup with post-quantum crypto --- libi2pd/Destination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/Destination.cpp b/libi2pd/Destination.cpp index 8f515f3e..7678465c 100644 --- a/libi2pd/Destination.cpp +++ b/libi2pd/Destination.cpp @@ -863,7 +863,7 @@ namespace client request->excluded.insert (nextFloodfill->GetIdentHash ()); request->requestTimeoutTimer.cancel (); - bool isECIES = SupportsEncryptionType (i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD) && + bool isECIES = GetRatchetsHighestCryptoType () > 0 && nextFloodfill->GetVersion () >= MAKE_VERSION_NUMBER(0, 9, 46); // >= 0.9.46; uint8_t replyKey[32], replyTag[32]; RAND_bytes (replyKey, 32); // random session key