Lines Matching refs:preamble
202 int vb2_verify_fw_preamble(struct vb2_fw_preamble *preamble, in vb2_verify_fw_preamble() argument
207 struct vb2_signature *sig = &preamble->preamble_signature; in vb2_verify_fw_preamble()
212 if(size < sizeof(*preamble)) { in vb2_verify_fw_preamble()
216 if (preamble->header_version_major != in vb2_verify_fw_preamble()
222 if (preamble->header_version_minor < 1) { in vb2_verify_fw_preamble()
227 if (size < preamble->preamble_size) { in vb2_verify_fw_preamble()
233 if (vb2_verify_signature_inside(preamble, preamble->preamble_size, in vb2_verify_fw_preamble()
240 if (preamble->preamble_size < sig->data_size) { in vb2_verify_fw_preamble()
245 if (vb2_verify_data((const uint8_t *)preamble, size, sig, key, wb)) { in vb2_verify_fw_preamble()
257 if (vb2_verify_signature_inside(preamble, sig->data_size, in vb2_verify_fw_preamble()
258 &preamble->body_signature)) { in vb2_verify_fw_preamble()
264 if (vb2_verify_packed_key_inside(preamble, sig->data_size, in vb2_verify_fw_preamble()
265 &preamble->kernel_subkey)) { in vb2_verify_fw_preamble()