Skip to content

Commit

Permalink
Fix issue with software sha
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Jan 9, 2025
1 parent a75c1fa commit 5e666da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/stratum/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ void midstate_sha256_bin(const uint8_t *data, const size_t data_len, uint8_t *de
// memcpy(dest, midstate.state, 32);
#ifdef CONFIG_MBEDTLS_HARDWARE_SHA
flip32bytes(dest, midstate.state);
#else
memcpy(dest, midstate.MBEDTLS_PRIVATE(state), 32);
#endif

}
Expand Down

0 comments on commit 5e666da

Please sign in to comment.