]> Cypherpunks repositories - gostls13.git/commit
crypto/cipher: speed up gcmInc32.
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 12 Dec 2013 16:25:17 +0000 (11:25 -0500)
committerAdam Langley <agl@golang.org>
Thu, 12 Dec 2013 16:25:17 +0000 (11:25 -0500)
commitb2a198ce39569687e277f794f189299c530a0021
treedea2b1340ab312bda0a1b4200b53dc9790e8a695
parent5ad5b7a551b30d27d7af00e3e981014f4acd8bd4
crypto/cipher: speed up gcmInc32.

The counter is not secret, so the code does not need to be
constant time.

benchmark                    old MB/s     new MB/s  speedup
BenchmarkAESGCMSeal1K           89.90        92.84    1.03x
BenchmarkAESGCMOpen1K           89.16        92.30    1.04x

R=agl
CC=golang-dev
https://golang.org/cl/40690046
src/pkg/crypto/cipher/gcm.go