mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
ESP32 SHA384 fixes
This commit is contained in:
@@ -507,8 +507,7 @@ int wc_esp_digest_state(WC_ESP32SHA* ctx, byte* hash)
|
|||||||
|
|
||||||
#if defined(WOLFSSL_SHA384)
|
#if defined(WOLFSSL_SHA384)
|
||||||
case SHA2_384:
|
case SHA2_384:
|
||||||
SHA_LOAD_REG = SHA_384_LOAD_REG;
|
DPORT_REG_WRITE(SHA_384_LOAD_REG, 1);
|
||||||
SHA_BUSY_REG = SHA_384_BUSY_REG;
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -1306,7 +1306,7 @@ static int InitSha384(wc_Sha384* sha384)
|
|||||||
sha384->ctx.isfirstblock = 1;
|
sha384->ctx.isfirstblock = 1;
|
||||||
if(sha384->ctx.mode == ESP32_SHA_HW) {
|
if(sha384->ctx.mode == ESP32_SHA_HW) {
|
||||||
/* release hw */
|
/* release hw */
|
||||||
esp_sha_hw_unlock(&(sha512->ctx));
|
esp_sha_hw_unlock(&(sha384->ctx));
|
||||||
}
|
}
|
||||||
/* always set mode as INIT
|
/* always set mode as INIT
|
||||||
* whether using HW or SW is determined at first call of update()
|
* whether using HW or SW is determined at first call of update()
|
||||||
|
Reference in New Issue
Block a user