24#if PROTOCOL_VERSION < 759
31 void Init(
const std::vector<unsigned char>& pub_key,
const std::vector<unsigned char>& input_nonce,
32 std::vector<unsigned char>& raw_shared_secret, std::vector<unsigned char>& encrypted_nonce, std::vector<unsigned char>& encrypted_shared_secret);
33#elif PROTOCOL_VERSION < 761
42 void Init(
const std::vector<unsigned char>& pub_key,
const std::vector<unsigned char>& input_nonce,
RSA* private_key,
43 std::vector<unsigned char>& raw_shared_secret, std::vector<unsigned char>& encrypted_shared_secret,
44 long long int& salt, std::vector<unsigned char>& salted_nonce_signature);
52 void Init(
const std::vector<unsigned char>& pub_key,
const std::vector<unsigned char>& input_nonce,
53 std::vector<unsigned char>& raw_shared_secret, std::vector<unsigned char>& encrypted_shared_secret,
54 std::vector<unsigned char>& encrypted_challenge);
56 std::vector<unsigned char>
Encrypt(
const std::vector<unsigned char>& in);
57 std::vector<unsigned char>
Decrypt(
const std::vector<unsigned char>& in);
void Init(const std::vector< unsigned char > &pub_key, const std::vector< unsigned char > &input_nonce, std::vector< unsigned char > &raw_shared_secret, std::vector< unsigned char > &encrypted_shared_secret, std::vector< unsigned char > &encrypted_challenge)
Initialize the encryption context for this connection.