Skip to main content

decrypt_and_parse

Function decrypt_and_parse 

Source
pub fn decrypt_and_parse<T>(
    key: &[u8; 32],
    ciphertext: &[u8],
    aad: &[u8],
) -> CryptoResult<T>
Expand description

Decrypt and parse a CBOR-encoded type.

Decrypts the ciphertext, then deserializes the plaintext as CBOR.