Home
last modified time | relevance | path

Searched refs:SHA256_DIGEST_LENGTH (Results 1 – 24 of 24) 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/vold/
Dcryptfs.h104 #if !defined(SHA256_DIGEST_LENGTH)
105 #define SHA256_DIGEST_LENGTH 32 macro
142 __le8 hash_first_block[SHA256_DIGEST_LENGTH]; /* When CRYPT_ENCRYPTION_IN_PROGRESS
173 unsigned char sha256[SHA256_DIGEST_LENGTH];
Dcryptfs.cpp2368 __le8 hash_first_block[SHA256_DIGEST_LENGTH]; in cryptfs_enable_internal()
/system/core/fs_mgr/libfs_avb/
Dsha.h27 uint8_t hash[SHA256_DIGEST_LENGTH];
30 enum { DIGEST_SIZE = SHA256_DIGEST_LENGTH };
Dfs_avb.cpp122 expected_digest_size = SHA256_DIGEST_LENGTH * 2; in Create()
/system/extras/libfec/
Dfec_verity.cpp105 hashes = fec_div_round_up(hashes * SHA256_DIGEST_LENGTH, FEC_BLOCKSIZE); in verity_get_size()
146 uint8_t hash[SHA256_DIGEST_LENGTH]; in verity_check_block()
154 return !memcmp(expected, hash, SHA256_DIGEST_LENGTH); in verity_check_block()
164 if (hash && fec_pread(f, hash, SHA256_DIGEST_LENGTH, hash_offset) != in ecc_read_hashes()
165 SHA256_DIGEST_LENGTH) { in ecc_read_hashes()
188 uint8_t hash[SHA256_DIGEST_LENGTH]; in verify_tree()
270 if (!raw_pread(f, hash, SHA256_DIGEST_LENGTH, in verify_tree()
271 hash_offset + j * SHA256_DIGEST_LENGTH) || in verify_tree()
281 hash_offset + j * SHA256_DIGEST_LENGTH, hash, in verify_tree()
293 if (!raw_pwrite(f, hash, SHA256_DIGEST_LENGTH, in verify_tree()
[all …]
Dfec_read.cpp82 return !verity_check_block(f, &f->verity.hash[n * SHA256_DIGEST_LENGTH], in is_erasure()
95 uint64_t hash_offset = (offset / FEC_BLOCKSIZE) * SHA256_DIGEST_LENGTH; in is_zero()
98 v->hash_data_blocks * FEC_BLOCKSIZE - SHA256_DIGEST_LENGTH)) { in is_zero()
102 return !memcmp(v->zero_hash, &v->hash[hash_offset], SHA256_DIGEST_LENGTH); in is_zero()
310 SHA256_DIGEST_LENGTH) / SHA256_DIGEST_LENGTH; in verity_read()
315 uint8_t *hash = &f->verity.hash[curr * SHA256_DIGEST_LENGTH]; in verity_read()
Dfec_private.h89 uint8_t zero_hash[SHA256_DIGEST_LENGTH];
Dfec_open.cpp182 uint8_t hash[SHA256_DIGEST_LENGTH]; in parse_ecc_header()
185 f->ecc.valid = !memcmp(hash, header.hash, SHA256_DIGEST_LENGTH); in parse_ecc_header()
/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/core/gatekeeperd/
DSoftGateKeeper.h39 uint8_t digest[SHA256_DIGEST_LENGTH];
144 return memcmp(computed.digest, fast_hash.digest, SHA256_DIGEST_LENGTH) == 0; in VerifyFast()
/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.cpp81 UniquePtr<uint8_t[]> hash_buf(new (std::nothrow) uint8_t[SHA256_DIGEST_LENGTH]); in InitializeKeyWrappingContext()
84 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/core/fs_mgr/
Dfs_mgr_verity.cpp120 uint8_t hash_buf[SHA256_DIGEST_LENGTH]; in verify_table()
550 uint8_t curr[SHA256_DIGEST_LENGTH]; in compare_last_signature()
551 uint8_t prev[SHA256_DIGEST_LENGTH]; in compare_last_signature()
575 if (metadata_find(entry.verity_loc.c_str(), tag, SHA256_DIGEST_LENGTH, &offset) < 0) { in compare_last_signature()
592 *match = !memcmp(curr, prev, SHA256_DIGEST_LENGTH); in compare_last_signature()
/system/update_engine/common/
Dhash_calculator.cc78 raw_hash_.resize(SHA256_DIGEST_LENGTH); in Finalize()
/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.cpp53 std::vector<uint8_t> digest_buffer(SHA256_DIGEST_LENGTH); in signature2SHA256()
/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/bt/btif/src/
Dbtif_config.cc656 uint8_t hash[SHA256_DIGEST_LENGTH]; in hash_file()
666 for (int i = 0; i < SHA256_DIGEST_LENGTH; i++) { in hash_file()
/system/netd/resolv/
DDnsTlsSocket.cpp50 constexpr size_t SHA256_SIZE = SHA256_DIGEST_LENGTH;
/system/core/adb/client/
Dauth.cpp130 result.resize(SHA256_DIGEST_LENGTH); in hash_key()