]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: write exact BitLength in ASN.1 encoding for certificate KeyUsage
authorAdam Langley <agl@golang.org>
Mon, 12 Jan 2015 21:58:30 +0000 (13:58 -0800)
committerAdam Langley <agl@golang.org>
Thu, 15 Jan 2015 01:58:54 +0000 (01:58 +0000)
commit2fe8eadc9aed6e6637312ef93c4939f6344a48a0
tree42ccef1be6438a94c71c1f7aab0acded7d3ef2c8
parentd1210acffd19482a0471f68d62baf10695fee8b9
crypto/x509: write exact BitLength in ASN.1 encoding for certificate KeyUsage

The encoded value of the certificate KeyUsage did contain additonal padding
that was not present with other certificate generators. According to ITU-T
X.690 the BitLength value should have no padding in a DER encoding.

See discussion:
https://groups.google.com/forum/#!topic/golang-nuts/dzaJ3hMpDcs

This CL has been discussed at: http://golang.org/cl/168990043

Change-Id: I1eff3f441b0566966a2d279631901ad9287c917d
Reviewed-on: https://go-review.googlesource.com/2255
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go