/external/scapy/scapy/layers/tls/crypto/ |
D | hash.py | 22 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
|
D | h_mac.py | 34 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
|
D | prf.py | 178 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]()
|
D | hkdf.py | 22 def __init__(self, hash_name="sha256"): argument 23 self.hash = _get_hash(hash_name)
|
D | suites.py | 45 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/ |
D | hashlib.py | 163 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/ |
D | hashlib.py | 186 def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None): argument 193 if not isinstance(hash_name, str): 194 raise TypeError(hash_name) 202 inner = new(hash_name) 203 outer = new(hash_name) 206 password = new(hash_name, password).digest()
|
/external/angle/src/libANGLE/serializer/ |
D | JsonSerializer.cpp | 65 std::ostringstream hash_name; in addBlob() local 66 hash_name << name << "-hash"; in addBlob() 67 addString(hash_name.str(), os.str()); in addBlob()
|
/external/libnetfilter_conntrack/src/conntrack/ |
D | labels.c | 41 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/ |
D | tool_metalink.c | 546 digest_def->hash_name, strerror(errno)); in check_hash() 553 digest_def->hash_name, "failed to initialize hash algorithm"); in check_hash() 572 digest_def->hash_name, strerror(errno)); in check_hash() 585 digest_def->hash_name); in check_hash() 588 filename, digest_def->hash_name); in check_hash()
|
D | tool_metalink.h | 52 const char *hash_name; member
|
/external/python/parse_type/tasks/_vendor/ |
D | path.py | 955 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/python/cpython3/Modules/clinic/ |
D | _hashopenssl.c.h | 890 pbkdf2_hmac_impl(PyObject *module, const char *hash_name, 902 const char *hash_name; in pbkdf2_hmac() local 917 hash_name = PyUnicode_AsUTF8AndSize(args[0], &hash_name_length); in pbkdf2_hmac() 918 if (hash_name == NULL) { in pbkdf2_hmac() 921 if (strlen(hash_name) != (size_t)hash_name_length) { in pbkdf2_hmac() 953 return_value = pbkdf2_hmac_impl(module, hash_name, &password, &salt, iterations, dklen_obj); in pbkdf2_hmac()
|
/external/python/setuptools/setuptools/ |
D | package_index.py | 269 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/flatbuffers/src/ |
D | idl_parser.cpp | 766 auto hash_name = field->attributes.Lookup("hash"); in ParseField() local 767 if (hash_name) { in ParseField() 772 if (FindHashFunction16(hash_name->constant.c_str()) == nullptr) in ParseField() 774 hash_name->constant); in ParseField() 779 if (FindHashFunction32(hash_name->constant.c_str()) == nullptr) in ParseField() 781 hash_name->constant); in ParseField() 786 if (FindHashFunction64(hash_name->constant.c_str()) == nullptr) in ParseField() 788 hash_name->constant); in ParseField() 799 if (!hash_name) in ParseField() 1587 Value *hash_name = field->attributes.Lookup("hash"); in ParseHash() local [all …]
|
/external/boringssl/src/ssl/ |
D | ssl_privkey.cc | 652 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/rust/crates/quiche/deps/boringssl/src/ssl/ |
D | ssl_privkey.cc | 652 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/ |
D | avbtool.py | 86 def __init__(self, algorithm_type, hash_name, hash_num_bytes, argument 89 self.hash_name = hash_name 103 hash_name='', 110 hash_name='sha256', 124 hash_name='sha256', 138 hash_name='sha256', 152 hash_name='sha512', 166 hash_name='sha512', 180 hash_name='sha512', 456 hasher = hashlib.new(algorithm.hash_name) [all …]
|
D | avbtool | 86 def __init__(self, algorithm_type, hash_name, hash_num_bytes, argument 89 self.hash_name = hash_name 103 hash_name='', 110 hash_name='sha256', 124 hash_name='sha256', 138 hash_name='sha256', 152 hash_name='sha512', 166 hash_name='sha512', 180 hash_name='sha512', 456 hasher = hashlib.new(algorithm.hash_name) [all …]
|
/external/python/setuptools/setuptools/tests/ |
D | test_packageindex.py | 252 assert checker.hash_name == 'md5'
|
/external/tensorflow/tensorflow/examples/speech_commands/ |
D | input_data.py | 97 hash_name = re.sub(r'_nohash_.*$', '', base_name) 105 hash_name_hashed = hashlib.sha1(compat.as_bytes(hash_name)).hexdigest()
|
/external/python/cpython3/Lib/test/ |
D | test_hmac.py | 190 def _rfc4231_test_cases(self, hashfunc, hash_name, digest_size, block_size): argument 197 hashname=hash_name,
|
D | test_hashlib.py | 80 def read_vectors(hash_name): argument 81 url = URL.format(hash_name) 1038 out = pbkdf2(hash_name='sha1', password=b'password', salt=b'salt',
|
/external/python/cpython3/Modules/ |
D | _hashopenssl.c | 1114 pbkdf2_hmac_impl(PyObject *module, const char *hash_name, in pbkdf2_hmac_impl() argument 1125 digest = py_digest_by_name(hash_name); in pbkdf2_hmac_impl()
|
/external/python/cpython3/Doc/library/ |
D | hashlib.rst | 238 .. function:: pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None) 243 The string *hash_name* is the desired name of the hash digest algorithm for 254 digest size of the hash algorithm *hash_name* is used, e.g. 64 for SHA-512.
|