Skip to content

Commit

Permalink
internal/wycheproof: update Go 1.20 crypto/ecdh API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
LewiGoddard authored and gopherbot committed Nov 16, 2022

Verified

This commit was signed with the committer’s verified signature.
itegulov Daniyar Itegulov
1 parent 04941ea commit 566f8df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/wycheproof/ecdh_stdlib_test.go
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 566f8df

Please sign in to comment.