Searched refs:alg_type (Results 1 – 3 of 3) sorted by relevance
857 let alg_type = "skcipher"; in test_af_alg_cipher() localVariable876 let sockaddr = AlgAddr::new(alg_type, alg_name); in test_af_alg_cipher()880 assert_eq!(sockaddr.alg_type().to_string_lossy(), alg_type); in test_af_alg_cipher()941 let alg_type = "aead"; in test_af_alg_aead() localVariable971 let sockaddr = AlgAddr::new(alg_type, alg_name); in test_af_alg_aead()
2048 pub fn new_alg(alg_type: &str, alg_name: &str) -> SockAddr { in new_alg()2049 SockAddr::Alg(AlgAddr::new(alg_type, alg_name)) in new_alg()2486 pub fn new(alg_type: &str, alg_name: &str) -> AlgAddr { in new()2489 addr.salg_type[..alg_type.len()] in new()2490 .copy_from_slice(alg_type.to_string().as_bytes()); in new()2498 pub fn alg_type(&self) -> &CStr { in alg_type() method2518 self.alg_type().to_string_lossy() in fmt()
498 def lookup_algorithm_by_type(alg_type): argument512 if alg_data.algorithm_type == alg_type:514 raise AvbError('Unknown algorithm type {}'.format(alg_type))517 def lookup_hash_size_by_type(alg_type): argument531 if alg_data.algorithm_type == alg_type:533 raise AvbError('Unsupported algorithm type {}'.format(alg_type))