mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 19:41:41 +00:00
request ECIES encrypted reply for LeaseSet lookup with post-quantum crypto
This commit is contained in:
1 parent
3668a8a831
commit
0a51aa45ea
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user