From 0ec7e8322c090be3a94a90823b9ae085541f5f1e Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Wed, 16 Nov 2022 09:44:18 +0100 Subject: [PATCH] internal/wycheproof: update Go 1.20 crypto/ecdh API For golang/go#56052 Change-Id: If34d01132e221ff525319e43d127ef14579f9054 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/451095 Reviewed-by: Bryan Mills Reviewed-by: Joedian Reid Auto-Submit: Filippo Valsorda Run-TryBot: Filippo Valsorda Run-TryBot: Joedian Reid TryBot-Result: Gopher Robot --- internal/wycheproof/ecdh_stdlib_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/wycheproof/ecdh_stdlib_test.go b/internal/wycheproof/ecdh_stdlib_test.go index 44315fcd09..f7abd6b2e8 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,