Skip to main content

Module sha3

Module sha3 

Source
Expand description

SHA-3 and SHAKE implementations (FIPS 202).

Wraps the Keccak-f[1600] sponge construction to provide:

  • SHA3-256, SHA3-384, SHA3-512 (fixed-output, implementing Hasher)
  • SHAKE128, SHAKE256 (extendable-output, implementing Xof)

Structsยง

CShake128
cSHAKE128: customizable SHAKE with 128-bit security (NIST SP 800-185).
CShake256
cSHAKE256: customizable SHAKE with 256-bit security (NIST SP 800-185).
Sha3_224
SHA3-224: rate = 1152 bits (144 bytes), capacity = 448 bits, output = 28 bytes.
Sha3_256
SHA3-256: rate = 1088 bits (136 bytes), capacity = 512 bits, output = 32 bytes.
Sha3_384
SHA3-384: rate = 832 bits (104 bytes), capacity = 768 bits, output = 48 bytes.
Sha3_512
SHA3-512: rate = 576 bits (72 bytes), capacity = 1024 bits, output = 64 bytes.
Shake128
SHAKE128: rate = 1344 bits (168 bytes), capacity = 256 bits, extendable output.
Shake256
SHAKE256: rate = 1088 bits (136 bytes), capacity = 512 bits, extendable output.