]> Cypherpunks repositories - gostls13.git/commit
runtime: aeshash, xor seed in earlier
authorKeith Randall <khr@golang.org>
Thu, 26 May 2016 15:56:49 +0000 (08:56 -0700)
committerKeith Randall <khr@golang.org>
Sat, 11 Jun 2016 00:35:47 +0000 (00:35 +0000)
commitc83e6f50d983d81166d21736ff9ab0ad2182f0fa
treee01a4665ebf3bda86355dd71477fc8377e8e55b3
parentcea29c4a358004d84d8711a07628c2f856b381e8
runtime: aeshash, xor seed in earlier

Instead of doing:

x = input
one round of aes on x
x ^= seed
two rounds of aes on x

Do:

x = input
x ^= seed
three rounds of aes on x

This change provides some additional seed-dependent scrambling
which should help prevent collisions.

Change-Id: I02c774d09c2eb6917cf861513816a1024a9b65d7
Reviewed-on: https://go-review.googlesource.com/23577
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/asm_amd64.s
src/runtime/hash_test.go