/system/keymaster/km_openssl/ |
D | hmac.cpp | 31 return SHA256_DIGEST_LENGTH; in DigestLength() 58 uint8_t tmp[SHA256_DIGEST_LENGTH]; in Sign() 60 if (digest_len >= SHA256_DIGEST_LENGTH) in Sign() 66 if (digest_len < SHA256_DIGEST_LENGTH) in Sign() 79 if (digest_len != SHA256_DIGEST_LENGTH) in Verify() 82 uint8_t computed_digest[SHA256_DIGEST_LENGTH]; in Verify() 86 return 0 == CRYPTO_memcmp(digest, computed_digest, SHA256_DIGEST_LENGTH); in Verify()
|
D | soft_keymaster_enforcement.cpp | 99 unsigned digest_len = SHA256_DIGEST_LENGTH; in hmacSha256() 164 if (!hmac_key_.Reset(SHA256_DIGEST_LENGTH)) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in ComputeSharedHmac()
|
/system/core/adb/tls/tests/ |
D | adb_ca_list_test.cpp | 53 std::string sha(SHA256_DIGEST_LENGTH - 1, 0x80); in TEST_F() 59 std::string sha(SHA256_DIGEST_LENGTH + 1, 0x80); in TEST_F() 78 std::string sha_str(SHA256_DIGEST_LENGTH * 2 - 1, 'a'); in TEST_F() 83 std::string sha_str(SHA256_DIGEST_LENGTH * 2 + 1, 'a'); in TEST_F() 89 std::string sha_str(SHA256_DIGEST_LENGTH * 2, 'a'); in TEST_F() 127 while (sha.size() < SHA256_DIGEST_LENGTH) { in TEST_F()
|
/system/core/adb/tls/ |
D | adb_ca_list.cpp | 105 CHECK_EQ(sha256.size(), static_cast<size_t>(SHA256_DIGEST_LENGTH)); in SHA256BitsToHexString() 110 for (size_t i = 0; i < SHA256_DIGEST_LENGTH; ++i) { in SHA256BitsToHexString() 119 if (sha256_str.size() != SHA256_DIGEST_LENGTH * 2) { in SHA256HexStringToBits() 124 for (size_t i = 0; i < SHA256_DIGEST_LENGTH; ++i) { in SHA256HexStringToBits()
|
/system/core/fs_mgr/libfs_avb/ |
D | sha.h | 27 uint8_t hash[SHA256_DIGEST_LENGTH]; 30 enum { DIGEST_SIZE = SHA256_DIGEST_LENGTH };
|
D | fs_avb.cpp | 124 expected_digest_size = SHA256_DIGEST_LENGTH * 2; in Create()
|
/system/extras/libfec/include/fec/ |
D | io.h | 34 #ifndef SHA256_DIGEST_LENGTH 35 #define SHA256_DIGEST_LENGTH 32 macro 52 uint8_t hash[SHA256_DIGEST_LENGTH];
|
/system/nvram/core/ |
D | crypto_boringssl.cpp | 35 uint8_t buffer[SHA256_DIGEST_LENGTH]; in SHA256()
|
/system/extras/libfec/ |
D | fec_read.cpp | 94 uint64_t hash_offset = (offset / FEC_BLOCKSIZE) * SHA256_DIGEST_LENGTH; in is_zero() 97 hashtree.hash_data.size() - SHA256_DIGEST_LENGTH)) { in is_zero() 102 SHA256_DIGEST_LENGTH); in is_zero() 310 (f->hashtree().hash_data.size() - SHA256_DIGEST_LENGTH) / in verity_read() 311 SHA256_DIGEST_LENGTH; in verity_read()
|
D | fec_open.cpp | 85 verity_get_size(size, NULL, NULL, SHA256_DIGEST_LENGTH); in get_verity_size() 184 uint8_t hash[SHA256_DIGEST_LENGTH]; in parse_ecc_header() 187 f->ecc.valid = !memcmp(hash, header.hash, SHA256_DIGEST_LENGTH); in parse_ecc_header() 333 offset += verity_get_size(offset, NULL, NULL, SHA256_DIGEST_LENGTH); in load_verity()
|
D | fec_verity.cpp | 150 digest_length_ = nid == NID_sha1 ? SHA_DIGEST_LENGTH : SHA256_DIGEST_LENGTH; in initialize() 152 padded_digest_length_ = SHA256_DIGEST_LENGTH; in initialize() 367 uint8_t root[SHA256_DIGEST_LENGTH]; in parse_table()
|
/system/tools/hidl/hashing/ |
D | Hash.cpp | 31 const std::vector<uint8_t> Hash::kEmptyHash = std::vector<uint8_t>(SHA256_DIGEST_LENGTH, 0); 59 std::vector<uint8_t> ret = std::vector<uint8_t>(SHA256_DIGEST_LENGTH); in sha256File()
|
/system/keymaster/key_blob_utils/ |
D | ocb_utils.cpp | 80 UniquePtr<uint8_t[]> hash_buf(new (std::nothrow) uint8_t[SHA256_DIGEST_LENGTH]); in InitializeKeyWrappingContext() 83 Eraser hash_eraser(hash_buf.get(), SHA256_DIGEST_LENGTH); in InitializeKeyWrappingContext()
|
/system/extras/verity/ |
D | verity_verifier.cpp | 54 uint8_t hash_buf[SHA256_DIGEST_LENGTH]; in verify_table()
|
/system/update_engine/common/ |
D | hash_calculator.cc | 78 raw_hash_.resize(SHA256_DIGEST_LENGTH); in Finalize()
|
/system/extras/libfec/test/ |
D | fec_unittest.cpp | 155 nullptr, SHA256_DIGEST_LENGTH); in TEST_F() 243 nullptr, SHA256_DIGEST_LENGTH); in TEST_F()
|
/system/extras/verity/fec/ |
D | image.cpp | 282 uint8_t hash[SHA256_DIGEST_LENGTH]; in image_ecc_load() 285 if (memcmp(hash, p->hash, SHA256_DIGEST_LENGTH) != 0) { in image_ecc_load()
|
/system/security/keystore/ |
D | keystore_attestation_id.cpp | 54 std::vector<uint8_t> digest_buffer(SHA256_DIGEST_LENGTH); in signature2SHA256()
|
/system/vold/ |
D | cryptfs.cpp | 151 #if !defined(SHA256_DIGEST_LENGTH) 152 #define SHA256_DIGEST_LENGTH 32 macro 201 __le8 hash_first_block[SHA256_DIGEST_LENGTH]; /* When CRYPT_ENCRYPTION_IN_PROGRESS 232 unsigned char sha256[SHA256_DIGEST_LENGTH]; 2348 __le8 hash_first_block[SHA256_DIGEST_LENGTH]; in cryptfs_enable_internal()
|
/system/nvram/hal/tests/ |
D | nvram_hal_test.cc | 194 uint8_t hash[SHA256_DIGEST_LENGTH]; in SHA256HashString() 196 return std::string(reinterpret_cast<const char*>(hash), SHA256_DIGEST_LENGTH); in SHA256HashString()
|
/system/core/adb/daemon/ |
D | auth.cpp | 137 uint8_t digest[SHA256_DIGEST_LENGTH]; in adbd_tls_client_ca_list()
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 121 uint8_t hash_buf[SHA256_DIGEST_LENGTH]; in verify_table()
|
/system/core/adb/client/ |
D | auth.cpp | 116 result.resize(SHA256_DIGEST_LENGTH); in hash_key()
|