This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanas
Recipients gvanas
Date 2020-02-03.10:25:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580725505.22.0.0334645206917.issue39539@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2020-02-03 10:25:05gvanassetrecipients: + gvanas
2020-02-03 10:25:05gvanassetmessageid: <1580725505.22.0.0334645206917.issue39539@roundup.psfhosted.org>
2020-02-03 10:25:05gvanaslinkissue39539 messages
2020-02-03 10:25:05gvanascreate