New submission from Christian Heimes:

SHA512/224 and SHA512/256 are truncated versions of SHA512. Just like SHA384 
they use the same algorithm but different initial values and a smaller digest. 
I took the start vectors and test values from libtomcrypt.

Like in my blake2 branch I have add tp_new to the types and removed the old 
factory methods. Now it is possible to instantiate the types.

The code is also in my github fork 
https://github.com/tiran/cpython/tree/feature/sha512truncated

----------
components: Extension Modules
files: 
cpython-cheimes-0001-Add-truncate-SHA512-224-and-SHA512-256-hash-algorith.patch
keywords: patch
messages: 264068
nosy: christian.heimes, gregory.p.smith
priority: normal
severity: normal
stage: patch review
status: open
title: Add truncated SHA512/224 and SHA512/256
type: enhancement
versions: Python 3.6
Added file: 
http://bugs.python.org/file42578/cpython-cheimes-0001-Add-truncate-SHA512-224-and-SHA512-256-hash-algorith.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26834>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to