Home
last modified time | relevance | path

Searched refs:alg_type (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/nix/src/sys/socket/
Daddr.rs670 pub fn new_alg(alg_type: &str, alg_name: &str) -> SockAddr { in new_alg()
671 SockAddr::Alg(AlgAddr::new(alg_type, alg_name)) in new_alg()
944 pub fn new(alg_type: &str, alg_name: &str) -> AlgAddr { in new()
947 addr.salg_type[..alg_type.len()].copy_from_slice(alg_type.to_string().as_bytes()); in new()
954 pub fn alg_type(&self) -> &CStr { in alg_type() method
967 self.alg_type().to_string_lossy()) in fmt()
/external/rust/crates/nix/test/sys/
Dtest_socket.rs607 let alg_type = "skcipher"; in test_af_alg_cipher() localVariable
621 let sockaddr = SockAddr::new_alg(alg_type, alg_name); in test_af_alg_cipher()
626 assert_eq!(alg.alg_type().to_string_lossy(), alg_type); in test_af_alg_cipher()
679 let alg_type = "aead"; in test_af_alg_aead() localVariable
703 let sockaddr = SockAddr::new_alg(alg_type, alg_name); in test_af_alg_aead()
/external/avb/
Davbtool.py497 def lookup_algorithm_by_type(alg_type): argument
511 if alg_data.algorithm_type == alg_type:
513 raise AvbError('Unknown algorithm type {}'.format(alg_type))
516 def lookup_hash_size_by_type(alg_type): argument
530 if alg_data.algorithm_type == alg_type:
532 raise AvbError('Unsupported algorithm type {}'.format(alg_type))
Davbtool497 def lookup_algorithm_by_type(alg_type): argument
511 if alg_data.algorithm_type == alg_type:
513 raise AvbError('Unknown algorithm type {}'.format(alg_type))
516 def lookup_hash_size_by_type(alg_type): argument
530 if alg_data.algorithm_type == alg_type:
532 raise AvbError('Unsupported algorithm type {}'.format(alg_type))