]> Cypherpunks repositories - gostls13.git/commit
crypto/elliptic: drop hidden Inverse and CombinedMult methods
authorFilippo Valsorda <filippo@golang.org>
Fri, 3 Jan 2025 19:46:29 +0000 (20:46 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 4 Mar 2025 20:43:35 +0000 (12:43 -0800)
commit0cfc641420662795aa60568d622511ce4dda6179
tree1cd94c862d477a3de8e4fa9f393d81d8572e0e66
parent52eaed66335e90ceb6ad65873889ccca46851ee9
crypto/elliptic: drop hidden Inverse and CombinedMult methods

These methods were previously used by crypto/ecdsa, but now not even
ecdsa_legacy.go uses them. Neither were ever documented.

Inverse was available only on P256() and only on amd64 and arm64, so
hopefully no one used it. CombinedMult was always available on all
curves, so it's possible some application might have used it, but all
the samples on GitHub I can find copied the old crypto/ecdsa package,
which does a conditional interface upgrade with a fallback, so they
won't break.

Change-Id: I6a6a4656ee1ab98438ca0fb20bea53b229cd7e71
Reviewed-on: https://go-review.googlesource.com/c/go/+/640116
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
doc/next/6-stdlib/99-minor/crypto/elliptic/hidden.md [new file with mode: 0644]
src/crypto/elliptic/nistec.go
src/crypto/elliptic/nistec_p256.go [deleted file]
src/crypto/elliptic/p256_test.go