Lines Matching refs:ZVec
30 pub use zvec::ZVec;
49 pub fn generate_aes256_key() -> Result<ZVec, Error> { in generate_aes256_key()
51 let mut key = ZVec::new(AES_256_KEY_LENGTH)?; in generate_aes256_key()
82 pub fn aes_gcm_decrypt(data: &[u8], iv: &[u8], tag: &[u8], key: &[u8]) -> Result<ZVec, Error> { in aes_gcm_decrypt() argument
99 let mut result = ZVec::new(data.len())?; in aes_gcm_decrypt()
163 Owned(ZVec),
183 pub fn derive_key(&self, salt: Option<&[u8]>, key_length: usize) -> Result<ZVec, Error> { in derive_key() argument
201 let mut result = ZVec::new(key_length)?; in derive_key()
218 Ok(Password::Owned(ZVec::try_from(self.get_key())?)) in try_clone()
223 pub fn hkdf_extract(secret: &[u8], salt: &[u8]) -> Result<ZVec, Error> { in hkdf_extract() argument
225 let mut buf = ZVec::new(max_size)?; in hkdf_extract()
253 pub fn hkdf_expand(out_len: usize, prk: &[u8], info: &[u8]) -> Result<ZVec, Error> { in hkdf_expand() argument
254 let mut buf = ZVec::new(out_len)?; in hkdf_expand()
316 pub fn ecdh_compute_key(pub_key: &EC_POINT, priv_key: &ECKey) -> Result<ZVec, Error> { in ecdh_compute_key() argument
317 let mut buf = ZVec::new(EC_MAX_BYTES)?; in ecdh_compute_key()
348 pub fn ec_key_marshal_private_key(key: &ECKey) -> Result<ZVec, Error> { in ec_key_marshal_private_key() argument
350 let mut buf = ZVec::new(len)?; in ec_key_marshal_private_key()