Lines Matching defs:decrypt
4 //! used with the corresponding private key to decrypt the data.
8 //! Encrypt and decrypt data given an RSA keypair:
38 //! let decrypted_len = decrypter.decrypt(&encrypted, &mut decrypted).unwrap();
431 /// let decoded_len = decrypter.decrypt(&input, &mut decoded).unwrap();
440 pub fn decrypt(&self, from: &[u8], to: &mut [u8]) -> Result<usize, ErrorStack> {
455 /// Gets the size of the buffer needed to decrypt the input data.
509 let decoded_len = decrypter.decrypt(encoded, &mut decoded).unwrap();
540 let decoded_len = decrypter.decrypt(encoded, &mut decoded).unwrap();
567 let decoded_len = decrypter.decrypt(encoded, &mut decoded).unwrap();
576 assert!(decrypter.decrypt(encoded, &mut decoded).is_err());