separate decryption between own record and other records

This commit is contained in:
orignal 2021-07-02 13:20:24 -04:00
parent ff0e23d2c4
commit 8b35ce3320
3 changed files with 42 additions and 18 deletions

View file

@ -43,6 +43,7 @@ namespace tunnel
void CreateBuildRequestRecord (uint8_t * record, uint32_t replyMsgID, BN_CTX * ctx);
void EncryptECIES (std::shared_ptr<i2p::crypto::CryptoKeyEncryptor>& encryptor,
const uint8_t * clearText, uint8_t * encrypted, BN_CTX * ctx);
bool DecryptBuildResponseRecord (const uint8_t * encrypted, uint8_t * clearText);
};
class TunnelConfig