Function dryoc::classic::crypto_box::crypto_box_open_easy[][src]

pub fn crypto_box_open_easy(
    message: &mut [u8],
    ciphertext: &[u8],
    nonce: &Nonce,
    sender_public_key: &PublicKey,
    recipient_secret_key: &SecretKey
) -> Result<(), Error>
Expand description

Decrypts ciphertext with recipient’s secret key recipient_secret_key and sender’s public key sender_public_key using nonce.

Compatible with libsodium’s crypto_box_open_easy.