Home
last modified time | relevance | path

Searched refs:ptn (Results 1 - 6 of 6) sorted by relevance

/base/startup/hvb/libhvb/src/footer/
H A Dhvb_footer.c65 static enum hvb_errno _load_and_parse_footer(struct hvb_ops *ops, struct hvb_footer *footer, const char *ptn) in _load_and_parse_footer() argument
73 io_ret = ops->read_partition(ops, ptn, -HVB_FOOTER_SIZE, HVB_FOOTER_SIZE, footer_buf.addr, &read_bytes); in _load_and_parse_footer()
75 hvb_printv(ptn, ": error, loading data.\n", NULL); in _load_and_parse_footer()
80 hvb_printv(ptn, ": Read incorrect number of bytes.\n", NULL); in _load_and_parse_footer()
86 hvb_printv(ptn, ": No footer detected,.\n", NULL); in _load_and_parse_footer()
93 static enum hvb_errno _load_cert(struct hvb_ops *ops, struct hvb_buf *cert, const char *ptn, struct hvb_footer *footer) in _load_cert() argument
99 io_ret = ops->read_partition(ops, ptn, offset, cert->size, cert->addr, &read_bytes); in _load_cert()
101 hvb_printv(ptn, ": error loading signature data.\n", NULL); in _load_cert()
106 hvb_printv(ptn, ": Read incorrect number of bytes from.\n", NULL); in _load_cert()
113 enum hvb_errno footer_init_desc(struct hvb_ops *ops, const char *ptn, cons argument
[all...]
/base/startup/hvb/libhvb/src/auth/
H A Dhvb.c72 static enum hvb_errno hvb_rvt_verify_root(struct hvb_ops *ops, const char *ptn, in hvb_rvt_verify_root() argument
81 ret = footer_init_desc(ops, ptn, ptn_list, &cert_pubk, vd); in hvb_rvt_verify_root()
83 hvb_printv("error verity partition: ", ptn, "\n", NULL); in hvb_rvt_verify_root()
104 static struct hvb_buf *hvb_get_partition_image(struct hvb_verified_data *vd, const char *ptn) in hvb_get_partition_image() argument
108 size_t name_len = hvb_strnlen(ptn, HVB_MAX_PARTITION_NAME_LEN); in hvb_get_partition_image()
110 hvb_print("invalid ptn name len\n"); in hvb_get_partition_image()
116 hvb_strncmp(ptn, p->partition_name, HVB_MAX_PARTITION_NAME_LEN) == 0) { in hvb_get_partition_image()
191 char const **ptn = NULL; in hash_ptn_list_add_rvt() local
202 ptn = (char const **)hvb_calloc(num_parttions * sizeof(char *)); in hash_ptn_list_add_rvt()
203 if (ptn in hash_ptn_list_add_rvt()
[all...]
/base/startup/hvb/libhvb/include/
H A Dhvb_ops.h40 enum hvb_io_errno (*read_partition)(struct hvb_ops *ops, const char *ptn, int64_t offset,
42 enum hvb_io_errno (*write_partition)(struct hvb_ops *ops, const char *ptn, int64_t offset,
53 enum hvb_io_errno (*get_partiton_size)(struct hvb_ops *ops, const char *ptn, uint64_t *out_bytes);
H A Dhvb_footer.h42 enum hvb_errno footer_init_desc(struct hvb_ops *ops, const char *ptn, const char *const *hash_ptn_list,
H A Dhvb_cert.h155 enum hvb_errno cert_init_desc(struct hvb_ops *ops, const char *ptn, struct hvb_buf *cert_buf,
/base/startup/hvb/libhvb/src/cert/
H A Dhvb_cert.c25 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_strnlen(ptn, HVB_MAX_PARTITION_NAME_LEN); in hvb_need_verify_hash()
30 hvb_print("invalid ptn name len\n"); in hvb_need_verify_hash()
39 hvb_strncmp(hash_ptn_list[n], ptn, HVB_MAX_PARTITION_NAME_LEN) == 0) { in hvb_need_verify_hash()
100 static enum hvb_errno hash_image_init_desc(struct hvb_ops *ops, const char *ptn, in hash_image_init_desc() argument
113 if (image_type != HVB_IMAGE_TYPE_HASH || !hvb_need_verify_hash(hash_ptn_list, ptn)) { in hash_image_init_desc()
114 hvb_printv(ptn, ": no need verify hash image.\n", NULL); in hash_image_init_desc()
125 io_ret = ops->read_partition(ops, ptn, 0, image_buf.size, image_buf.addr, &read_bytes); in hash_image_init_desc()
127 hvb_printv(ptn, ": Error loading data.\n", NULL); in hash_image_init_desc()
132 hvb_printv(ptn, " in hash_image_init_desc()
503 cert_init_desc(struct hvb_ops *ops, const char *ptn, struct hvb_buf *cert_buf, const char *const *hash_ptn_list, struct hvb_buf *out_pubk, struct hvb_verified_data *vd) cert_init_desc() argument
[all...]

Completed in 3 milliseconds