Merge pull request #1404 from JacobBarthelmeh/Compatibility-Layer

reduce impact of NO_OLD_SHA256_NAMES macro
This commit is contained in:
David Garske
2018-02-28 16:12:37 +01:00
committed by GitHub
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