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

Method Encrypt

libi2pd/LeaseSet.cpp:251–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 void LeaseSet::Encrypt (const uint8_t * data, uint8_t * encrypted) const
252 {
253 if (!m_EncryptionKey) return;
254 auto encryptor = m_Identity->CreateEncryptor (m_EncryptionKey);
255 if (encryptor)
256 encryptor->Encrypt (data, encrypted);
257 }
258
259 void LeaseSet::SetBuffer (const uint8_t * buf, size_t len)
260 {

Callers

nothing calls this directly

Calls 1

CreateEncryptorMethod · 0.80

Tested by

no test coverage detected