diff options
| author | Yawning Angel <yawning@schwanenlied.me> | 2023-11-17 01:13:27 +0900 |
|---|---|---|
| committer | Yawning Angel <yawning@schwanenlied.me> | 2023-11-17 19:31:51 +0900 |
| commit | b71afdc3ee8648def5de5b8df72e8e25790217f6 (patch) | |
| tree | b10102b9d675ce6e75889ca6a96ca4e9677c617c /src/string.cpp | |
| parent | bc139ba6c6b00b4ce5e2947159f3e5ee7c57f19f (diff) | |
core/crypto/sha2: Refactor update/final
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.
Diffstat (limited to 'src/string.cpp')
0 files changed, 0 insertions, 0 deletions