• Home
  • Raw
  • Download

Lines Matching refs:u8

60 pub fn generate_salt() -> Result<Vec<u8>, Error> {  in generate_salt()
65 pub fn generate_random_data(size: usize) -> Result<Vec<u8>, Error> { in generate_random_data() argument
82 pub fn aes_gcm_decrypt(data: &[u8], iv: &[u8], tag: &[u8], key: &[u8]) -> Result<ZVec, Error> { in aes_gcm_decrypt() argument
124 pub fn aes_gcm_encrypt(plaintext: &[u8], key: &[u8]) -> Result<(Vec<u8>, Vec<u8>, Vec<u8>), Error> { in aes_gcm_encrypt() argument
136 let mut ciphertext: Vec<u8> = vec![0; plaintext.len()]; in aes_gcm_encrypt()
137 let mut tag: Vec<u8> = vec![0; TAG_LENGTH]; in aes_gcm_encrypt()
161 Ref(&'a [u8]),
166 impl<'a> From<&'a [u8]> for Password<'a> {
167 fn from(pw: &'a [u8]) -> Self { in from()
173 fn get_key(&'a self) -> &'a [u8] { in get_key() argument
183 pub fn derive_key(&self, salt: Option<&[u8]>, key_length: usize) -> Result<ZVec, Error> { in derive_key() argument
186 let salt: *const u8 = match salt { in derive_key() constant
223 pub fn hkdf_extract(secret: &[u8], salt: &[u8]) -> Result<ZVec, Error> { in hkdf_extract() argument
253 pub fn hkdf_expand(out_len: usize, prk: &[u8], info: &[u8]) -> Result<ZVec, Error> { in hkdf_expand() argument
364 pub fn ec_key_parse_private_key(buf: &[u8]) -> Result<ECKey, Error> { in ec_key_parse_private_key()
383 pub fn ec_point_point_to_oct(point: &EC_POINT) -> Result<Vec<u8>, Error> { in ec_point_point_to_oct() argument
401 pub fn ec_point_oct_to_point(buf: &[u8]) -> Result<OwnedECPoint, Error> { in ec_point_oct_to_point()
413 pub fn parse_subject_from_certificate(cert_buf: &[u8]) -> Result<Vec<u8>, Error> { in parse_subject_from_certificate() argument