a637ee1970
This CL revives CL 174437(also IBM CLA) and adds benchmarks and some simplifications. The original commit message is as follows: Utilize KDSA when available. This guarantees constant time operation on all three curves mentioned, and is faster than conventional assembly. Benchmarks: name old time/op new time/op delta SignP256-8 15.2µs ±14% 14.1µs ±18% ~ (p=0.356 n=9+10) SignP384-8 4.28ms ±26% 0.02ms ±30% -99.43% (p=0.000 n=10+10) VerifyP256-8 33.6µs ±13% 13.3µs ±38% -60.32% (p=0.000 n=9+10) name old alloc/op new alloc/op delta SignP256-8 2.16kB ± 0% 1.60kB ± 0% -25.63% (p=0.000 n=9+10) SignP384-8 1.75MB ± 0% 0.00MB ± 0% -99.90% (p=0.000 n=9+10) VerifyP256-8 1.08kB ± 0% 0.18kB ± 0% -83.70% (p=0.000 n=9+10) name old allocs/op new allocs/op delta SignP256-8 29.0 ± 0% 22.0 ± 0% -24.14% (p=0.000 n=10+10) SignP384-8 14.4k ± 0% 0.0k ± 0% -99.85% (p=0.000 n=9+10) VerifyP256-8 23.0 ± 0% 7.0 ± 0% -69.57% (p=0.000 n=10+10) Change-Id: Ifa1fc5917fa7592dd592affa7549147dbc9b4169 Reviewed-on: https://go-review.googlesource.com/c/go/+/228580 Run-TryBot: Michael Munday <mike.munday@ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Munday <mike.munday@ibm.com> |
||
---|---|---|
.github | ||
api | ||
doc | ||
lib/time | ||
misc | ||
src | ||
test | ||
.gitattributes | ||
.gitignore | ||
AUTHORS | ||
CONTRIBUTING.md | ||
CONTRIBUTORS | ||
favicon.ico | ||
LICENSE | ||
PATENTS | ||
README.md | ||
robots.txt | ||
SECURITY.md |
The Go Programming Language
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Download and Install
Binary Distributions
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
Install From Source
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Contributing
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.