Lines Matching refs:hash
46 uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in sha256()
53 avb_memcpy(hash, tmp, AVB_SHA256_DIGEST_SIZE); in sha256()
59 uint8_t hash[AVB_SHA512_DIGEST_SIZE]) { in sha512()
66 avb_memcpy(hash, tmp, AVB_SHA512_DIGEST_SIZE); 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()
78 uint8_t hash[AVB_SHA256_DIGEST_SIZE]; in verify_permanent_attributes() local
130 sha256((const uint8_t*)attributes, sizeof(AvbAtxPermanentAttributes), hash); in verify_permanent_attributes()
131 if (memcmp((void*)rsaResult, (void*)hash, 32) == 0) in verify_permanent_attributes()
141 sha256((const uint8_t*)attributes, sizeof(AvbAtxPermanentAttributes), hash); in verify_permanent_attributes()
142 if (0 != avb_safe_memcmp(hash, expected_hash, AVB_SHA256_DIGEST_SIZE)) { in verify_permanent_attributes()