summaryrefslogtreecommitdiff
path: root/firmware/lib20/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/lib20/misc.c')
-rw-r--r--firmware/lib20/misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/lib20/misc.c b/firmware/lib20/misc.c
index 4e1250c0..a2d5b230 100644
--- a/firmware/lib20/misc.c
+++ b/firmware/lib20/misc.c
@@ -43,6 +43,8 @@ vb2_error_t vb2_load_fw_keyblock(struct vb2_context *ctx)
/* Unpack the root key */
VB2_TRY(vb2_unpack_key_buffer(&root_key, key_data, key_size));
+ root_key.allow_hwcrypto = vb2_hwcrypto_rsa_allowed(ctx);
+
/* Load the firmware keyblock header after the root key */
kb = vb2_workbuf_alloc(&wb, sizeof(*kb));
if (!kb)
@@ -147,6 +149,8 @@ vb2_error_t vb2_load_fw_preamble(struct vb2_context *ctx)
VB2_TRY(vb2_unpack_key_buffer(&data_key, key_data, key_size));
+ data_key.allow_hwcrypto = vb2_hwcrypto_rsa_allowed(ctx);
+
/* Load the firmware preamble header */
pre = vb2_workbuf_alloc(&wb, sizeof(*pre));
if (!pre)