pub fn decrypt<T>(&self, ciphertext: &[u8]) -> Result<T, DecryptionError>
    where
        T: DeserializeOwned + Serialize,
    {
        Ok(deserialize(&self.decrypt_bytes(ciphertext)?)?)
    }
/// Decrypts serialized `ciphertext` encrypted using authenticated symmetric encryption.
///
/// With authenticated encryption we will be able to tell that the message hasn't been
/// tampered with.
///
/// Returns deserialized type `T` in case of success.
/// Can return `Error` in case of a deserialisation error, if the ciphertext
/// is not valid, or if it can not be decrypted.
Decrypts serialized `ciphertext` encrypted using authenticated symmetric encryption.
With authenticated encryption we will be able to tell that the message hasn't been
tampered with.

Returns deserialized type `T` in case of success.
Can return `Error` in case of a deserialisation error, if the ciphertext
is not valid, or if it can not be decrypted.
Decrypts serialized ` ciphertext ` encrypted using authenticated symmetric encryption . With authenticated encryption we will be able to tell that the message hasn ' t been tampered with . Returns deserialized type ` T ` in case of success . Can return ` Error ` in case of a deserialisation error if the ciphertext is not valid or if it can not be decrypted .
pub fn decrypt<T>(&self, ciphertext: &[u8]) -> Result<T, DecryptionError>
    where
        T: DeserializeOwned + Serialize,
    {
        Ok(deserialize(&self.decrypt_bytes(ciphertext)?)?)
    }
pub fn decrypt < T > ( & self , ciphertext : & [ u8 ] ) -> Result < T , DecryptionError > where T : DeserializeOwned + Serialize , { Ok ( deserialize ( & self . decrypt_bytes ( ciphertext ) ? ) ? ) }
Decrypts serialized `ciphertext` encrypted using authenticated symmetric encryption.
Decrypts serialized ` ciphertext ` encrypted using authenticated symmetric encryption .
&self
ciphertext
&[u8]
&self
ciphertext
&[u8]