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

Method CreateSessionConfirmedMessagePart1

libi2pd/NTCP2.cpp:298–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296 }
297
298 bool NTCP2Establisher::CreateSessionConfirmedMessagePart1 ()
299 {
300 // part1 48 bytes, n = 1
301 if (!Encrypt (i2p::context.GetNTCP2StaticPublicKey (), m_SessionConfirmedBuffer, 32))
302 {
303 LogPrint (eLogWarning, "NTCP2: SessionConfirmed failed to encrypt part1");
304 return false;
305 }
306 return true;
307 }
308
309 bool NTCP2Establisher::CreateSessionConfirmedMessagePart2 ()
310 {

Callers 1

SendSessionConfirmedMethod · 0.80

Calls 2

LogPrintFunction · 0.85

Tested by

no test coverage detected