aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2023-11-17 01:13:27 +0900
committerYawning Angel <yawning@schwanenlied.me>2023-11-17 19:31:51 +0900
commitb71afdc3ee8648def5de5b8df72e8e25790217f6 (patch)
treeb10102b9d675ce6e75889ca6a96ca4e9677c617c /src/string.cpp
parentbc139ba6c6b00b4ce5e2947159f3e5ee7c57f19f (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