Lines Matching refs:uint8_t
40 static uint8_t last_unlock_challenge[AVB_ATX_UNLOCK_CHALLENGE_SIZE];
44 static void sha256(const uint8_t* data, in sha256()
46 uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in sha256()
52 uint8_t* tmp = avb_sha256_final(&context); in sha256()
57 static void sha512(const uint8_t* data, in sha512()
59 uint8_t hash[AVB_SHA512_DIGEST_SIZE]) { in sha512()
65 uint8_t* tmp = avb_sha512_final(&context); in sha512()
70 static void sha256_str(const char* str, uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in sha256_str()
71 sha256((const uint8_t*)str, avb_strlen(str), hash); in sha256_str()
77 const uint8_t expected_hash[AVB_SHA256_DIGEST_SIZE]) { in verify_permanent_attributes()
78 uint8_t hash[AVB_SHA256_DIGEST_SIZE]; in verify_permanent_attributes()
82 uint8_t rsa_hash[256] = {0}; in verify_permanent_attributes()
83 uint8_t rsa_hash_revert[256] = {0}; in verify_permanent_attributes()
130 sha256((const uint8_t*)attributes, sizeof(AvbAtxPermanentAttributes), hash); in verify_permanent_attributes()
141 sha256((const uint8_t*)attributes, sizeof(AvbAtxPermanentAttributes), hash); in verify_permanent_attributes()
153 const uint8_t authority[AVB_ATX_PUBLIC_KEY_SIZE], in verify_certificate()
155 const uint8_t expected_usage[AVB_SHA256_DIGEST_SIZE]) { in verify_certificate()
157 uint8_t certificate_hash[AVB_SHA512_DIGEST_SIZE]; in verify_certificate()
164 sha512((const uint8_t*)&certificate->signed_data, in verify_certificate()
194 const uint8_t authority[AVB_ATX_PUBLIC_KEY_SIZE], in verify_pik_certificate()
196 uint8_t expected_usage[AVB_SHA256_DIGEST_SIZE]; in verify_pik_certificate()
210 const uint8_t authority[AVB_ATX_PUBLIC_KEY_SIZE], in verify_psk_certificate()
212 const uint8_t product_id[AVB_ATX_PRODUCT_ID_SIZE]) { in verify_psk_certificate()
213 uint8_t expected_subject[AVB_SHA256_DIGEST_SIZE]; in verify_psk_certificate()
214 uint8_t expected_usage[AVB_SHA256_DIGEST_SIZE]; in verify_psk_certificate()
235 const uint8_t authority[AVB_ATX_PUBLIC_KEY_SIZE], in verify_puk_certificate()
237 const uint8_t product_id[AVB_ATX_PRODUCT_ID_SIZE]) { in verify_puk_certificate()
238 uint8_t expected_subject[AVB_SHA256_DIGEST_SIZE]; in verify_puk_certificate()
239 uint8_t expected_usage[AVB_SHA256_DIGEST_SIZE]; in verify_puk_certificate()
259 const uint8_t* public_key_data, in avb_atx_validate_vbmeta_public_key()
261 const uint8_t* public_key_metadata, in avb_atx_validate_vbmeta_public_key()
266 uint8_t permanent_attributes_hash[AVB_SHA256_DIGEST_SIZE]; in avb_atx_validate_vbmeta_public_key()
392 uint8_t permanent_attributes_hash[AVB_SHA256_DIGEST_SIZE]; in avb_atx_validate_unlock_credential()
395 uint8_t challenge_hash[AVB_SHA512_DIGEST_SIZE]; in avb_atx_validate_unlock_credential()