summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2secdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/2lib/include/2secdata.h')
-rw-r--r--firmware/2lib/include/2secdata.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/2lib/include/2secdata.h b/firmware/2lib/include/2secdata.h
index 880a2ec3..c3355f8c 100644
--- a/firmware/2lib/include/2secdata.h
+++ b/firmware/2lib/include/2secdata.h
@@ -217,9 +217,10 @@ int vb2_secdata_fwmp_get_flag(struct vb2_context *ctx,
uint8_t *vb2_secdata_fwmp_get_dev_key_hash(struct vb2_context *ctx);
/*
- * Helper function to check if hwcrypto for RSA is allowed
+ * Helper function to check if hwcrypto is allowed.
*/
-static inline int vb2_hwcrypto_rsa_allowed(struct vb2_context *ctx) {
+static inline int vb2_hwcrypto_allowed(struct vb2_context *ctx)
+{
/* disable hwcrypto in recovery mode */
if (ctx->flags & VB2_CONTEXT_RECOVERY_MODE)