pub fn decrypt(
encrypted: &EncryptedPayload,
secret: &[u8],
) -> Result<Vec<u8>, CodecError>Expand description
Decrypts ciphertext that was encrypted with encrypt.
pub fn decrypt(
encrypted: &EncryptedPayload,
secret: &[u8],
) -> Result<Vec<u8>, CodecError>Decrypts ciphertext that was encrypted with encrypt.