Lines Matching refs:encrypted
18 //! let mut encrypted = vec![0; secret.len() + cipher.block_size()];
20 //! let mut enc_len = seal.update(secret, &mut encrypted).unwrap();
21 //! enc_len += seal.finalize(&mut encrypted[enc_len..]).unwrap();
22 //! encrypted.truncate(enc_len);
64 /// Returns the encrypted keys.
69 /// Feeds data from `input` through the cipher, writing encrypted bytes into `output`.
168 let mut encrypted = vec![0; secret.len() + cipher.block_size()];
169 let mut enc_len = seal.update(secret, &mut encrypted).unwrap();
170 enc_len += seal.finalize(&mut encrypted[enc_len..]).unwrap();
176 let mut dec_len = open.update(&encrypted[..enc_len], &mut decrypted).unwrap();