Lines Matching refs:vce_hdr
128 struct vce_header vce_hdr; member
184 pr_dbf_msg("vce_hdr.vce_length: %d", e->vce_hdr.vce_length); in pr_dbf_vce()
185 pr_dbf_msg("vce_hdr.flags: %d", e->vce_hdr.flags); in pr_dbf_vce()
186 pr_dbf_msg("vce_hdr.key_type: %d", e->vce_hdr.key_type); in pr_dbf_vce()
187 pr_dbf_msg("vce_hdr.vc_index: %d", e->vce_hdr.vc_index); in pr_dbf_vce()
188 pr_dbf_msg("vce_hdr.vc_format: %d", e->vce_hdr.vc_format); in pr_dbf_vce()
189 pr_dbf_msg("vce_hdr.key_id_length: %d", e->vce_hdr.key_id_length); in pr_dbf_vce()
190 pr_dbf_msg("vce_hdr.vc_hash_type: %d", e->vce_hdr.vc_hash_type); in pr_dbf_vce()
191 pr_dbf_msg("vce_hdr.vc_hash_length: %d", e->vce_hdr.vc_hash_length); in pr_dbf_vce()
192 pr_dbf_msg("vce_hdr.vc_hash_offset: %d", e->vce_hdr.vc_hash_offset); in pr_dbf_vce()
193 pr_dbf_msg("vce_hdr.vc_length: %d", e->vce_hdr.vc_length); in pr_dbf_vce()
194 pr_dbf_msg("vce_hdr.vc_offset: %d", e->vce_hdr.vc_offset); in pr_dbf_vce()
197 memcpy(vc_name, e->vce_hdr.vc_name, VC_NAME_LEN_BYTES); in pr_dbf_vce()
203 e->vce_hdr.vc_index, vc_name); in pr_dbf_vce()
211 (u8 *)e->cert_data_buf + e->vce_hdr.vce_length - 128, 128); in pr_dbf_vce()
265 vce_hash = (u8 *)vce + vce->vce_hdr.vc_hash_offset; in check_certificate_hash()
266 vc_hash_length = vce->vce_hdr.vc_hash_length; in check_certificate_hash()
267 sha256((u8 *)vce + vce->vce_hdr.vc_offset, vce->vce_hdr.vc_length, hash); in check_certificate_hash()
282 if (!(vce->vce_hdr.flags & VCE_FLAGS_VALID_MASK)) { in check_certificate_valid()
286 if (vce->vce_hdr.vc_format != 1) { in check_certificate_valid()
290 if (vce->vce_hdr.vc_hash_type != 1) { in check_certificate_valid()
436 name_len = sizeof(vce->vce_hdr.vc_name); in get_key_description()
442 memcpy(desc, vce->vce_hdr.vc_name, name_len); in get_key_description()
444 vce->vce_hdr.vc_index, cs_token); in get_key_description()
466 desc, (u8 *)vce + vce->vce_hdr.vc_offset, in create_key_from_vce()
467 vce->vce_hdr.vc_length, in create_key_from_vce()
528 memcpy(vce, vcb->vcb_buf, extracted_vce->vce_hdr.vce_length); in extract_vce_from_sevcb()