go/src/crypto
Alan Donovan 9d35ebba06 std: fix various nilness findings
Found by running
$ go run golang.org/x/tools/go/analysis/passes/nilness/cmd/nilness@latest std

No actual bugs--other than one panic(nil)--but a
few places where error nilness was unclear.

Change-Id: Ia916ba30f46f29c1bcf928cc62280169b922463a
Reviewed-on: https://go-review.googlesource.com/c/go/+/486675
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Alan Donovan <adonovan@google.com>
2023-04-20 01:07:29 +00:00
..
aes all: replace leading spaces with tabs in assembly 2023-03-23 20:52:57 +00:00
boring crypto/internal/boring: update to newer boringcrypto, add arm64 2022-08-18 21:28:09 +00:00
cipher crypto: use bytes.Clone 2022-09-28 03:55:33 +00:00
des crypto/des: fix a typo in the comment for permuteFinalBlock 2022-12-01 21:00:43 +00:00
dsa
ecdh crypto/ecdh: explicitly reject mismatched curves in ECDH 2023-02-06 21:22:50 +00:00
ecdsa crypto/ecdsa: verify validity of signature parameters in Verify 2022-12-01 17:28:18 +00:00
ed25519 crypto/ed25519: improve Ed25519ctx error for oversized contexts 2023-03-06 23:46:08 +00:00
elliptic all: add a few links in package godocs 2023-03-25 10:16:23 +00:00
hmac all: fix some problematic comments 2023-03-13 16:49:45 +00:00
internal std: fix various nilness findings 2023-04-20 01:07:29 +00:00
md5 all: move //go: function directives directly above functions 2023-03-02 22:56:35 +00:00
rand crypto: add wasip1 support 2023-04-11 20:54:07 +00:00
rc4
rsa crypto/rsa: deprecate multiprime RSA support 2023-03-16 16:31:24 +00:00
sha1 all: replace leading spaces with tabs in assembly 2023-03-23 20:52:57 +00:00
sha256 crypto/sha256: add sha-ni implementation 2023-03-31 15:55:23 +00:00
sha512 all: move //go: function directives directly above functions 2023-03-02 22:56:35 +00:00
subtle crypto/subtle: don't cast to *uintptr when word size is 0 2023-03-31 23:25:07 +00:00
tls crypto/tls: retry DialWithTimeout until the listener accepts a connection 2023-04-19 21:40:36 +00:00
x509 crypto: add wasip1 support 2023-04-11 20:54:07 +00:00
crypto.go
issue21104_test.go