Searched refs:alg (Results 1 – 5 of 5) sorted by relevance
/tools/testing/selftests/tpm2/ |
D | tpm2.py | 203 def __init__(self, alg): argument 204 self.alg = alg 207 return '0x%0x' % (alg) 219 def __init__(self, alg): argument 220 self.alg = alg 223 return '0x%0x' % (alg) 324 def get_digest_size(alg): argument 325 ds = ALG_DIGEST_SIZE_MAP.get(alg) 327 raise UnknownAlgorithmIdError(alg) 331 def get_hash_function(alg): argument [all …]
|
/tools/crypto/ |
D | gen_fips140_testvecs.py | 110 for alg in ['sha1', 'sha256', 'hmac_sha256', 'sha512']: 111 if alg.startswith('hmac_'): 112 h = hmac.new(hmac_key, message, alg.removeprefix('hmac_')) 114 h = hashlib.new(alg, message)
|
/tools/testing/selftests/zram/ |
D | zram_lib.sh | 156 for alg in $zram_algs; do 158 echo "$alg" > $sys_path || \ 159 echo "FAIL can't set '$alg' to $sys_path" 161 echo "$sys_path = '$alg'"
|
/tools/testing/selftests/net/ |
D | ipsec.c | 846 struct xfrm_algo alg; in xfrm_state_pack_algo() member 851 } alg = {}; in xfrm_state_pack_algo() local 867 strncpy(alg.u.alg.alg_name, desc->a_algo, ALGO_LEN - 1); in xfrm_state_pack_algo() 868 if (xfrm_fill_key(desc->a_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo() 869 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 878 strncpy(alg.u.alg.alg_name, desc->c_algo, ALGO_LEN - 1); in xfrm_state_pack_algo() 879 if (xfrm_fill_key(desc->c_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo() 880 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 890 alg.u.aead.alg_icv_len = desc->icv_len; in xfrm_state_pack_algo() 891 strncpy(alg.u.aead.alg_name, desc->ae_algo, ALGO_LEN - 1); in xfrm_state_pack_algo() [all …]
|
/tools/testing/selftests/bpf/ |
D | test_tag.c | 116 static const struct sockaddr_alg alg = { in tag_from_alg() local 127 ret = bind(fd_base, (struct sockaddr *)&alg, sizeof(alg)); in tag_from_alg()
|