diff options
Diffstat (limited to 'firmware/2lib/2api.c')
-rw-r--r-- | firmware/2lib/2api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/2lib/2api.c b/firmware/2lib/2api.c index 5d2775f0..1a616d5b 100644 --- a/firmware/2lib/2api.c +++ b/firmware/2lib/2api.c @@ -118,5 +118,8 @@ int vb2api_extend_hash(struct vb2_context *ctx, sd->hash_remaining_size -= size; - return vb2_digest_extend(dc, buf, size); + if (dc->using_hwcrypto) + return vb2ex_hwcrypto_digest_extend(buf, size); + else + return vb2_digest_extend(dc, buf, size); } |