Home
last modified time | relevance | path

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

/ohos5.0/base/startup/hvb/libhvb/src/cert/
H A Dhvb_cert.c61 static enum hvb_errno hvb_compare_hash(struct hvb_buf *digest_buf, struct hvb_buf *msg_buf, in hvb_compare_hash() argument
69 if (computed_hash_size != digest_buf->size) { in hvb_compare_hash()
86 …hash_err = hash_calc_do_final(&ctx, msg_buf->addr, msg_buf->size, &computed_hash[0], digest_buf->s… in hvb_compare_hash()
92 if (hvb_memcmp(&computed_hash[0], digest_buf->addr, computed_hash_size) != 0) { in hvb_compare_hash()
108 struct hvb_buf digest_buf = {cert->hash_payload.digest, cert->digest_size}; in hash_image_init_desc() local
137 ret = hvb_compare_hash(&digest_buf, &image_buf, &salt_buf, cert->hash_algo); in hash_image_init_desc()