Skip to main content

Module sha2

Module sha2 

Source
Expand description

SHA-2 digest minting (FIPS 180-4), and the home of the sha2-variant enum every SHA-2-parameterized interface shares (hmac-sha2 uses it too).

Digests returned here drive digest.digest.compute.

Enums§

Sha2Variant
The SHA-2 variants: FIPS 180-4 closes this set, so it is an enum. (Each algorithm interface names its closed set of parameterizations <algorithm>-variant.)

Functions§

make_digest
A digest bound to the declared SHA-2 variant. Fails with error.unsupported if this implementation does not serve the variant.

Type Aliases§

Digest
Error