diff options
Diffstat (limited to 'src/crypto/ecdsa/ecdsa.go')
-rw-r--r-- | src/crypto/ecdsa/ecdsa.go | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/crypto/ecdsa/ecdsa.go b/src/crypto/ecdsa/ecdsa.go index efc5dd50673..7ce7542872c 100644 --- a/src/crypto/ecdsa/ecdsa.go +++ b/src/crypto/ecdsa/ecdsa.go @@ -31,15 +31,12 @@ import ( "io" "math/big" + "crypto/internal/boring" + "golang.org/x/crypto/cryptobyte" "golang.org/x/crypto/cryptobyte/asn1" ) -import ( - "crypto/internal/boring" - "unsafe" -) - // A invertible implements fast inverse in GF(N). type invertible interface { // Inverse returns the inverse of k mod Params().N. @@ -60,8 +57,6 @@ const ( type PublicKey struct { elliptic.Curve X, Y *big.Int - - boring unsafe.Pointer } // Any methods implemented on PublicKey might need to also be implemented on @@ -89,8 +84,6 @@ func (pub *PublicKey) Equal(x crypto.PublicKey) bool { type PrivateKey struct { PublicKey D *big.Int - - boring unsafe.Pointer } // Public returns the public key corresponding to priv. |