forked from wolfSSL/wolfssl
reduce impact of NO_OLD_SHA256_NAMES macro
This commit is contained in:
@@ -123,9 +123,6 @@ typedef WOLFSSL_SHA256_CTX SHA256_CTX;
|
|||||||
/* SHA256 is only available in non-fips mode because of SHA256 enum in FIPS
|
/* SHA256 is only available in non-fips mode because of SHA256 enum in FIPS
|
||||||
* build. */
|
* build. */
|
||||||
#define SHA256 wolfSSL_SHA256
|
#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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -78,8 +78,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NO_OLD_SHA256_NAMES
|
#ifndef NO_OLD_SHA256_NAMES
|
||||||
#define Sha256 wc_Sha256
|
|
||||||
#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_BLOCK_SIZE WC_SHA256_BLOCK_SIZE
|
||||||
#define SHA256_DIGEST_SIZE WC_SHA256_DIGEST_SIZE
|
#define SHA256_DIGEST_SIZE WC_SHA256_DIGEST_SIZE
|
||||||
#define SHA256_PAD_SIZE WC_SHA256_PAD_SIZE
|
#define SHA256_PAD_SIZE WC_SHA256_PAD_SIZE
|
||||||
|
Reference in New Issue
Block a user