Skip to main content

seal_box_decrypt

Function seal_box_decrypt 

Source
pub fn seal_box_decrypt(
    ciphertext: &[u8],
    recipient_x25519_sk: &[u8; 32],
) -> Result<Vec<u8>, KeyError>
Expand description

Decrypt a sealed box using the recipient’s X25519 secret key. crypto_box::SecretKey::unseal derives the recipient public key internally.