Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt<const PLAINTEXT_SIZE: usize>(
    shared_secret_key: &JubJubAffine,
    salt: &[u8],
    encryption: &[u8],
) -> Result<[u8; PLAINTEXT_SIZE], Error>
Expand description

Decrypts an encryption (nonce + ciphertext) given a shared DH secret key, returning the plaintext