• Home
  • Raw
  • Download

Lines Matching refs:sig

14 uint8_t *vb2_signature_data(struct vb2_signature *sig)  in vb2_signature_data()  argument
16 return (uint8_t *)sig + sig->sig_offset; in vb2_signature_data()
60 const struct vb2_signature *sig) in vb2_verify_signature_inside() argument
63 sig, sizeof(*sig), in vb2_verify_signature_inside()
64 sig->sig_offset, sig->sig_size); in vb2_verify_signature_inside()
68 struct vb2_signature *sig, in vb2_verify_digest() argument
72 uint8_t *sig_data = vb2_signature_data(sig); in vb2_verify_digest()
74 if (sig->sig_size != vb2_rsa_sig_size(key->sig_alg)) { in vb2_verify_digest()
77 sig->sig_size, vb2_rsa_sig_size(key->sig_alg), in vb2_verify_digest()
87 struct vb2_signature *sig, in vb2_verify_data() argument
97 if (sig->data_size > size) { in vb2_verify_data()
120 rv = vb2_digest_extend(dc, data, sig->data_size); in vb2_verify_data()
130 return vb2_verify_digest(key, sig, digest, &wblocal); in vb2_verify_data()
138 struct vb2_signature *sig; in vb2_verify_keyblock() local
160 sig = &block->keyblock_signature; in vb2_verify_keyblock()
162 if (vb2_verify_signature_inside(block, block->keyblock_size, sig)) { in vb2_verify_keyblock()
168 if (block->keyblock_size < sig->data_size) { in vb2_verify_keyblock()
174 rv = vb2_verify_data((const uint8_t *)block, size, sig, key, wb); in vb2_verify_keyblock()
181 if (sig->data_size < sizeof(struct vb2_keyblock)) { in vb2_verify_keyblock()
192 if (vb2_verify_packed_key_inside(block, sig->data_size, in vb2_verify_keyblock()
207 struct vb2_signature *sig = &preamble->preamble_signature; in vb2_verify_fw_preamble() local
234 sig)) { 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()
251 if (sig->data_size < sizeof(struct vb2_fw_preamble)) { in vb2_verify_fw_preamble()
257 if (vb2_verify_signature_inside(preamble, sig->data_size, in vb2_verify_fw_preamble()
264 if (vb2_verify_packed_key_inside(preamble, sig->data_size, in vb2_verify_fw_preamble()