Descriptioncrypto/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
Patch Set 1 #Patch Set 2 : diff -r d45af824172f https://code.google.com/p/go #Patch Set 3 : diff -r d45af824172f https://code.google.com/p/go #MessagesTotal messages: 2
|