diff options
Diffstat (limited to 'firmware/lib/vboot_kernel.c')
-rw-r--r-- | firmware/lib/vboot_kernel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/lib/vboot_kernel.c b/firmware/lib/vboot_kernel.c index 495b360d..470f19e5 100644 --- a/firmware/lib/vboot_kernel.c +++ b/firmware/lib/vboot_kernel.c @@ -137,6 +137,9 @@ static vb2_error_t vb2_verify_kernel_vblock( return VB2_ERROR_VBLOCK_KERNEL_SUBKEY; } + if (vb2_hwcrypto_allowed(ctx)) + kernel_subkey2.allow_hwcrypto = 1; + /* Verify the keyblock. */ int keyblock_valid = 1; /* Assume valid */ struct vb2_keyblock *keyblock = get_keyblock(kbuf); @@ -412,6 +415,9 @@ static vb2_error_t vb2_load_partition( return VB2_ERROR_LOAD_PARTITION_DATA_KEY; } + if (vb2_hwcrypto_allowed(ctx)) + data_key.allow_hwcrypto = 1; + /* Verify kernel data */ if (VB2_SUCCESS != vb2_verify_data(kernbuf, kernbuf_size, &preamble->body_signature, |