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

Method AddSessionKey

libi2pd/Garlic.cpp:465–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463 m_ECIESx25519Tags.clear ();
464 }
465 void GarlicDestination::AddSessionKey (const uint8_t * key, const uint8_t * tag)
466 {
467 if (key)
468 {
469 uint32_t ts = i2p::util::GetSecondsSinceEpoch ();
470 m_Tags[SessionTag(tag, ts)] = std::make_shared<AESDecryption>(key);
471 }
472 }
473
474 void GarlicDestination::AddECIESx25519Key (const uint8_t * key, const uint8_t * tag)
475 {

Callers 1

SubmitSessionKeyMethod · 0.80

Calls 2

GetSecondsSinceEpochFunction · 0.85
SessionTagClass · 0.85

Tested by

no test coverage detected