pub fn decrypt_bytes(&self, encoded: &[u8]) -> Result<Vec<u8>, DecryptionError> {
        let CipherText { nonce, ciphertext } = deserialize(encoded)?;
        box_::open_precomputed(&ciphertext, &box_::Nonce(nonce), &self.precomputed)
            .map_err(DecryptionError::GenericDecryptionError)
    }
/// Decrypts bytestring `encoded` encrypted using authenticated encryption.
///
/// With authenticated encryption we will be able to verify the authenticity
/// of the sender using a sender's public key.
///
/// Returns plaintext 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 bytestring `encoded` encrypted using authenticated encryption.
With authenticated encryption we will be able to verify the authenticity
of the sender using a sender's public key.

Returns plaintext 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 bytestring ` encoded ` encrypted using authenticated encryption . With authenticated encryption we will be able to verify the authenticity of the sender using a sender ' s public key . Returns plaintext 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_bytes(&self, encoded: &[u8]) -> Result<Vec<u8>, DecryptionError> {
        let CipherText { nonce, ciphertext } = deserialize(encoded)?;
        box_::open_precomputed(&ciphertext, &box_::Nonce(nonce), &self.precomputed)
            .map_err(DecryptionError::GenericDecryptionError)
    }
pub fn decrypt_bytes ( & self , encoded : & [ u8 ] ) -> Result < Vec < u8 > , DecryptionError > { let CipherText { nonce , ciphertext } = deserialize ( encoded ) ? ; box_ :: open_precomputed ( & ciphertext , & box_ :: Nonce ( nonce ) , & self . precomputed ) . map_err ( DecryptionError :: GenericDecryptionError ) }
Decrypts bytestring `encoded` encrypted using authenticated encryption.
Decrypts bytestring ` encoded ` encrypted using authenticated encryption .
&self
encoded
&[u8]
&self
encoded
&[u8]