From 814e7c91e0bc4ef005aa6f1ff6e9e378cbf1e2b4 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Mon, 10 Jan 2022 18:30:53 +0100 Subject: [PATCH] PsoC6 hw crypto: added missing wc_InitSha512_ex() --- wolfcrypt/src/port/cypress/psoc6_crypto.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wolfcrypt/src/port/cypress/psoc6_crypto.c b/wolfcrypt/src/port/cypress/psoc6_crypto.c index 05e63b0c8..b6d6afa54 100644 --- a/wolfcrypt/src/port/cypress/psoc6_crypto.c +++ b/wolfcrypt/src/port/cypress/psoc6_crypto.c @@ -73,6 +73,13 @@ int wc_InitSha512(wc_Sha512* sha) return (int) Cy_Crypto_Core_Sha_Start(crypto_base, &sha->hash_state); } +int wc_InitSha512_ex(wc_Sha512* sha, void *heap, int devid) +{ + (void)heap; + (void)devid; + return wc_InitSha512(sha); +} + int wc_Sha512Update(wc_Sha512* sha, const byte* in, word32 sz) { if ((!sha) || (!in))