SHAKE
Generate a requested number of digest bytes with SHAKE.
from oxcrypto.xof.shake import SHAKE
algorithm = SHAKE.SHAKE256
digest = algorithm.digest(b"hello", length=32)
assert digest == algorithm.digest_chunks([b"he", b"llo"], length=32)SHAKE.SHAKE128 and SHAKE.SHAKE256 accept an output length in bytes.