/external/python/cryptography/src/cryptography/hazmat/primitives/ |
D | hashes.py | 27 def digest_size(self): member in HashAlgorithm 113 digest_size = 20 variable in SHA1 120 digest_size = 28 variable in SHA512_224 127 digest_size = 32 variable in SHA512_256 134 digest_size = 28 variable in SHA224 141 digest_size = 32 variable in SHA256 148 digest_size = 48 variable in SHA384 155 digest_size = 64 variable in SHA512 162 digest_size = 28 variable in SHA3_224 168 digest_size = 32 variable in SHA3_256 [all …]
|
/external/python/cryptography/tests/hazmat/primitives/ |
D | test_hashes.py | 57 digest_size=20, 69 digest_size=28, 81 digest_size=32, 93 digest_size=48, 105 digest_size=64, 117 digest_size=16, 123 hashes.BLAKE2b(digest_size=64)), 129 hashes.BLAKE2b(digest_size=64), 130 digest_size=64, 135 hashes.BLAKE2b(digest_size=65) [all …]
|
D | test_hash_vectors.py | 156 hashes.BLAKE2b(digest_size=64)), 167 hashes.BLAKE2b(digest_size=64), 173 hashes.BLAKE2s(digest_size=32)), 184 hashes.BLAKE2s(digest_size=32), 258 hashes.SHAKE128(digest_size=16)), 270 hashes.SHAKE128(digest_size=16), 286 shake = hashes.SHAKE128(digest_size=output_length) 294 hashes.SHAKE256(digest_size=32)), 306 hashes.SHAKE256(digest_size=32), 322 shake = hashes.SHAKE256(digest_size=output_length)
|
/external/vboot_reference/futility/ |
D | cmd_pcr.c | 105 int digest_size = SHA1_DIGEST_SIZE; in do_pcr() local 119 digest_size = SHA256_DIGEST_SIZE; in do_pcr() 152 parse_digest_or_die(pcr, digest_size, argv[optind]); in do_pcr() 157 print_digest(pcr, digest_size); in do_pcr() 162 parse_digest_or_die(accum + digest_size, digest_size, argv[i]); in do_pcr() 165 print_digest(accum + digest_size, digest_size); in do_pcr() 168 digest = DigestBuf(accum, digest_size * 2, digest_alg); in do_pcr() 173 memcpy(pcr, digest, digest_size); in do_pcr() 177 print_digest(pcr, digest_size); in do_pcr()
|
/external/vboot_reference/tests/ |
D | vb2_api_tests.c | 182 uint32_t digest_size; in get_pcr_digest_tests() local 187 digest_size = sizeof(digest); in get_pcr_digest_tests() 190 &cc, BOOT_MODE_PCR, digest, &digest_size), in get_pcr_digest_tests() 192 TEST_EQ(digest_size, VB2_SHA1_DIGEST_SIZE, "BOOT_MODE_PCR digest size"); in get_pcr_digest_tests() 193 TEST_TRUE(memcmp(digest, digest_org, digest_size), in get_pcr_digest_tests() 196 digest_size = sizeof(digest); in get_pcr_digest_tests() 199 &cc, HWID_DIGEST_PCR, digest, &digest_size), in get_pcr_digest_tests() 201 TEST_EQ(digest_size, VB2_GBB_HWID_DIGEST_SIZE, in get_pcr_digest_tests() 203 TEST_FALSE(memcmp(digest, mock_hwid_digest, digest_size), in get_pcr_digest_tests() 206 digest_size = 1; in get_pcr_digest_tests() [all …]
|
/external/fsverity-utils/programs/ |
D | cmd_digest.c | 81 ASSERT(digest->digest_size <= FS_VERITY_MAX_DIGEST_SIZE); in fsverity_cmd_digest() 88 d = xzalloc(sizeof(*d) + digest->digest_size); in fsverity_cmd_digest() 92 d->digest_size = cpu_to_le16(digest->digest_size); in fsverity_cmd_digest() 93 memcpy(d->digest, digest->digest, digest->digest_size); in fsverity_cmd_digest() 95 bin2hex((const u8 *)d, sizeof(*d) + digest->digest_size, in fsverity_cmd_digest() 98 bin2hex(digest->digest, digest->digest_size, in fsverity_cmd_digest()
|
D | cmd_measure.c | 35 d->digest_size = FS_VERITY_MAX_DIGEST_SIZE; in fsverity_cmd_measure() 47 ASSERT(d->digest_size <= FS_VERITY_MAX_DIGEST_SIZE); in fsverity_cmd_measure() 48 bin2hex(d->digest, d->digest_size, digest_hex); in fsverity_cmd_measure()
|
/external/python/cpython2/Lib/test/ |
D | test_pep247.py | 23 self.assertTrue(module.digest_size is None or module.digest_size > 0) 46 if not module.digest_size is None: 47 self.assertEqual(obj1.digest_size, module.digest_size) 49 self.assertEqual(obj1.digest_size, len(h1))
|
/external/vboot_reference/firmware/2lib/ |
D | 2api.c | 134 uint32_t digest_size; in vb2api_get_pcr_digest() local 139 digest_size = VB2_SHA1_DIGEST_SIZE; in vb2api_get_pcr_digest() 143 digest_size = VB2_GBB_HWID_DIGEST_SIZE; in vb2api_get_pcr_digest() 149 if (digest == NULL || *dest_size < digest_size) in vb2api_get_pcr_digest() 152 memcpy(dest, digest, digest_size); in vb2api_get_pcr_digest() 153 *dest_size = digest_size; in vb2api_get_pcr_digest()
|
/external/fsverity-utils/lib/ |
D | compute_digest.c | 42 next->filled += hash->alg->digest_size; in hash_one_block() 45 return next->filled + hash->alg->digest_size > block_size; in hash_one_block() 57 const u32 hashes_per_block = block_size / hash->alg->digest_size; in compute_root_hash() 70 memset(root_hash, 0, hash->alg->digest_size); in compute_root_hash() 133 if (WARN_ON(buffers[num_levels].filled != hash->alg->digest_size)) { in compute_root_hash() 199 if (block_size < 2 * hash_alg->digest_size) { in libfsverity_compute_digest() 225 digest = libfsverity_zalloc(sizeof(*digest) + hash_alg->digest_size); in libfsverity_compute_digest() 231 digest->digest_size = hash_alg->digest_size; in libfsverity_compute_digest()
|
/external/vboot_reference/host/lib/ |
D | host_signature.c | 81 int digest_size = hash_size_map[key->algorithm]; in CalculateHash() local 90 sig = SignatureAlloc(digest_size, size); in CalculateHash() 97 Memcpy(GetSignatureData(sig), digest, digest_size); in CalculateHash() 108 int digest_size = hash_size_map[key->algorithm]; in CalculateSignature() local 114 int signature_digest_len = digest_size + digestinfo_size; in CalculateSignature() 132 Memcpy(signature_digest + digestinfo_size, digest, digest_size); in CalculateSignature() 253 uint64_t digest_size = hash_size_map[key_algorithm]; in CalculateSignature_external() local 259 uint64_t signature_digest_len = digest_size + digestinfo_size; in CalculateSignature_external() 277 Memcpy(signature_digest + digestinfo_size, digest, digest_size); in CalculateSignature_external()
|
/external/python/cpython2/Lib/ |
D | hmac.py | 16 digest_size = None variable 54 self.digest_size = self.inner.digest_size 95 other.digest_size = self.digest_size
|
/external/vboot_reference/firmware/lib21/ |
D | api.c | 124 uint32_t digest_size = vb2_digest_size(dc->hash_alg); in vb2api_check_hash() local 146 digest = vb2_workbuf_alloc(&wb, digest_size); in vb2api_check_hash() 152 rv = vb2ex_hwcrypto_digest_finalize(digest, digest_size); in vb2api_check_hash() 154 rv = vb2_digest_finalize(dc, digest, digest_size); in vb2api_check_hash() 160 digest_size)) in vb2api_check_hash()
|
D | common.c | 132 uint32_t digest_size = vb2_digest_size(hash_alg); in vb2_sig_size() local 135 if (!digest_size) in vb2_sig_size() 140 return digest_size; in vb2_sig_size() 269 uint32_t digest_size; in vb2_verify_data() local 278 digest_size = vb2_digest_size(key->hash_alg); in vb2_verify_data() 279 if (!digest_size) in vb2_verify_data() 282 digest = vb2_workbuf_alloc(&wblocal, digest_size); in vb2_verify_data() 299 rv = vb2_digest_finalize(dc, digest, digest_size); in vb2_verify_data()
|
/external/python/cpython3/Lib/test/ |
D | test_hmac.py | 36 self, key, data, digest, hashfunc, hashname, digest_size, block_size argument 42 self.assertEqual(h.digest_size, digest_size) 49 self.assertEqual(h.digest_size, digest_size) 62 self.assertEqual(h.digest_size, digest_size) 99 self.assertEqual(h.digest_size, digest_size) 117 digest_size=16, 157 digest_size=20, 190 def _rfc4231_test_cases(self, hashfunc, hash_name, digest_size, block_size): argument 198 digest_size=digest_size, 331 self.digest_size = self._x.digest_size
|
D | test_hashlib.py | 369 self.assertEqual(len(digest), m.digest_size) 399 def check_blocksize_name(self, name, block_size=0, digest_size=0, argument 405 self.assertEqual(m.digest_size, digest_size) 412 self.assertEqual(len(m.digest()), digest_size) 413 self.assertEqual(len(m.hexdigest()), 2*digest_size) 599 digest_size, max_offset): argument 612 self.assertEqual(constructor.MAX_DIGEST_SIZE, digest_size) 613 for i in range(1, digest_size + 1): 614 constructor(digest_size=i) 615 self.assertRaises(ValueError, constructor, digest_size=-1) [all …]
|
/external/scapy/scapy/layers/tls/crypto/ |
D | hkdf.py | 27 hkdf = HKDF(h, h.digest_size, salt, None, default_backend()) 29 ikm = b"\x00" * h.digest_size 50 hash_len = self.hash.digest_size 54 hash_len = self.hash.digest_size
|
/external/arm-trusted-firmware/drivers/st/crypto/ |
D | stm32_hash.c | 67 size_t digest_size; member 135 stm32_hash.digest_size = MD5_DIGEST_SIZE; in hash_hw_init() 139 stm32_hash.digest_size = SHA1_DIGEST_SIZE; in hash_hw_init() 143 stm32_hash.digest_size = SHA224_DIGEST_SIZE; in hash_hw_init() 149 stm32_hash.digest_size = SHA256_DIGEST_SIZE; in hash_hw_init() 167 for (i = 0U; i < (stm32_hash.digest_size / sizeof(uint32_t)); i++) { in hash_get_digest()
|
/external/python/cpython3/Lib/ |
D | hmac.py | 23 digest_size = None variable 67 self.digest_size = self._inner.digest_size 123 other.digest_size = self.digest_size
|
/external/python/cryptography/docs/hazmat/primitives/ |
D | cryptographic-hashes.rst | 131 .. class:: BLAKE2b(digest_size) 136 :param int digest_size: The desired size of the hash output in bytes. Only 139 :raises ValueError: If the ``digest_size`` is invalid. 141 .. class:: BLAKE2s(digest_size) 146 :param int digest_size: The desired size of the hash output in bytes. Only 149 :raises ValueError: If the ``digest_size`` is invalid. 188 .. class:: SHAKE128(digest_size) 198 :param int digest_size: The length of output desired. Must be greater than 201 :raises ValueError: If the ``digest_size`` is invalid. 203 .. class:: SHAKE256(digest_size) [all …]
|
/external/python/cpython3/Modules/_blake2/clinic/ |
D | blake2s_impl.c.h | 15 py_blake2s_new_impl(PyTypeObject *type, PyObject *data, int digest_size, 32 int digest_size = BLAKE2S_OUTBYTES; in py_blake2s_new() local 64 digest_size = _PyLong_AsInt(fastargs[1]); in py_blake2s_new() 65 if (digest_size == -1 && PyErr_Occurred()) { in py_blake2s_new() 194 …return_value = py_blake2s_new_impl(type, data, digest_size, &key, &salt, &person, fanout, depth, l… in py_blake2s_new()
|
D | blake2b_impl.c.h | 15 py_blake2b_new_impl(PyTypeObject *type, PyObject *data, int digest_size, 32 int digest_size = BLAKE2B_OUTBYTES; in py_blake2b_new() local 64 digest_size = _PyLong_AsInt(fastargs[1]); in py_blake2b_new() 65 if (digest_size == -1 && PyErr_Occurred()) { in py_blake2b_new() 194 …return_value = py_blake2b_new_impl(type, data, digest_size, &key, &salt, &person, fanout, depth, l… in py_blake2b_new()
|
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | hashes.py | 67 outlen[0] == self.algorithm.digest_size 73 self.algorithm.digest_size) 75 self._ctx, buf, self.algorithm.digest_size 78 return self._backend._ffi.buffer(buf)[:self.algorithm.digest_size]
|
/external/vboot_reference/firmware/lib20/ |
D | common.c | 94 uint32_t digest_size; in vb2_verify_data() local 103 digest_size = vb2_digest_size(key->hash_alg); in vb2_verify_data() 104 if (!digest_size) in vb2_verify_data() 107 digest = vb2_workbuf_alloc(&wblocal, digest_size); in vb2_verify_data() 124 rv = vb2_digest_finalize(dc, digest, digest_size); in vb2_verify_data()
|
/external/python/cpython3/Modules/ |
D | _hashopenssl.c | 395 unsigned int digest_size; in EVP_digest_impl() local 406 digest_size = EVP_MD_CTX_size(temp_ctx); in EVP_digest_impl() 412 retval = PyBytes_FromStringAndSize((const char *)digest, digest_size); in EVP_digest_impl() 429 unsigned int digest_size; in EVP_hexdigest_impl() local 441 digest_size = EVP_MD_CTX_size(temp_ctx); in EVP_hexdigest_impl() 449 return _Py_strhex((const char *)digest, (Py_ssize_t)digest_size); in EVP_hexdigest_impl() 1474 unsigned int digest_size = EVP_MD_size(HMAC_CTX_get_md(self->ctx)); in _hmac_digest_size() local 1475 assert(digest_size <= EVP_MAX_MD_SIZE); in _hmac_digest_size() 1476 return digest_size; in _hmac_digest_size() 1615 unsigned int digest_size = _hmac_digest_size(self); in _hashlib_HMAC_digest_impl() local [all …]
|