aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/ecdsa/ecdsa.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/ecdsa/ecdsa.go')
-rw-r--r--src/crypto/ecdsa/ecdsa.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/ecdsa/ecdsa.go b/src/crypto/ecdsa/ecdsa.go
index a3fa743e66..3fe1dda660 100644
--- a/src/crypto/ecdsa/ecdsa.go
+++ b/src/crypto/ecdsa/ecdsa.go
@@ -27,7 +27,7 @@ import (
"errors"
"io"
"math/big"
- "sync/atomic"
+ "unsafe"
)
// A invertible implements fast inverse mod Curve.Params().N
@@ -50,7 +50,7 @@ type PublicKey struct {
elliptic.Curve
X, Y *big.Int
- boring atomic.Value
+ boring unsafe.Pointer
}
// PrivateKey represents a ECDSA private key.
@@ -58,7 +58,7 @@ type PrivateKey struct {
PublicKey
D *big.Int
- boring atomic.Value
+ boring unsafe.Pointer
}
type ecdsaSignature struct {