mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-131418: remove unused legacy typedefs in {md5,sha1}module.c
(#131420)
- Remove legacy typedefs `MD5_INT32` and `MD5_INT64` in `Modules/md5module.c` - Remove legacy typedefs `SHA1_INT32` and `SHA1_INT64` in `Modules/sha1module.c`. Those legacy typedefs were used to detect whether the host platform could correctly implement MD5 and SHA-1, but this is no longer needed as we now fallback to HACL* implementations.
This commit is contained in:
parent
f3bf304c27
commit
a9a399f0ec
2 changed files with 0 additions and 18 deletions
|
@ -29,15 +29,6 @@ class MD5Type "MD5object *" "&PyType_Type"
|
|||
[clinic start generated code]*/
|
||||
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=6e5261719957a912]*/
|
||||
|
||||
/* Some useful types */
|
||||
|
||||
#if SIZEOF_INT == 4
|
||||
typedef unsigned int MD5_INT32; /* 32-bit integer */
|
||||
typedef long long MD5_INT64; /* 64-bit integer */
|
||||
#else
|
||||
/* not defined. compilation will die. */
|
||||
#endif
|
||||
|
||||
/* The MD5 block size and message digest sizes, in bytes */
|
||||
|
||||
#define MD5_BLOCKSIZE 64
|
||||
|
|
|
@ -30,15 +30,6 @@ class SHA1Type "SHA1object *" "&PyType_Type"
|
|||
[clinic start generated code]*/
|
||||
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=3dc9a20d1becb759]*/
|
||||
|
||||
/* Some useful types */
|
||||
|
||||
#if SIZEOF_INT == 4
|
||||
typedef unsigned int SHA1_INT32; /* 32-bit integer */
|
||||
typedef long long SHA1_INT64; /* 64-bit integer */
|
||||
#else
|
||||
/* not defined. compilation will die. */
|
||||
#endif
|
||||
|
||||
/* The SHA1 block size and message digest sizes, in bytes */
|
||||
|
||||
#define SHA1_BLOCKSIZE 64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue