]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: clarify that CheckSignatureFrom and CheckSignature are low-level APIs
authorFilippo Valsorda <filippo@golang.org>
Wed, 4 Jan 2023 20:51:50 +0000 (21:51 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 17 Jan 2023 16:22:02 +0000 (16:22 +0000)
commitf375b305c801515b587719490b4be0db1a66e20c
tree1dfe619c71217f91976fcbfbdbc3c1da7d01b661
parent8409251e105486e25d9ae47568ae221eeec636c9
crypto/x509: clarify that CheckSignatureFrom and CheckSignature are low-level APIs

In particular, CheckSignatureFrom just can't check the path length
limit, because it might be enforced above the parent.

We don't need to document the supported signature algorithms for
CheckSignatureFrom, since we document at the constants in what contexts
they are allowed and not. That does leave CheckSignature ambiguous,
though, because that function doesn't have an explicit context.

Change-Id: I4c107440a93f60bc0de07df2b7efeb1a4a766da0
Reviewed-on: https://go-review.googlesource.com/c/go/+/460537
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/crypto/x509/x509.go