Skip to content

Commit 3603643

Browse files
committed
Fix regressions in wolfHSM integration
1 parent edb4b6b commit 3603643

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/image.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ static int header_sha256(wc_Sha256 *sha256_ctx, struct wolfBoot_image *img)
833833
if (stored_sha_len != WOLFBOOT_SHA_DIGEST_SIZE)
834834
return -1;
835835
#ifdef WOLFBOOT_ENABLE_WOLFHSM_CLIENT
836-
(void)wc_InitSha256_ex(&sha256_ctx, NULL, hsmClientDevIdHash);
836+
(void)wc_InitSha256_ex(sha256_ctx, NULL, hsmClientDevIdHash);
837837
#else
838838
wc_InitSha256(sha256_ctx);
839839
#endif
@@ -924,7 +924,7 @@ static int header_sha384(wc_Sha384 *sha384_ctx, struct wolfBoot_image *img)
924924
if (stored_sha_len != WOLFBOOT_SHA_DIGEST_SIZE)
925925
return -1;
926926
#ifdef WOLFBOOT_ENABLE_WOLFHSM_CLIENT
927-
(void)wc_InitSha384_ex(&sha384_ctx, NULL, hsmClientDevIdHash);
927+
(void)wc_InitSha384_ex(sha384_ctx, NULL, hsmClientDevIdHash);
928928
#else
929929
wc_InitSha384(sha384_ctx);
930930
#endif

0 commit comments

Comments
 (0)