all: clean up minor issues found by staticcheck Use bytes.Equal instead of comparing bytes.Compare results to zero, avoid Yoda conditions, drop a redundant zero slice capacity, use strings.ReplaceAll, build acme error strings with a strings.Builder, and lowercase an error string in ocsp. No behavior changes. Change-Id: I5d2b3fa5c241adc75e61be0f2d2d7af1eb9e8d66 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/803200 Reviewed-by: Roland Shoemaker <roland@golang.org> Auto-Submit: Roland Shoemaker <roland@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
This repository holds supplementary Go cryptography packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/crypto.
The main issue tracker for the crypto repository is located at https://go.dev/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.