aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/crypto
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2013-08-05 15:46:06 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2013-08-05 15:46:06 -0700
commit4c772cda54896b0213b5eaffed81031e259f26d4 (patch)
tree7f35df71fac8407b6236439ddfd060a5db80312f /src/pkg/crypto
parentdd6f49ddca0f54767d5cc26b5627f025f63cbcc3 (diff)
downloadgo-4c772cda54896b0213b5eaffed81031e259f26d4.tar.xz
all: use strings.IndexByte instead of Index where possible
R=golang-dev, khr CC=golang-dev https://golang.org/cl/12486043
Diffstat (limited to 'src/pkg/crypto')
-rw-r--r--src/pkg/crypto/x509/pem_decrypt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/crypto/x509/pem_decrypt.go b/src/pkg/crypto/x509/pem_decrypt.go
index 194c81bf68..fda03b233d 100644
--- a/src/pkg/crypto/x509/pem_decrypt.go
+++ b/src/pkg/crypto/x509/pem_decrypt.go
@@ -115,7 +115,7 @@ func DecryptPEMBlock(b *pem.Block, password []byte) ([]byte, error) {
return nil, errors.New("x509: no DEK-Info header in block")
}
- idx := strings.Index(dek, ",")
+ idx := strings.IndexByte(dek, ',')
if idx == -1 {
return nil, errors.New("x509: malformed DEK-Info header")
}