New submission from Gilles Van Assche <gilles-pyt...@noekeon.org>:

Dear all,

I think it would be nice if hashlib would include the support of Keccak with a 
chosen suffix, as well as the fast instance KangarooTwelve (K12).

1) Currently, hashlib's interface for Keccak only supports the 6 instances of 
FIPS 202 (SHA3-* and SHAKE*). However, the instances in NIST SP 800-185 
(cSHAKE, KMAC, …) use a different suffix and therefore cannot be instantiated 
on top of the aforementioned 6 instances. Instead, simply adding the suffix as 
an argument to the constructor would enable a user to instantiate plain Keccak 
(as in Ethereum) or the SP 800-185 instances.

2) K12 is an alternative hash function (and XOF) in the Keccak family. It is 
fast, parallelizable and it benefits directly from the cryptanalysis on the 
(unchanged) underlying permutation since 2008. This would be IMHO a valuable 
addition to hashlib. Among others, implementations of K12 can be found in the 
XKCP on GitHub.

Kind regards,
Gilles (co-designer of Keccak and K12)

----------
components: Library (Lib)
messages: 361280
nosy: gvanas
priority: normal
severity: normal
status: open
title: Improve Keccak support in hashlib including KangarooTwelve
type: enhancement
versions: Python 3.9

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

Reply via email to