keccak doesn't need `init` (#693)

This commit is contained in:
Jacek Sieka 2024-06-07 22:30:32 +02:00 committed by GitHub
parent c02e050db8
commit b9b522f7ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -34,7 +34,6 @@ func keccakHash*(input: openArray[byte]): KeccakHash {.noinit.} =
# We use the init-update-finish interface to avoid
# the expensive burning/clearing memory (20~30% perf)
var ctx: keccak256
ctx.init()
ctx.update(input)
ctx.finish()