Home
last modified time | relevance | path

Searched refs:AVB_SHA256_DIGEST_SIZE (Results 1 – 17 of 17) sorted by relevance

/external/avb/libavb_atx/
Davb_atx_validate.c39 uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in sha256() argument
44 avb_memcpy(hash, tmp, AVB_SHA256_DIGEST_SIZE); in sha256()
59 static void sha256_str(const char* str, uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in sha256_str() argument
66 const uint8_t expected_hash[AVB_SHA256_DIGEST_SIZE]) { in verify_permanent_attributes() argument
67 uint8_t hash[AVB_SHA256_DIGEST_SIZE]; in verify_permanent_attributes()
74 if (0 != avb_safe_memcmp(hash, expected_hash, AVB_SHA256_DIGEST_SIZE)) { in verify_permanent_attributes()
86 const uint8_t expected_usage[AVB_SHA256_DIGEST_SIZE]) { in verify_certificate() argument
115 AVB_SHA256_DIGEST_SIZE)) { in verify_certificate()
127 uint8_t expected_usage[AVB_SHA256_DIGEST_SIZE]; in verify_pik_certificate()
144 uint8_t expected_subject[AVB_SHA256_DIGEST_SIZE]; in verify_psk_certificate()
[all …]
Davb_atx_types.h59 uint8_t subject[AVB_SHA256_DIGEST_SIZE];
60 uint8_t usage[AVB_SHA256_DIGEST_SIZE];
80 uint8_t product_id_hash[AVB_SHA256_DIGEST_SIZE];
Davb_atx_ops.h61 AvbAtxOps* atx_ops, uint8_t hash[AVB_SHA256_DIGEST_SIZE]);
/external/avb/libavb/
Davb_crypto.c35 padding_RSA2048_SHA256[AVB_RSA2048_NUM_BYTES - AVB_SHA256_DIGEST_SIZE] = {
57 padding_RSA4096_SHA256[AVB_RSA4096_NUM_BYTES - AVB_SHA256_DIGEST_SIZE] = {
100 padding_RSA8192_SHA256[AVB_RSA8192_NUM_BYTES - AVB_SHA256_DIGEST_SIZE] = {
334 .hash_len = AVB_SHA256_DIGEST_SIZE},
338 .hash_len = AVB_SHA256_DIGEST_SIZE},
342 .hash_len = AVB_SHA256_DIGEST_SIZE},
Davb_slot_verify.c404 digest_len = AVB_SHA256_DIGEST_SIZE; in load_and_verify_hash_partition()
1173 digest_len = AVB_SHA256_DIGEST_SIZE; in load_and_verify_vbmeta()
1248 uint8_t vbmeta_digest_sha256[AVB_SHA256_DIGEST_SIZE]; in avb_manage_hashtree_error_mode()
1249 uint8_t stored_vbmeta_digest_sha256[AVB_SHA256_DIGEST_SIZE]; in avb_manage_hashtree_error_mode()
1266 AVB_SHA256_DIGEST_SIZE, in avb_manage_hashtree_error_mode()
1280 AVB_SHA256_DIGEST_SIZE, in avb_manage_hashtree_error_mode()
1294 if (num_bytes_read != AVB_SHA256_DIGEST_SIZE) { in avb_manage_hashtree_error_mode()
1309 AVB_SHA256_DIGEST_SIZE) == 0) { in avb_manage_hashtree_error_mode()
1724 avb_memcpy(out_digest, avb_sha256_final(&ctx), AVB_SHA256_DIGEST_SIZE); in avb_slot_verify_data_calculate_vbmeta_digest()
Davb_crypto.h51 #define AVB_SHA256_DIGEST_SIZE 32 macro
Davb_sha.h59 uint8_t buf[AVB_SHA256_DIGEST_SIZE]; /* Used for storing the final digest. */
Davb_cmdline.c271 uint8_t vbmeta_digest[AVB_SHA256_DIGEST_SIZE]; in avb_append_options()
284 AVB_SHA256_DIGEST_SIZE)) { in avb_append_options()
/external/avb/test/
Davb_atx_slot_verify_unittest.cc139 memset(&expected_vbh_extension_, 0, AVB_SHA256_DIGEST_SIZE); in CheckVBH()
145 AVB_SHA256_DIGEST_SIZE)); in CheckVBH()
183 uint8_t expected_vbh_extension_[AVB_SHA256_DIGEST_SIZE] = {};
184 uint8_t actual_vbh_extension_[AVB_SHA256_DIGEST_SIZE] = {};
Davb_crypto_ops_unittest.cc51 mem_to_hexstring(avb_sha256_final(&ctx), AVB_SHA256_DIGEST_SIZE)); in TEST()
72 mem_to_hexstring(avb_sha256_final(&ctx), AVB_SHA256_DIGEST_SIZE)); in TEST()
Davb_slot_verify_unittest.cc86 uint8_t vbmeta_digest[AVB_SHA256_DIGEST_SIZE]; in TEST_F()
90 mem_to_hexstring(vbmeta_digest, AVB_SHA256_DIGEST_SIZE)); in TEST_F()
1138 uint8_t vbmeta_digest[AVB_SHA256_DIGEST_SIZE]; in TEST_F()
1142 mem_to_hexstring(vbmeta_digest, AVB_SHA256_DIGEST_SIZE)); in TEST_F()
1449 uint8_t vbmeta_digest[AVB_SHA256_DIGEST_SIZE]; in TEST_F()
1453 mem_to_hexstring(vbmeta_digest, AVB_SHA256_DIGEST_SIZE)); in TEST_F()
3329 const uint8_t kDigest[AVB_SHA256_DIGEST_SIZE] = {
3339 kPersistentValueName, AVB_SHA256_DIGEST_SIZE, kDigest); in TEST_F()
3358 kPersistentValueName, AVB_SHA256_DIGEST_SIZE, kDigest); in TEST_F()
3393 ::testing::Values(AVB_SHA256_DIGEST_SIZE + 1,
[all …]
Dfake_avb_ops.h112 uint8_t hash[AVB_SHA256_DIGEST_SIZE]) = 0;
289 uint8_t hash[AVB_SHA256_DIGEST_SIZE]) override;
442 uint8_t hash[AVB_SHA256_DIGEST_SIZE]) override { in read_permanent_attributes_hash() argument
Dfake_avb_ops.cc407 uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in read_permanent_attributes_hash() argument
414 memset(hash, 0, AVB_SHA256_DIGEST_SIZE); in read_permanent_attributes_hash()
416 AVB_SHA256_DIGEST_SIZE); in read_permanent_attributes_hash()
570 AvbAtxOps* atx_ops, uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in my_ops_read_permanent_attributes_hash() argument
Davb_atx_validate_unittest.cc204 uint8_t hash[AVB_SHA256_DIGEST_SIZE]) override { in read_permanent_attributes_hash() argument
651 uint8_t expected_pid_hash[AVB_SHA256_DIGEST_SIZE]; in TEST_F()
656 AVB_SHA256_DIGEST_SIZE)); in TEST_F()
Davbtool_unittest.cc593 mem_to_hexstring(hasher_digest, AVB_SHA256_DIGEST_SIZE)); in AddHashFooterTest()
/external/avb/examples/things/
Davb_atx_slot_verify.h78 uint8_t vbh_extension[AVB_SHA256_DIGEST_SIZE]);
Davb_atx_slot_verify.c132 uint8_t vbh_extension[AVB_SHA256_DIGEST_SIZE]) { in avb_atx_slot_verify() argument