Home
last modified time | relevance | path

Searched refs:SHA256_DIGEST_LENGTH (Results 1 – 23 of 23) sorted by relevance

/system/keymaster/km_openssl/
Dhmac.cpp31 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()
Dsoft_keymaster_enforcement.cpp99 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/
Dadb_ca_list_test.cpp53 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/
Dadb_ca_list.cpp105 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/
Dsha.h27 uint8_t hash[SHA256_DIGEST_LENGTH];
30 enum { DIGEST_SIZE = SHA256_DIGEST_LENGTH };
Dfs_avb.cpp124 expected_digest_size = SHA256_DIGEST_LENGTH * 2; in Create()
/system/extras/libfec/include/fec/
Dio.h34 #ifndef SHA256_DIGEST_LENGTH
35 #define SHA256_DIGEST_LENGTH 32 macro
52 uint8_t hash[SHA256_DIGEST_LENGTH];
/system/nvram/core/
Dcrypto_boringssl.cpp35 uint8_t buffer[SHA256_DIGEST_LENGTH]; in SHA256()
/system/extras/libfec/
Dfec_read.cpp94 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()
Dfec_open.cpp85 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()
Dfec_verity.cpp150 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/
DHash.cpp31 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/
Docb_utils.cpp80 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/
Dverity_verifier.cpp54 uint8_t hash_buf[SHA256_DIGEST_LENGTH]; in verify_table()
/system/update_engine/common/
Dhash_calculator.cc78 raw_hash_.resize(SHA256_DIGEST_LENGTH); in Finalize()
/system/extras/libfec/test/
Dfec_unittest.cpp155 nullptr, SHA256_DIGEST_LENGTH); in TEST_F()
243 nullptr, SHA256_DIGEST_LENGTH); in TEST_F()
/system/extras/verity/fec/
Dimage.cpp282 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/
Dkeystore_attestation_id.cpp54 std::vector<uint8_t> digest_buffer(SHA256_DIGEST_LENGTH); in signature2SHA256()
/system/vold/
Dcryptfs.cpp151 #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/
Dnvram_hal_test.cc194 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/
Dauth.cpp137 uint8_t digest[SHA256_DIGEST_LENGTH]; in adbd_tls_client_ca_list()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp121 uint8_t hash_buf[SHA256_DIGEST_LENGTH]; in verify_table()
/system/core/adb/client/
Dauth.cpp116 result.resize(SHA256_DIGEST_LENGTH); in hash_key()