Searched refs:alg (Results 1 – 5 of 5) sorted by relevance
/tools/testing/selftests/tpm2/ |
D | tpm2.py | 204 def __init__(self, alg): argument 205 self.alg = alg 208 return '0x%0x' % (alg) 220 def __init__(self, alg): argument 221 self.alg = alg 224 return '0x%0x' % (alg) 325 def get_digest_size(alg): argument 326 ds = ALG_DIGEST_SIZE_MAP.get(alg) 328 raise UnknownAlgorithmIdError(alg) 332 def get_hash_function(alg): argument [all …]
|
/tools/crypto/ |
D | gen_fips140_testvecs.py | 110 for alg in ['sha1', 'sha256', 'hmac_sha256', 'sha512', 'sha3_256']: 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 | 831 struct xfrm_algo alg; in xfrm_state_pack_algo() member 836 } alg = {}; in xfrm_state_pack_algo() local 852 strncpy(alg.u.alg.alg_name, desc->a_algo, ALGO_LEN - 1); in xfrm_state_pack_algo() 853 if (xfrm_fill_key(desc->a_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo() 854 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 863 strncpy(alg.u.alg.alg_name, desc->c_algo, ALGO_LEN - 1); in xfrm_state_pack_algo() 864 if (xfrm_fill_key(desc->c_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo() 865 sizeof(alg.buf), &alg.u.alg.alg_key_len)) in xfrm_state_pack_algo() 875 alg.u.aead.alg_icv_len = desc->icv_len; in xfrm_state_pack_algo() 876 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()
|