Lines Matching refs:dc
47 struct vb2_digest_context *dc; in vb2api_init_hash2() local
76 dc = (struct vb2_digest_context *) in vb2api_init_hash2()
79 uint32_t dig_size = sizeof(*dc); in vb2api_init_hash2()
81 dc = vb2_workbuf_alloc(&wb, dig_size); in vb2api_init_hash2()
82 if (!dc) in vb2api_init_hash2()
85 sd->workbuf_hash_offset = vb2_offset_of(ctx->workbuf, dc); in vb2api_init_hash2()
101 dc->hash_alg = sig->hash_alg; in vb2api_init_hash2()
102 dc->using_hwcrypto = 1; in vb2api_init_hash2()
113 return vb2_digest_init(dc, sig->hash_alg); in vb2api_init_hash2()
119 struct vb2_digest_context *dc = (struct vb2_digest_context *) in vb2api_check_hash() local
124 uint32_t digest_size = vb2_digest_size(dc->hash_alg); in vb2api_check_hash()
151 if (dc->using_hwcrypto) in vb2api_check_hash()
154 rv = vb2_digest_finalize(dc, digest, digest_size); in vb2api_check_hash()