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

Method GetPayloadBuffer

libi2pd/Garlic.cpp:1116–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114 }
1115
1116 uint8_t * GarlicDestination::GetPayloadBuffer ()
1117 {
1118 if (!m_PayloadBuffer)
1119 m_PayloadBuffer = new uint8_t[I2NP_MAX_MESSAGE_SIZE];
1120 return m_PayloadBuffer;
1121 }
1122
1123 bool GarlicDestination::AEADChaCha20Poly1305Encrypt (const uint8_t * msg, size_t msgLen, const uint8_t * ad, size_t adLen,
1124 const uint8_t * key, const uint8_t * nonce, uint8_t * buf, size_t len)

Callers 2

WrapSingleMessageMethod · 0.80
WrapMultipleMessagesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected