Skip to main content

Module sha512_trunc

Module sha512_trunc 

Source
Expand description

SHA-512/224 and SHA-512/256 hash functions (FIPS 180-4).

Truncated variants of SHA-512 with distinct IV values generated per FIPS 180-4 §5.3.6. These use the SHA-512 compression function (128-byte blocks, 64-bit words) but produce shorter outputs, which can matter for constrained protocols.

Structs§

Sha512_224
SHA-512/224 hasher (FIPS 180-4). 224-bit output, 128-byte blocks.
Sha512_256
SHA-512/256 hasher (FIPS 180-4). 256-bit output, 128-byte blocks.