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.