Lines Matching refs:ptn
25 static bool hvb_need_verify_hash(const char *const *hash_ptn_list, const char *ptn) in hvb_need_verify_hash() argument
28 size_t ptn_len = hvb_strlen(ptn); in hvb_need_verify_hash()
35 hvb_memcmp(hash_ptn_list[n], ptn, ptn_len) == 0) in hvb_need_verify_hash()
95 static enum hvb_errno hash_image_init_desc(struct hvb_ops *ops, const char *ptn, in hash_image_init_desc() argument
108 if (image_type != HVB_IMAGE_TYPE_HASH || !hvb_need_verify_hash(hash_ptn_list, ptn)) { in hash_image_init_desc()
109 hvb_printv(ptn, ": no need verify hash image.\n", NULL); in hash_image_init_desc()
120 io_ret = ops->read_partition(ops, ptn, 0, image_buf.size, image_buf.addr, &read_bytes); in hash_image_init_desc()
122 hvb_printv(ptn, ": Error loading data.\n", NULL); in hash_image_init_desc()
127 hvb_printv(ptn, ": Read incorrect number of bytes from.\n", NULL); in hash_image_init_desc()
134 hvb_printv(ptn, ": compare hash error.\n", NULL); in hash_image_init_desc()
145 image->partition_name = hvb_strdup(ptn); in hash_image_init_desc()
382 enum hvb_errno cert_init_desc(struct hvb_ops *ops, const char *ptn, struct hvb_buf *cert_buf, in cert_init_desc() argument
411 ret = hash_image_init_desc(ops, ptn, &cert, hash_ptn_list, vd); in cert_init_desc()