/external/avb/libavb_atx/ |
D | avb_atx_validate.c | 39 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 …]
|
D | avb_atx_types.h | 59 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];
|
D | avb_atx_ops.h | 61 AvbAtxOps* atx_ops, uint8_t hash[AVB_SHA256_DIGEST_SIZE]);
|
/external/avb/libavb/ |
D | avb_crypto.c | 35 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},
|
D | avb_slot_verify.c | 404 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()
|
D | avb_crypto.h | 51 #define AVB_SHA256_DIGEST_SIZE 32 macro
|
D | avb_sha.h | 59 uint8_t buf[AVB_SHA256_DIGEST_SIZE]; /* Used for storing the final digest. */
|
D | avb_cmdline.c | 271 uint8_t vbmeta_digest[AVB_SHA256_DIGEST_SIZE]; in avb_append_options() 284 AVB_SHA256_DIGEST_SIZE)) { in avb_append_options()
|
/external/avb/test/ |
D | avb_atx_slot_verify_unittest.cc | 139 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] = {};
|
D | avb_crypto_ops_unittest.cc | 51 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()
|
D | avb_slot_verify_unittest.cc | 86 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 …]
|
D | fake_avb_ops.h | 112 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
|
D | fake_avb_ops.cc | 407 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
|
D | avb_atx_validate_unittest.cc | 204 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()
|
D | avbtool_unittest.cc | 593 mem_to_hexstring(hasher_digest, AVB_SHA256_DIGEST_SIZE)); in AddHashFooterTest()
|
/external/avb/examples/things/ |
D | avb_atx_slot_verify.h | 78 uint8_t vbh_extension[AVB_SHA256_DIGEST_SIZE]);
|
D | avb_atx_slot_verify.c | 132 uint8_t vbh_extension[AVB_SHA256_DIGEST_SIZE]) { in avb_atx_slot_verify() argument
|