Home | History | Annotate | Download | only in lib20

Lines Matching defs:sig

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