| 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 | { |
no test coverage detected