mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-14 01:42:22 -07:00
b71afdc3ee
This is largely modeled off the SM3 versions of these routines, since the relevant parts of the code are the same between SHA-256 and SM3, and the alterations required to support SHA-512 are relatively simple. The prior versions of update and the transform would leak memory, and doing things this way also reduces the context buffer sizes by 1 block.