core/crypto/aes: Slightly tweak GHASH to look less spooky

This commit is contained in:
Yawning Angel committed 2024-08-10 18:32:37 +09:00
1 parent b1d6e4139e
commit ac7f44b1b8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -240,8 +240,8 @@ ghash :: proc "contextless" (dst, key, data: []byte) #no_bounds_check {
}
// Process 1 block at a time
src: []byte
for l > 0 {
src: []byte = ---
if l >= _aes.GHASH_BLOCK_SIZE {
src = buf
buf = buf[_aes.GHASH_BLOCK_SIZE:]