MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / ProcessSessionConfirmedMessagePart1

Method ProcessSessionConfirmedMessagePart1

libi2pd/NTCP2.cpp:489–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487 }
488
489 bool NTCP2Establisher::ProcessSessionConfirmedMessagePart1 ()
490 {
491 // decrypt S, n = 1
492 if (!Decrypt (m_SessionConfirmedBuffer, m_RemoteStaticKey, 32))
493 {
494 LogPrint (eLogWarning, "NTCP2: SessionConfirmed Part1 AEAD verification failed ");
495 return false;
496 }
497 MixHash (m_SessionConfirmedBuffer, 48);
498 return true;
499 }
500
501 bool NTCP2Establisher::ProcessSessionConfirmedMessagePart2 (uint8_t * m3p2Buf)
502 {

Callers 1

Calls 1

LogPrintFunction · 0.85

Tested by

no test coverage detected