aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorRoland Shoemaker <roland@golang.org>2025-03-03 12:31:55 -0800
committerGopher Robot <gobot@golang.org>2025-05-08 07:46:12 -0700
commit509c11f3a39aeb627cc16dc9ffcad45fc457c5ec (patch)
tree15d0f78ce808866f2d72c06b4054140579c6d710 /api
parentd000963d045bb279d347dbd3551e9468422c17af (diff)
downloadgo-509c11f3a39aeb627cc16dc9ffcad45fc457c5ec.tar.xz
crypto,crypto/x509: implement MessageSigner
And use it in crypto/x509. This allows people to implement single-shot signers which do the hashing themselves. Fixes #63405 Change-Id: I038c2e10f77b050b6136c4c0a5b031cb416f59aa Reviewed-on: https://go-review.googlesource.com/c/go/+/654375 Reviewed-by: Filippo Valsorda <filippo@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Roland Shoemaker <roland@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'api')
-rw-r--r--api/next/63405.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/next/63405.txt b/api/next/63405.txt
new file mode 100644
index 0000000000..5892ef4adc
--- /dev/null
+++ b/api/next/63405.txt
@@ -0,0 +1,5 @@
+pkg crypto, func SignMessage(Signer, io.Reader, []uint8, SignerOpts) ([]uint8, error) #63405
+pkg crypto, type MessageSigner interface { Public, Sign, SignMessage } #63405
+pkg crypto, type MessageSigner interface, Public() PublicKey #63405
+pkg crypto, type MessageSigner interface, Sign(io.Reader, []uint8, SignerOpts) ([]uint8, error) #63405
+pkg crypto, type MessageSigner interface, SignMessage(io.Reader, []uint8, SignerOpts) ([]uint8, error) #63405