Skip to content

Commit

Permalink
Introduce SHA256/SHA512 interleave, HAVE_DSA; revised ERROR_OUT, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Feb 24, 2024
1 parent a77c6d1 commit 0775baa
Show file tree
Hide file tree
Showing 4 changed files with 500 additions and 111 deletions.
2 changes: 1 addition & 1 deletion src/pk.c
Original file line number Diff line number Diff line change
Expand Up @@ -8499,7 +8499,7 @@ int wolfSSL_DH_compute_key(unsigned char* key, const WOLFSSL_BIGNUM* otherPub,
word32 keySz = 0;
int pubSz = MAX_DHKEY_SZ;
int privSz = MAX_DHKEY_SZ;
int sz;
int sz = 0;
#ifdef WOLFSSL_SMALL_STACK
unsigned char* pub = NULL;
unsigned char* priv = NULL;
Expand Down
9 changes: 6 additions & 3 deletions wolfcrypt/src/port/Espressif/esp32_sha.c
Original file line number Diff line number Diff line change
Expand Up @@ -2244,14 +2244,18 @@ int esp_sha512_digest_process(struct wc_Sha512* sha, byte blockproc)

#if defined(WOLFSSL_ESP32_CRYPT) && defined(WOLFSSL_HW_METRICS)
int esp_sw_sha256_count_add(void) {
int ret = 0;
#if !defined(NO_WOLFSSL_ESP32_CRYPT_HASH)
esp_sha256_sw_fallback_usage_ct++;
return esp_sha256_sw_fallback_usage_ct;
ret = esp_sha256_sw_fallback_usage_ct;
#endif
return ret;
}

int esp_hw_show_sha_metrics(void)
{
int ret = 0;
#ifdef WOLFSSL_ESP32_CRYPT
#if defined(WOLFSSL_ESP32_CRYPT) && !defined(NO_WOLFSSL_ESP32_CRYPT_HASH)
ESP_LOGI(TAG, "--------------------------------------------------------");
ESP_LOGI(TAG, "------------- wolfSSL ESP HW SHA Metrics----------------");
ESP_LOGI(TAG, "--------------------------------------------------------");
Expand Down Expand Up @@ -2280,7 +2284,6 @@ int esp_hw_show_sha_metrics(void)
ret = 0;
#endif /* HW_MATH_ENABLED */


return ret;
}
#endif /* WOLFSSL_ESP32_CRYPT and WOLFSSL_HW_METRICS */
Expand Down

0 comments on commit 0775baa

Please sign in to comment.