Home
last modified time | relevance | path

Searched refs:hash_name (Results 1 – 21 of 21) 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.py176 def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None): argument
183 if not isinstance(hash_name, str):
184 raise TypeError(hash_name)
192 inner = new(hash_name)
193 outer = new(hash_name)
196 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/python/cpython3/Lib/test/
Dtest_hmac.py130 def _rfc4231_test_cases(self, hashfunc, hash_name, digest_size, block_size): argument
132 hmac_name = "hmac-" + hash_name
139 h = hmac.HMAC(key, data, digestmod=hash_name)
150 hmac.digest(key, data, digest=hash_name),
160 hmac.digest(key, data, digest=hash_name),
Dtest_hashlib.py55 def read_vectors(hash_name): argument
56 url = URL.format(hash_name)
925 out = pbkdf2(hash_name='sha1', password=b'password', salt=b'salt',
/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.cpp712 auto hash_name = field->attributes.Lookup("hash"); in ParseField() local
713 if (hash_name) { in ParseField()
717 if (FindHashFunction16(hash_name->constant.c_str()) == nullptr) in ParseField()
719 hash_name->constant); in ParseField()
724 if (FindHashFunction32(hash_name->constant.c_str()) == nullptr) in ParseField()
726 hash_name->constant); in ParseField()
731 if (FindHashFunction64(hash_name->constant.c_str()) == nullptr) in ParseField()
733 hash_name->constant); in ParseField()
743 if (!hash_name) in ParseField()
1348 Value *hash_name = field->attributes.Lookup("hash"); in ParseHash() local
[all …]
/external/python/setuptools/setuptools/
Dpackage_index.py269 def __init__(self, hash_name, expected): argument
270 self.hash_name = hash_name
271 self.hash = hashlib.new(hash_name)
292 msg = template % self.hash_name
/external/boringssl/src/ssl/
Dssl_privkey.cc645 hash_name, in parse_sigalgs_list() enumerator
661 if (state == hash_name) { in parse_sigalgs_list()
686 state = hash_name; in parse_sigalgs_list()
/external/avb/
Davbtool82 def __init__(self, algorithm_type, hash_name, hash_num_bytes, argument
85 self.hash_name = hash_name
99 hash_name='',
106 hash_name='sha256',
120 hash_name='sha256',
134 hash_name='sha256',
148 hash_name='sha512',
162 hash_name='sha512',
176 hash_name='sha512',
507 if alg.hash_name == '':
[all …]
/external/python/setuptools/setuptools/tests/
Dtest_packageindex.py252 assert checker.hash_name == 'md5'
/external/tensorflow/tensorflow/examples/speech_commands/
Dinput_data.py95 hash_name = re.sub(r'_nohash_.*$', '', base_name)
103 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.c2412 const char *hash_name; in compare_hash_gnu_hash() local
2414 hash_name = elf_strptr (ebl->elf, shstrndx, hash_shdr->sh_name); in compare_hash_gnu_hash()
2486 hash_idx, hash_name); in compare_hash_gnu_hash()
2497 hash_idx, hash_name); in compare_hash_gnu_hash()
2521 hash_idx, hash_name); in compare_hash_gnu_hash()
2534 hash_idx, hash_name); in compare_hash_gnu_hash()
2555 hash_idx, hash_name); in compare_hash_gnu_hash()
/external/scapy/test/
Dtls.uts332 p = PRF(tls_version=0x303, hash_name=t.h)