wishlist: add support for larger message digests from SHA-2 family
Bug #544792 reported by
dkg
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python-Crypto |
Fix Released
|
Wishlist
|
Unassigned | ||
Bug Description
Currently, python-crypto appears to support SHA256 as its largest message digest. it would be good to be able to support other message digests from the SHA-2 family as well (sha-512, sha-384, and sha-224, in particular).
Changed in pycrypto: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.
I went ahead and implemented SHA-512.
I based it on the existing SHA256.c implementation which made it pretty easy.
The patch also includes some unit tests.
Caveat: It depends on the header stdint.h which is only required by C99 and furthermore it depends on stdint.h defining a uint64-t type. even in C99 this is only optional.
P.S.: I took the liberty to add myself to the ACKS file in this patch.