1
0
mirror of https://github.com/golang/go synced 2024-11-12 13:00:57 -07:00
go/src/crypto
Marvin Stenger f22ba1f247 all: prefer strings.IndexByte over strings.Index
strings.IndexByte was introduced in go1.2 and it can be used
effectively wherever the second argument to strings.Index is
exactly one byte long.

This avoids generating unnecessary string symbols and saves
a few calls to strings.Index.

Change-Id: I1ab5edb7c4ee9058084cfa57cbcc267c2597e793
Reviewed-on: https://go-review.googlesource.com/65930
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-09-25 17:35:41 +00:00
..
aes crypto/aes: make the GHASH part of AES-GCM faster 2017-08-18 21:40:57 +00:00
cipher crypto/cipher: panic when IV length does not equal block size in NewOFB 2017-09-06 14:53:44 +00:00
des crypto: revise wording about cryptographically broken algorithms 2017-05-04 12:31:18 +00:00
dsa all: fix article typos 2017-09-15 02:39:16 +00:00
ecdsa all: fix article typos 2017-09-15 02:39:16 +00:00
elliptic crypto/elliptic: gofmt 2017-09-22 11:43:45 +00:00
hmac
internal/cipherhw
md5 crypto: revise wording about cryptographically broken algorithms 2017-05-04 12:31:18 +00:00
rand crypto/rand: batch large calls to linux getrandom 2017-08-09 19:29:14 +00:00
rc4 crypto/{aes,cipher,rc4}: fix out of bounds write in stream ciphers 2017-08-09 04:17:51 +00:00
rsa crypto/rsa: fix URL for the PKCS #1 v2.2 document in pss.go 2017-08-28 05:26:59 +00:00
sha1 crypto: simplify amd64 asm for sha{1,256,512} a bit 2017-09-12 18:06:37 +00:00
sha256 crypto: simplify amd64 asm for sha{1,256,512} a bit 2017-09-12 18:06:37 +00:00
sha512 crypto: simplify amd64 asm for sha{1,256,512} a bit 2017-09-12 18:06:37 +00:00
subtle
tls all: fix article typos 2017-09-15 02:39:16 +00:00
x509 all: prefer strings.IndexByte over strings.Index 2017-09-25 17:35:41 +00:00
crypto.go crypto: add BLAKE2b and BLAKE2s hash constants 2017-03-01 19:26:16 +00:00
issue21104_test.go crypto/{aes,cipher,rc4}: fix out of bounds write in stream ciphers 2017-08-09 04:17:51 +00:00