Skip to main content

Module sha512

Module sha512 

Source
Expand description

End-to-end hardware SHA-512.

Sha512Engine accepts an optional internal prefix and a byte stream, constructs FIPS 180-4 padding in hardware, and emits the eight-word digest. No host prehash is part of the public path.

Structs§

Sha512Engine
Streaming SHA-512 engine with local schedule and constant memories.
Sha512EngineIn
Start and byte-stream input for Sha512Engine.
Sha512EngineOut
Ready/done response, digest, and instrumentation from Sha512Engine.
Sha512RoundIn
Inputs to one pure SHA-512 compression round.
Sha512RoundOut
Updated working variables from one SHA-512 round.
ShaRegs
Registered SHA-512 chaining state, block assembly, and round temporaries.

Enums§

ResumeState
Destination state after completing the current compression block.
ShaState
Byte-loading, padding, compression, and completion states.

Functions§

sha512_engine_kernel
Next-state/output kernel for Sha512Engine.
sha512_round_kernel
Evaluate one FIPS 180-4 SHA-512 compression round.
sha512_schedule_kernel
Compute one expanded schedule word from the 16-word circular window.