Skip to content

Commit cf0fd73

Browse files
committed
Prefer PQ path by removing random NTCP2 downgrade
1 parent 3dc9c92 commit cf0fd73

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

libi2pd/NTCP2.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,6 @@ namespace transport
11961196

11971197
void NTCP2Session::ClientLogin ()
11981198
{
1199-
if (m_Establisher->m_CryptoType > i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD && !(m_Server.GetRng ()() & 0x03))
1200-
m_Establisher->SetVersion (2); // switch to non-PQ with a probability of one in four
12011199
LogPrint (eLogDebug, "NTCP2: Login crypto type ", (int)m_Establisher->m_CryptoType);
12021200
m_Establisher->CreateEphemeralKey ();
12031201
boost::asio::post (m_Server.GetEstablisherService (),

0 commit comments

Comments
 (0)