Function dryoc::classic::crypto_box::crypto_box_beforenm
source · pub fn crypto_box_beforenm(
public_key: &PublicKey,
secret_key: &SecretKey
) -> Key
Expand description
Computes a shared secret for the given public_key
and private_key
.
Resulting shared secret can be used with the precalculation interface.
Compatible with libsodium’s crypto_box_beforenm
.