Function sodiumoxide::crypto::box_::curve25519xsalsa20poly1305::open_precomputed [] [src]

pub fn open_precomputed(c: &[u8],
                        Nonce: &Nonce,
                        PrecomputedKey: &PrecomputedKey)
                        -> Result<Vec<u8>, ()>

open_precomputed() verifies and decrypts a ciphertext c using a precomputed key k and a nonce n. It returns a plaintext Ok(m). If the ciphertext fails verification, open_precomputed() returns Err(()).