Skip to main content

decrypt_chk

Function decrypt_chk 

Source
pub fn decrypt_chk(
    ciphertext: &[u8],
    key: &EncryptionKey,
) -> Result<Vec<u8>, CryptoError>
Expand description

CHK decrypt: derive key from content_hash, decrypt with zero nonce

The key parameter is the content_hash returned from encrypt_chk