]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: add test for asn1.Marshal of rsa.PublicKey
authorRuss Cox <rsc@golang.org>
Wed, 6 Dec 2017 02:26:07 +0000 (21:26 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 6 Dec 2017 03:59:54 +0000 (03:59 +0000)
commitffd79b310736d768593b207946744e94d918749a
tree83786cc3cfb9b204a241dd3ac0c8dc0d6b1bfd5c
parentc3fa046f543526cf1fd15d9d2b995f57511837c1
crypto/x509: add test for asn1.Marshal of rsa.PublicKey

Go 1.10 is adding new API MarshalPKCS1PublicKey and
ParsePKCS1PublicKey for converting rsa.PublicKeys.

Even though we'd prefer that users did not, check that
if users call asn1.Marshal and asn1.Unmarshal directly instead,
they get the same results. We know that code exists in the
wild that depends on this.

Change-Id: Ia385d6954fda2eba7da228dc42f229b6839ef11e
Reviewed-on: https://go-review.googlesource.com/82080
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/x509_test.go