[issue26834] Add truncated SHA512/224 and SHA512/256

Christian Heimes report at bugs.python.org
Thu Oct 21 09:11:03 EDT 2021


Christian Heimes <lists at cheimes.de> added the comment:

OpenSSL 1.1.1 comes with sha512_256 and sha512_224. I propose that we use the OpenSSL implementation and don't add the variants to our _sha512 module.

>>> hashlib.new("sha512_256").hexdigest()
'c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a'
>>> hashlib.new("sha512_224").hexdigest()
'6ed0dd02806fa89e25de060c19d3ac86cabb87d6a0ddd05c333b84f4'

----------
assignee:  -> docs at python
components: +Documentation
nosy: +docs at python
versions: +Python 3.11 -Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26834>
_______________________________________


More information about the Python-bugs-list mailing list