[Cryptography-dev] cshake code
Paul Kehrer
paul.l.kehrer at gmail.com
Fri Aug 30 08:35:10 EDT 2024
OpenSSL doesn’t have a cSHAKE API and this project hasn’t exposed OpenSSL’s keccak directly. We could do so, which would enable cSHAKE, but this is the first request we’ve seen. Feel free to file an issue requesting it!
-Paul
> On Aug 30, 2024, at 3:46 AM, Robert Moskowitz <rgm at htt-consult.com> wrote:
>
> Does cryptography.hazmat.primitives include cshake code?
>
> So far the only source I have found is:
>
> https://pycryptodome.readthedocs.io/en/v3.15.0/src/introduction.html
>
> from Cryptodome.Hash import cSHAKE128
> # print(type(h_orchid_left))
> # print(type(hi), hi)
>
> shake = cSHAKE128.new(custom = ContextID)
> shake.update((h_orchid_left + hi))
> h_hash = shake.read(8).hex()
>
> Would like to get all my crypto from one source.
>
> Of course, I got this a year ago, and cryptodome may have newer code.
> _______________________________________________
> Cryptography-dev mailing list
> Cryptography-dev at python.org
> https://mail.python.org/mailman/listinfo/cryptography-dev
More information about the Cryptography-dev
mailing list