core/crypto/_sha3: Cleanups, prepare for cSHAKE

This commit is contained in:
Yawning Angel
2024-03-04 14:51:38 +09:00
parent 550e798c1b
commit 2db31cf0d5
4 changed files with 50 additions and 40 deletions
+1
View File
@@ -67,6 +67,7 @@ init_512 :: proc(ctx: ^Context) {
@(private)
_init :: proc(ctx: ^Context) {
ctx.dsbyte = _sha3.DS_SHA3
_sha3.init(transmute(^_sha3.Context)(ctx))
}