1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:11:20 -06:00
go/src/crypto
Adam Langley a0ea93dea5 crypto/x509: permit serial numbers to be negative.
Some software that produces certificates doesn't encode integers
correctly and, about half the time, ends up producing certificates with
serial numbers that are actually negative.

This buggy software, sadly, appears to be common enough that we should
let these errors pass. This change allows a Certificate.SerialNumber to
be negative.

Fixes #8265.

Change-Id: Ief35dae23988fb6d5e2873e3c521366fb03c6af4
Reviewed-on: https://go-review.googlesource.com/17247
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-11-28 00:07:16 +00:00
..
aes crypto/tls, crypto/aes: remove allocations when Writing & Reading 2015-11-14 13:12:47 +00:00
cipher crypto/cipher: fix CTR infinite loop with large block sizes 2015-10-20 21:38:36 +00:00
des
dsa
ecdsa crypto/elliptic,crypto/ecdsa: P256 amd64 assembly 2015-11-10 22:16:56 +00:00
elliptic crypto/elliptic,crypto/ecdsa: P256 amd64 assembly 2015-11-10 22:16:56 +00:00
hmac all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
md5 crypto/md5: uniform Write func 2015-11-04 15:41:25 +00:00
rand crypt/rand: update docs for Linux 2015-07-26 02:57:16 +00:00
rc4 [dev.cc] cmd/asm: make 4(SP) illegal except on 386 2015-02-18 03:41:29 +00:00
rsa all: fix some vet-caught formatting errors, mostly but not only in tests 2015-08-21 05:37:36 +00:00
sha1 [dev.cc] crypto/md5, crypto/sha1: restore a few SP references 2015-02-20 18:54:29 +00:00
sha256
sha512 crypto: add SHA-512/224 and SHA-512/256 as described in FIPS 180-4 2015-07-14 19:45:21 +00:00
subtle
tls crypto/tls: Server can specify an unadvertised cipher suite 2015-11-26 17:22:57 +00:00
x509 crypto/x509: permit serial numbers to be negative. 2015-11-28 00:07:16 +00:00
crypto.go crypto: add SHA-512/224 and SHA-512/256 as described in FIPS 180-4 2015-07-14 19:45:21 +00:00