Searched refs:SHA256_DIGEST_LENGTH (Results 1 – 14 of 14) sorted by relevance
/system/keymaster/ |
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 | ocb_utils.cpp | 81 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/vold/ |
D | cryptfs.h | 91 #if !defined(SHA256_DIGEST_LENGTH) 92 #define SHA256_DIGEST_LENGTH 32 macro 129 __le8 hash_first_block[SHA256_DIGEST_LENGTH]; /* When CRYPT_ENCRYPTION_IN_PROGRESS 160 unsigned char sha256[SHA256_DIGEST_LENGTH];
|
D | cryptfs.c | 3188 __le8 hash_first_block[SHA256_DIGEST_LENGTH];
|
/system/netd/server/ |
D | SoftapController.cpp | 155 char psk_str[2*SHA256_DIGEST_LENGTH+1]; in setSoftap() 222 unsigned char psk[SHA256_DIGEST_LENGTH]; in generatePsk() 227 strlen(ssid), 4096, SHA256_DIGEST_LENGTH, in generatePsk() 233 for (int j=0; j < SHA256_DIGEST_LENGTH; j++) { in generatePsk()
|
/system/extras/libfec/ |
D | fec_verity.cpp | 105 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 …]
|
D | fec_read.cpp | 80 return !verity_check_block(f, &f->verity.hash[n * SHA256_DIGEST_LENGTH], in is_erasure() 93 uint64_t hash_offset = (offset / FEC_BLOCKSIZE) * SHA256_DIGEST_LENGTH; in is_zero() 96 v->hash_data_blocks * FEC_BLOCKSIZE - SHA256_DIGEST_LENGTH)) { in is_zero() 100 return !memcmp(v->zero_hash, &v->hash[hash_offset], SHA256_DIGEST_LENGTH); in is_zero() 308 SHA256_DIGEST_LENGTH) / SHA256_DIGEST_LENGTH; in verity_read() 313 uint8_t *hash = &f->verity.hash[curr * SHA256_DIGEST_LENGTH]; in verity_read()
|
D | fec_private.h | 89 uint8_t zero_hash[SHA256_DIGEST_LENGTH];
|
D | fec_open.cpp | 191 uint8_t hash[SHA256_DIGEST_LENGTH]; in parse_ecc_header() 194 f->ecc.valid = !memcmp(hash, header.hash, SHA256_DIGEST_LENGTH); in parse_ecc_header()
|
/system/extras/libfec/include/fec/ |
D | io.h | 33 #ifndef SHA256_DIGEST_LENGTH 34 #define SHA256_DIGEST_LENGTH 32 macro 51 uint8_t hash[SHA256_DIGEST_LENGTH];
|
/system/core/gatekeeperd/ |
D | SoftGateKeeper.h | 39 uint8_t digest[SHA256_DIGEST_LENGTH]; 151 return memcmp(computed.digest, fast_hash.digest, SHA256_DIGEST_LENGTH) == 0; in VerifyFast()
|
/system/extras/verity/ |
D | verify_boot_signature.c | 318 unsigned char digest[SHA256_DIGEST_LENGTH]; in verify_signature() 338 if (!RSA_verify(NID_sha256, digest, SHA256_DIGEST_LENGTH, in verify_signature()
|
/system/update_engine/common/ |
D | hash_calculator.cc | 80 raw_hash_.resize(SHA256_DIGEST_LENGTH); in Finalize()
|
/system/extras/verity/fec/ |
D | image.cpp | 472 uint8_t hash[SHA256_DIGEST_LENGTH]; in image_ecc_load() 475 if (memcmp(hash, p->hash, SHA256_DIGEST_LENGTH) != 0) { in image_ecc_load()
|