]> Cypherpunks repositories - gostls13.git/commit
crypto/ecdsa: add SignASN1, VerifyASN1
authorKatie Hockman <katie@golang.org>
Wed, 5 Feb 2020 20:19:41 +0000 (15:19 -0500)
committerKatie Hockman <katie@golang.org>
Fri, 21 Feb 2020 19:38:55 +0000 (19:38 +0000)
commit8c09e8af3633b0c08d2c309e56a58124dfee3d7c
treedf79fd54c90b3df6cd3d9b04874a5c5f8d6290e4
parentf5ff00583fa6d4e9b4acb98b96757d98b1f55d28
crypto/ecdsa: add SignASN1, VerifyASN1

Update the Example in the crypto/ecdsa package for signing
and verifying signatures to use these new functions.

This also changes (*PrivateKey).Sign to use
x/crypto/cryptobyte/asn1 instead of encoding/asn1
to marshal the signature.

Fixes #20544

Change-Id: I3423cfc4d7f9e1748fbed5a631438c8a3b280df4
Reviewed-on: https://go-review.googlesource.com/c/go/+/217940
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/ecdsa/ecdsa.go
src/crypto/ecdsa/ecdsa_test.go
src/crypto/ecdsa/example_test.go
src/go/build/deps_test.go