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

Method DecryptRecord

libi2pd/TunnelConfig.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 void TunnelHopConfig::DecryptRecord (uint8_t * records, int index) const
78 {
79 uint8_t * record = records + index*TUNNEL_BUILD_RECORD_SIZE;
80 i2p::crypto::CBCDecryption decryption;
81 decryption.SetKey (replyKey);
82 decryption.Decrypt(record, TUNNEL_BUILD_RECORD_SIZE, replyIV, record);
83 }
84
85 void ECIESTunnelHopConfig::EncryptECIES (const uint8_t * plainText, size_t len, uint8_t * encrypted)
86 {

Callers 2

BuildMethod · 0.45

Calls 3

ChaCha20Function · 0.85
SetKeyMethod · 0.45
DecryptMethod · 0.45

Tested by

no test coverage detected