Home
last modified time | relevance | path

Searched refs:hash_name (Results 1 – 20 of 20) sorted by relevance

/external/scapy/scapy/layers/tls/crypto/
Dhash.py22 def __new__(cls, hash_name, bases, dct): argument
23 if hash_name != "_GenericHash":
24 dct["name"] = hash_name[5:] # remove leading "Hash_"
25 the_class = super(_GenericHashMetaclass, cls).__new__(cls, hash_name,
27 if hash_name != "_GenericHash":
28 _tls_hash_algs[hash_name[5:]] = the_class
Dh_mac.py34 hash_name = hmac_name[5:] # remove leading "Hmac_"
36 dct["name"] = "HMAC-%s" % hash_name
37 dct["hash_alg"] = _tls_hash_algs[hash_name]
38 dct["hmac_len"] = _tls_hash_algs[hash_name].hash_len
Dprf.py178 def __init__(self, hash_name="SHA256", tls_version=0x0303): argument
180 self.hash_name = hash_name
190 if hash_name == "SHA384":
192 elif hash_name == "SHA512":
276 if self.hash_name in ["MD5", "SHA"]:
279 h = _tls_hash_algs[self.hash_name]()
Dsuites.py45 hash_name = s.split('_')[-1]
46 hash_alg = _tls_hash_algs.get(hash_name)
48 cipher_name = s[:-(len(hash_name) + 1)]
55 hmac_name = "HMAC-%s" % hash_name
61 cipher_name, hash_name = s.split("_WITH_")
65 hash_alg = _tls_hash_algs.get(hash_name)
Dhkdf.py22 def __init__(self, hash_name="sha256"): argument
23 self.hash = _get_hash(hash_name)
/external/python/cpython2/Lib/
Dhashlib.py163 def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None): argument
170 if not isinstance(hash_name, str):
171 raise TypeError(hash_name)
179 inner = new(hash_name)
180 outer = new(hash_name)
183 password = new(hash_name, password).digest()
204 hex_format_string = "%%0%ix" % (new(hash_name).digest_size * 2)
/external/python/cpython3/Lib/
Dhashlib.py175 def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None): argument
182 if not isinstance(hash_name, str):
183 raise TypeError(hash_name)
191 inner = new(hash_name)
192 outer = new(hash_name)
195 password = new(hash_name, password).digest()
/external/libnetfilter_conntrack/src/conntrack/
Dlabels.c41 static unsigned int hash_name(const char *name) in hash_name() function
54 unsigned int i = hash_name(name); in __labelmap_get_bit()
74 unsigned int i = hash_name(n); in map_insert()
/external/curl/src/
Dtool_metalink.c612 digest_def->hash_name, strerror(errno)); in check_hash()
619 digest_def->hash_name, "failed to initialize hash algorithm"); in check_hash()
638 digest_def->hash_name, strerror(errno)); in check_hash()
651 digest_def->hash_name); in check_hash()
654 filename, digest_def->hash_name); in check_hash()
Dtool_metalink.h57 const char *hash_name; member
/external/flatbuffers/src/
Didl_parser.cpp630 auto hash_name = field->attributes.Lookup("hash"); in ParseField() local
631 if (hash_name) { in ParseField()
635 if (FindHashFunction32(hash_name->constant.c_str()) == nullptr) in ParseField()
637 hash_name->constant); in ParseField()
642 if (FindHashFunction64(hash_name->constant.c_str()) == nullptr) in ParseField()
644 hash_name->constant); in ParseField()
654 if (!hash_name) in ParseField()
1220 Value *hash_name = field->attributes.Lookup("hash"); in ParseHash() local
1223 auto hash = FindHashFunction32(hash_name->constant.c_str()); in ParseHash()
1229 auto hash = FindHashFunction32(hash_name->constant.c_str()); in ParseHash()
[all …]
/external/python/cpython3/Lib/test/
Dtest_hmac.py110 def _rfc4231_test_cases(self, hashfunc, hash_name, digest_size, block_size): argument
112 hmac_name = "hmac-" + hash_name
119 h = hmac.HMAC(key, data, digestmod=hash_name)
Dtest_hashlib.py57 def read_vectors(hash_name): argument
58 url = URL.format(hash_name)
864 out = pbkdf2(hash_name='sha1', password=b'password', salt=b'salt',
/external/avb/
Davbtool83 def __init__(self, algorithm_type, hash_name, hash_num_bytes, argument
86 self.hash_name = hash_name
100 hash_name='',
107 hash_name='sha256',
121 hash_name='sha256',
135 hash_name='sha256',
149 hash_name='sha512',
163 hash_name='sha512',
177 hash_name='sha512',
508 if alg.hash_name == '':
[all …]
/external/tensorflow/tensorflow/examples/speech_commands/
Dinput_data.py88 hash_name = re.sub(r'_nohash_.*$', '', base_name)
96 hash_name_hashed = hashlib.sha1(compat.as_bytes(hash_name)).hexdigest()
/external/tensorflow/tensorflow/examples/image_retraining/
Dretrain.py196 hash_name = re.sub(r'_nohash_.*$', '', file_name)
204 hash_name_hashed = hashlib.sha1(compat.as_bytes(hash_name)).hexdigest()
/external/python/cpython3/Doc/library/
Dhashlib.rst229 .. function:: pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None)
234 The string *hash_name* is the desired name of the hash digest algorithm for
245 digest size of the hash algorithm *hash_name* is used, e.g. 64 for SHA-512.
/external/elfutils/src/
Delflint.c2383 const char *hash_name; in compare_hash_gnu_hash() local
2385 hash_name = elf_strptr (ebl->elf, shstrndx, hash_shdr->sh_name); in compare_hash_gnu_hash()
2457 hash_idx, hash_name); in compare_hash_gnu_hash()
2468 hash_idx, hash_name); in compare_hash_gnu_hash()
2492 hash_idx, hash_name); in compare_hash_gnu_hash()
2505 hash_idx, hash_name); in compare_hash_gnu_hash()
/external/scapy/test/
Dtls.uts332 p = PRF(tls_version=0x303, hash_name=t.h)
/external/valgrind/perf/
Dtinycc.c19009 const char *hash_name, int hash_sh_flags) in new_symtab() argument
19023 hash = new_section(s1, hash_name, SHT_HASH, hash_sh_flags); in new_symtab()