commit | c7dcf104e3a7a1417abc0230cb0d5240d764159d | [log] [tgz] |
---|---|---|
author | Ilya Tocar <ilya.tocar@intel.com> | Thu Mar 01 11:15:02 2018 -0600 |
committer | Ilya Tocar <ilya.tocar@intel.com> | Thu Mar 08 18:56:24 2018 +0000 |
tree | aefec40f01cf5dc42fab0dd20fbc309fd9671b72 | |
parent | 7effd64e1180aa386cd36da9ca55a1e9fc7cf7cb [diff] |
ripemd160: use bits.Rotate for rotates Replace x << k | x >> (32 - k) with bits.RotateLeft32 and add benchmark to check performance. This makes code cleaner and improves performance: MillionA-6 34.8ms ± 1% 26.7ms ± 1% -23.41% (p=0.000 n=10+10) Change-Id: I1b0c45f5ea12c7b53ab1ec5a26efc1903555fa66 Reviewed-on: https://go-review.googlesource.com/97915 Run-TryBot: Ilya Tocar <ilya.tocar@intel.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This repository holds supplementary Go cryptography libraries.
The easiest way to install is to run go get -u golang.org/x/crypto/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/crypto
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the crypto repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.
Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.