Skip to Content
oxcrypto

cSHAKE

Generate custom-domain digests with cSHAKE128 or cSHAKE256.

from oxcrypto.xof.cshake import CSHAKE

algorithm = CSHAKE.CSHAKE256
output = algorithm.digest(b"message", 32, customization=b"example protocol")

Both variants accept a byte-string customization. Pass function_name when a construction specifies the NIST function-name field.