Searched refs:packed_key (Results 1 – 4 of 4) sorted by relevance
30 const struct vb2_packed_key *packed_key = in vb2_unpack_key() local37 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()
24 struct vb2_packed_key *packed_key; in vb2_load_fw_keyblock() local99 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()
72 struct vb2_packed_key *packed_key; in vb2_load_fw_keyblock() local115 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()
334 firmware/lib20/packed_key.c340 firmware/lib21/packed_key.c