mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 14:00:48 +02:00
Avoid suppressing error from Cy_Crypto_Core_Sha_Finish in wc_Sha512_224Final.
Fixes F-4002.
This commit is contained in:
@@ -644,6 +644,9 @@ int wc_Sha512_224Final(wc_Sha512* sha, byte* hash)
|
||||
wolfSSL_CryptHwMutexUnLock();
|
||||
}
|
||||
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
|
||||
/* Reset state */
|
||||
return wc_InitSha512_224(sha);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user