Skip to content

Commit

Permalink
go back to || for blake2 and shake, remove unused define.
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead committed Mar 28, 2024
1 parent fbd5f0b commit 9c1bbbf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Modules/_hashopenssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,13 @@
#define MUNCH_SIZE INT_MAX

#define PY_OPENSSL_HAS_SCRYPT 1
#if defined(NID_sha512_224) && defined(NID_sha512_256)
#define PY_OPENSSL_HAS_SHA512_2XX 1
#endif
#if defined(NID_sha3_224) && defined(NID_sha3_256) && defined(NID_sha3_384) && defined(NID_sha3_512)
#define PY_OPENSSL_HAS_SHA3 1
#endif
#if defined(NID_shake128) && defined(NID_shake256)
#if defined(NID_shake128) || defined(NID_shake256)
#define PY_OPENSSL_HAS_SHAKE 1
#endif
#if defined(NID_blake2s256) && defined(NID_blake2b512)
#if defined(NID_blake2s256) || defined(NID_blake2b512)
#define PY_OPENSSL_HAS_BLAKE2 1
#endif

Expand Down

0 comments on commit 9c1bbbf

Please sign in to comment.