]> Cypherpunks repositories - gostls13.git/commit
crypto/sha1: Make sha-1 do block mixup in place
authorCarl Mastrangelo <notcarl@google.com>
Wed, 7 Nov 2012 02:41:02 +0000 (13:41 +1100)
committerDave Cheney <dave@cheney.net>
Wed, 7 Nov 2012 02:41:02 +0000 (13:41 +1100)
commitf8892fb39522b3d075d134036df5d2859b3c095d
treeed694c7768c115979223ab7f7979d8f9db8f2d0b
parent451b91b4d1e37996129368f8de4b7b5335ac8a5f
crypto/sha1: Make sha-1 do block mixup in place

Benchmarks:

benchmark              old ns/op    new ns/op    delta
BenchmarkHash8Bytes          762          674  -11.55%
BenchmarkHash1K             8791         7375  -16.11%
BenchmarkHash8K            65094        54881  -15.69%

benchmark               old MB/s     new MB/s  speedup
BenchmarkHash8Bytes        10.50        11.86    1.13x
BenchmarkHash1K           116.48       138.84    1.19x
BenchmarkHash8K           125.85       149.27    1.19x

R=dave, rsc, iant
CC=golang-dev
https://golang.org/cl/6820096
src/pkg/crypto/sha1/sha1block.go