summaryrefslogtreecommitdiff
path: root/firmware/2lib/2stub_hwcrypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/2lib/2stub_hwcrypto.c')
-rw-r--r--firmware/2lib/2stub_hwcrypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/2lib/2stub_hwcrypto.c b/firmware/2lib/2stub_hwcrypto.c
index 56272ad4..87fb7333 100644
--- a/firmware/2lib/2stub_hwcrypto.c
+++ b/firmware/2lib/2stub_hwcrypto.c
@@ -7,6 +7,7 @@
#include "2api.h"
+#ifndef X86_SHA_EXT
__attribute__((weak))
vb2_error_t vb2ex_hwcrypto_digest_init(enum vb2_hash_algorithm hash_alg,
uint32_t data_size)
@@ -26,6 +27,7 @@ vb2_error_t vb2ex_hwcrypto_digest_finalize(uint8_t *digest,
{
return VB2_ERROR_SHA_FINALIZE_ALGORITHM; /* Should not be called. */
}
+#endif
__attribute__((weak))
vb2_error_t vb2ex_hwcrypto_rsa_verify_digest(const struct vb2_public_key *key,