pub fn decrypt_and_parse<T>(
key: &[u8; 32],
ciphertext: &[u8],
aad: &[u8],
) -> Result<T, CryptoError>where
T: DeserializeOwned,Expand description
Decrypt and parse a CBOR-encoded type.
Decrypts the ciphertext, then deserializes the plaintext as CBOR.