[mirror] Go supplementary cryptography libraries
Перейти к файлу
Andreas Auernhammer cd11541cdf curve25519: improve cswap
Simplify the constant swap function.

On amd64: Replace the CMOVQEQ scheme with SSE2 code similar to the non-amd64 code.
On non-amd64: Avoid unnecessary loop iterations.

The result is less and slightly faster code.

name 			old time/op 	new time/op 	delta
ScalarBaseMult-4   	653µs ± 0%   	636µs ± 0%   	~     (p=0.100 n=3+3)

name 			old time/op 	new time/op 	delta
ConstantSwap-4  	10.4ns ± 1%   	6.2ns ± 0%  	-39.86%  (p=0.029 n=4+4)

On an i7-65000U

Change-Id: Ia5eea92e0b3eabb6c291d25229aa582b51278552
Reviewed-on: https://go-review.googlesource.com/39693
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-04-13 00:59:54 +00:00
acme acme/autocert: fix context usage 2017-04-12 07:03:28 +00:00
bcrypt
blake2b x/crypto/*: add import comment 2017-04-07 17:36:45 +00:00
blake2s x/crypto/*: add import comment 2017-04-07 17:36:45 +00:00
blowfish
bn256 bn256: fix equations in comments 2016-12-06 19:59:59 +00:00
cast5
chacha20poly1305 x/crypto/*: add import comment 2017-04-07 17:36:45 +00:00
cryptobyte x/crypto/*: add import comment 2017-04-07 17:36:45 +00:00
curve25519 curve25519: improve cswap 2017-04-13 00:59:54 +00:00
ed25519
hkdf
md4
nacl nacl/secretbox: add license header and package prefix 2016-08-31 13:18:26 +00:00
ocsp ocsp: fix test flakiness 2017-02-09 19:00:49 +00:00
openpgp all: fix some vet warnings 2017-01-04 23:09:04 +00:00
otr otr: add missing return on error path 2017-01-18 18:54:26 +00:00
pbkdf2
pkcs12 pkcs12: fix ToPEM to not ignore non-nil error from getSafeContents 2017-03-17 16:37:34 +00:00
poly1305 poly1305: add burn-in test. 2017-02-09 23:39:01 +00:00
ripemd160
salsa20 salsa20/salsa: eliminate unnecessary "callee save" prologue/epilogue 2016-10-21 19:51:17 +00:00
scrypt scrypt: fix broken example in documentation 2016-09-10 03:01:29 +00:00
sha3 sha3: fix SP adjustment 2016-10-21 19:51:19 +00:00
ssh ssh: support MaxAuthTries on ServerConfig 2017-04-10 10:56:18 +00:00
tea
twofish
xtea
xts
.gitattributes
.gitignore
AUTHORS
CONTRIBUTING.md
CONTRIBUTORS
LICENSE
PATENTS
README
codereview.cfg

README

This repository holds supplementary Go cryptography libraries.

To submit changes to this repository, see http://golang.org/doc/contribute.html.