[Cryptography-dev] cshake code

Robert Moskowitz rgm at htt-consult.com
Fri Aug 30 06:45:53 EDT 2024


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.


More information about the Cryptography-dev mailing list