19#if PROTOCOL_VERSION < 759
26 void Init(
const std::vector<unsigned char>& pub_key,
const std::vector<unsigned char>& input_nonce,
27 std::vector<unsigned char>& raw_shared_secret, std::vector<unsigned char>& encrypted_nonce, std::vector<unsigned char>& encrypted_shared_secret);
28#elif PROTOCOL_VERSION < 761
37 void Init(
const std::vector<unsigned char>& pub_key,
const std::vector<unsigned char>& input_nonce,
const std::string& private_key,
38 std::vector<unsigned char>& raw_shared_secret, std::vector<unsigned char>& encrypted_shared_secret,
39 long long int& salt, std::vector<unsigned char>& salted_nonce_signature);
47 void Init(
const std::vector<unsigned char>& pub_key,
const std::vector<unsigned char>& input_nonce,
48 std::vector<unsigned char>& raw_shared_secret, std::vector<unsigned char>& encrypted_shared_secret,
49 std::vector<unsigned char>& encrypted_challenge);
51 std::vector<unsigned char>
Encrypt(
const std::vector<unsigned char>& in);
52 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.