Function proj_crypto::asymmetric::key_exchange::key_exchange
[−]
[src]
pub fn key_exchange(pub_key: &PublicKey,
sec_key: &SecretKey,
other_pub_key: &PublicKey,
is_client: bool)
-> Digest
Function to perform key exchange.
The second public key is for key derivation from the X-co-ordinate, which alone does not possess enough entropy. See https://download.libsodium.org/doc/advanced/scalar_multiplication.html