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

Method HandleECIESx25519TagMessage

libi2pd/Garlic.cpp:570–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568 }
569
570 bool GarlicDestination::HandleECIESx25519TagMessage (uint8_t * buf, size_t len)
571 {
572 uint64_t tag;
573 memcpy (&tag, buf, 8);
574 auto it = m_ECIESx25519Tags.find (tag);
575 if (it != m_ECIESx25519Tags.end ())
576 {
577 if (!it->second.tagset || !it->second.tagset->HandleNextMessage (buf, len, it->second.index))
578 LogPrint (eLogError, "Garlic: Can't handle ECIES-X25519-AEAD-Ratchet message");
579 m_ECIESx25519Tags.erase (it);
580 return true;
581 }
582 return false;
583 }
584
585 void GarlicDestination::HandleAESBlock (uint8_t * buf, size_t len, std::shared_ptr<AESDecryption> decryption,
586 std::shared_ptr<i2p::tunnel::InboundTunnel> from)

Callers

nothing calls this directly

Calls 2

LogPrintFunction · 0.85
HandleNextMessageMethod · 0.45

Tested by

no test coverage detected