Home
last modified time | relevance | path

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

/external/vboot_reference/firmware/lib20/
Dpacked_key.c30 const struct vb2_packed_key *packed_key = in vb2_unpack_key() local
37 rv = vb2_verify_packed_key_inside(buf, size, packed_key); in vb2_unpack_key()
42 key->sig_alg = vb2_crypto_to_signature(packed_key->algorithm); in vb2_unpack_key()
48 key->hash_alg = vb2_crypto_to_hash(packed_key->algorithm); in vb2_unpack_key()
55 if (!expected_key_size || expected_key_size != packed_key->key_size) { in vb2_unpack_key()
61 buf32 = (const uint32_t *)vb2_packed_key_data(packed_key); in vb2_unpack_key()
Dmisc.c24 struct vb2_packed_key *packed_key; in vb2_load_fw_keyblock() local
99 packed_key = (struct vb2_packed_key *)key_data; in vb2_load_fw_keyblock()
101 packed_key->algorithm = kb->data_key.algorithm; in vb2_load_fw_keyblock()
102 packed_key->key_version = kb->data_key.key_version; in vb2_load_fw_keyblock()
103 packed_key->key_size = kb->data_key.key_size; in vb2_load_fw_keyblock()
111 memmove(key_data + packed_key->key_offset, in vb2_load_fw_keyblock()
113 packed_key->key_size); in vb2_load_fw_keyblock()
118 packed_key->key_offset + packed_key->key_size; in vb2_load_fw_keyblock()
/external/vboot_reference/firmware/lib21/
Dmisc.c72 struct vb2_packed_key *packed_key; in vb2_load_fw_keyblock() local
115 packed_key = (struct vb2_packed_key *)((uint8_t *)kb + kb->key_offset); in vb2_load_fw_keyblock()
118 if (packed_key->key_version > 0xffff) in vb2_load_fw_keyblock()
120 if (!rv && packed_key->key_version < (sd->fw_version_secdata >> 16)) in vb2_load_fw_keyblock()
127 sd->fw_version = packed_key->key_version << 16; in vb2_load_fw_keyblock()
139 memmove(key_data, packed_key, packed_key->c.total_size); in vb2_load_fw_keyblock()
140 packed_key = (struct vb2_packed_key *)key_data; in vb2_load_fw_keyblock()
144 sd->workbuf_data_key_size = packed_key->c.total_size; in vb2_load_fw_keyblock()
/external/vboot_reference/
DMakefile334 firmware/lib20/packed_key.c
340 firmware/lib21/packed_key.c