Lines Matching refs:sig
46 const struct vb2_signature *sig = NULL; in vb2api_init_hash2() local
63 sig = (const struct vb2_signature *) in vb2api_init_hash2()
66 if (!memcmp(guid, &sig->guid, sizeof(*guid))) in vb2api_init_hash2()
69 hash_offset += sig->c.total_size; in vb2api_init_hash2()
90 sd->hash_tag = vb2_offset_of(ctx->workbuf, sig); in vb2api_init_hash2()
91 sd->hash_remaining_size = sig->data_size; in vb2api_init_hash2()
94 *size = sig->data_size; in vb2api_init_hash2()
97 rv = vb2ex_hwcrypto_digest_init(sig->hash_alg, sig->data_size); in vb2api_init_hash2()
100 sig->hash_alg); in vb2api_init_hash2()
101 dc->hash_alg = sig->hash_alg; in vb2api_init_hash2()
108 sig->hash_alg); in vb2api_init_hash2()
113 return vb2_digest_init(dc, sig->hash_alg); in vb2api_init_hash2()
126 const struct vb2_signature *sig; in vb2api_check_hash() local
135 sig = (const struct vb2_signature *)(ctx->workbuf + sd->hash_tag); in vb2api_check_hash()
159 if (vb2_safe_memcmp(digest, (const uint8_t *)sig + sig->sig_offset, in vb2api_check_hash()