Skip to main content

open_raw

Function open_raw 

Source
pub fn open_raw(
    ciphertext: &[u8],
    recipient_priv: &RecipientPrivateKey,
) -> Result<Vec<u8>, SealedError>
Expand description

Open a raw libsodium sealed-box ciphertext (as produced by seal_raw) with recipient_priv.

ยงErrors

Returns SealedError::Decrypt if the ciphertext fails authentication or is otherwise malformed.