Home
last modified time | relevance | path

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

12

/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]()
Dhkdf.py22 def __init__(self, hash_name="sha256"): argument
23 self.hash = _get_hash(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)
/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.py183 def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None): argument
190 if not isinstance(hash_name, str):
191 raise TypeError(hash_name)
199 inner = new(hash_name)
200 outer = new(hash_name)
203 password = new(hash_name, password).digest()
/external/python/cpython3/Modules/clinic/
D_hashopenssl.c.h345 pbkdf2_hmac_impl(PyObject *module, const char *hash_name,
357 const char *hash_name; in pbkdf2_hmac() local
372 hash_name = PyUnicode_AsUTF8AndSize(args[0], &hash_name_length); in pbkdf2_hmac()
373 if (hash_name == NULL) { in pbkdf2_hmac()
376 if (strlen(hash_name) != (size_t)hash_name_length) { in pbkdf2_hmac()
408 return_value = pbkdf2_hmac_impl(module, hash_name, &password, &salt, iterations, dklen_obj); in pbkdf2_hmac()
/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.py134 def _rfc4231_test_cases(self, hashfunc, hash_name, digest_size, block_size): argument
136 hmac_name = "hmac-" + hash_name
143 h = hmac.HMAC(key, data, digestmod=hash_name)
154 hmac.digest(key, data, digest=hash_name),
164 hmac.digest(key, data, digest=hash_name),
Dtest_hashlib.py62 def read_vectors(hash_name): argument
63 url = URL.format(hash_name)
944 out = pbkdf2(hash_name='sha1', password=b'password', salt=b'salt',
/external/curl/src/
Dtool_metalink.c613 digest_def->hash_name, strerror(errno)); in check_hash()
620 digest_def->hash_name, "failed to initialize hash algorithm"); in check_hash()
639 digest_def->hash_name, strerror(errno)); in check_hash()
652 digest_def->hash_name); in check_hash()
655 filename, digest_def->hash_name); in check_hash()
Dtool_metalink.h58 const char *hash_name; member
/external/python/parse_type/tasks/_vendor/
Dpath.py955 def _hash(self, hash_name): argument
961 m = hashlib.new(hash_name)
966 def read_hash(self, hash_name): argument
974 return self._hash(hash_name).digest()
976 def read_hexhash(self, hash_name): argument
984 return self._hash(hash_name).hexdigest()
/external/flatbuffers/src/
Didl_parser.cpp714 auto hash_name = field->attributes.Lookup("hash"); in ParseField() local
715 if (hash_name) { in ParseField()
719 if (FindHashFunction16(hash_name->constant.c_str()) == nullptr) in ParseField()
721 hash_name->constant); in ParseField()
726 if (FindHashFunction32(hash_name->constant.c_str()) == nullptr) in ParseField()
728 hash_name->constant); in ParseField()
733 if (FindHashFunction64(hash_name->constant.c_str()) == nullptr) in ParseField()
735 hash_name->constant); in ParseField()
745 if (!hash_name) in ParseField()
1382 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.cc652 hash_name, in parse_sigalgs_list() enumerator
668 if (state == hash_name) { in parse_sigalgs_list()
693 state = hash_name; in parse_sigalgs_list()
/external/avb/
Davbtool.py84 def __init__(self, algorithm_type, hash_name, hash_num_bytes, argument
87 self.hash_name = hash_name
101 hash_name='',
108 hash_name='sha256',
122 hash_name='sha256',
136 hash_name='sha256',
150 hash_name='sha512',
164 hash_name='sha512',
178 hash_name='sha512',
535 if not alg.hash_name:
[all …]
Davbtool84 def __init__(self, algorithm_type, hash_name, hash_num_bytes, argument
87 self.hash_name = hash_name
101 hash_name='',
108 hash_name='sha256',
122 hash_name='sha256',
136 hash_name='sha256',
150 hash_name='sha512',
164 hash_name='sha512',
178 hash_name='sha512',
535 if not 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.py97 hash_name = re.sub(r'_nohash_.*$', '', base_name)
105 hash_name_hashed = hashlib.sha1(compat.as_bytes(hash_name)).hexdigest()
/external/python/cpython3/Modules/
D_hashopenssl.c757 pbkdf2_hmac_impl(PyObject *module, const char *hash_name, in pbkdf2_hmac_impl() argument
768 digest = EVP_get_digestbyname(hash_name); in pbkdf2_hmac_impl()
/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/libfuse/lib/
Dfuse.c794 static int hash_name(struct fuse *f, struct node *node, fuse_ino_t parentid, in hash_name() function
894 if (hash_name(f, node, parent, name) == -1) { in find_node()
1491 if (hash_name(f, node, newdir, newname) == -1) { in rename_node()
1522 if (hash_name(f, oldnode, newdir, newname) == -1) in exchange_node()
1526 if (hash_name(f, newnode, olddir, oldname) == -1) in exchange_node()

12