aboutsummaryrefslogtreecommitdiff
path: root/internal/wycheproof
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo@golang.org>2022-11-16 09:44:18 +0100
committerGopher Robot <gobot@golang.org>2022-11-16 16:25:40 +0000
commit0ec7e8322c090be3a94a90823b9ae085541f5f1e (patch)
treefa4a4122fdcab4f57d152899919fd1f37bd1a616 /internal/wycheproof
parent6fad3dfc18918c2ac9c112e46b32473bd2e5e2f9 (diff)
downloadgo-x-crypto-0.3.0.tar.xz
internal/wycheproof: update Go 1.20 crypto/ecdh APIv0.3.0
For golang/go#56052 Change-Id: If34d01132e221ff525319e43d127ef14579f9054 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/451095 Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Joedian Reid <joedian@golang.org> Auto-Submit: Filippo Valsorda <filippo@golang.org> Run-TryBot: Filippo Valsorda <filippo@golang.org> Run-TryBot: Joedian Reid <joedian@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'internal/wycheproof')
-rw-r--r--internal/wycheproof/ecdh_stdlib_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/wycheproof/ecdh_stdlib_test.go b/internal/wycheproof/ecdh_stdlib_test.go
index 44315fc..f7abd6b 100644
--- a/internal/wycheproof/ecdh_stdlib_test.go
+++ b/internal/wycheproof/ecdh_stdlib_test.go
@@ -118,7 +118,7 @@ func TestECDHStdLib(t *testing.T) {
}
shared := decodeHex(tt.Shared)
- x, err := curve.ECDH(priv, pub)
+ x, err := priv.ECDH(pub)
if err != nil {
if tg.Curve == "curve25519" && !shouldPass {
// ECDH is expected to only return an error when using X25519,