reduce impact of NO_OLD_SHA256_NAMES macro

This commit is contained in:
Jacob Barthelmeh
2018-02-27 12:21:11 -07:00
parent 91141e43c9
commit 06163f2bbb
2 changed files with 3 additions and 4 deletions

View File

@@ -123,9 +123,6 @@ typedef WOLFSSL_SHA256_CTX SHA256_CTX;
/* SHA256 is only available in non-fips mode because of SHA256 enum in FIPS
* build. */
#define SHA256 wolfSSL_SHA256
#define SHA256_BLOCK_SIZE WC_SHA256_BLOCK_SIZE
#define SHA256_DIGEST_SIZE WC_SHA256_DIGEST_SIZE
#define SHA256_PAD_SIZE WC_SHA256_PAD_SIZE
#endif

View File

@@ -78,8 +78,10 @@
#endif
#ifndef NO_OLD_SHA256_NAMES
#define Sha256 wc_Sha256
#define SHA256 WC_SHA256
#endif
#ifndef NO_OLD_WC_NAMES
#define Sha256 wc_Sha256
#define SHA256_BLOCK_SIZE WC_SHA256_BLOCK_SIZE
#define SHA256_DIGEST_SIZE WC_SHA256_DIGEST_SIZE
#define SHA256_PAD_SIZE WC_SHA256_PAD_SIZE