summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/X509_get0_signature.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/X509_get0_signature.3')
-rw-r--r--src/lib/libcrypto/man/X509_get0_signature.318
1 files changed, 13 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/X509_get0_signature.3 b/src/lib/libcrypto/man/X509_get0_signature.3
index dc3be2c70a..6cebb94e56 100644
--- a/src/lib/libcrypto/man/X509_get0_signature.3
+++ b/src/lib/libcrypto/man/X509_get0_signature.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_get0_signature.3,v 1.9 2024/08/28 07:18:55 tb Exp $ 1.\" $OpenBSD: X509_get0_signature.3,v 1.12 2025/07/06 09:32:08 tb Exp $
2.\" selective merge up to: 2.\" selective merge up to:
3.\" OpenSSL man3/X509_get0_signature 2f7a2520 Apr 25 17:28:08 2017 +0100 3.\" OpenSSL man3/X509_get0_signature 2f7a2520 Apr 25 17:28:08 2017 +0100
4.\" 4.\"
@@ -66,7 +66,7 @@
66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
67.\" OF THE POSSIBILITY OF SUCH DAMAGE. 67.\" OF THE POSSIBILITY OF SUCH DAMAGE.
68.\" 68.\"
69.Dd $Mdocdate: August 28 2024 $ 69.Dd $Mdocdate: July 6 2025 $
70.Dt X509_GET0_SIGNATURE 3 70.Dt X509_GET0_SIGNATURE 3
71.Os 71.Os
72.Sh NAME 72.Sh NAME
@@ -82,6 +82,7 @@
82.Nm X509_get_signature_info 82.Nm X509_get_signature_info
83.Nd signature information 83.Nd signature information
84.Sh SYNOPSIS 84.Sh SYNOPSIS
85.Lb libcrypto
85.In openssl/x509.h 86.In openssl/x509.h
86.Ft void 87.Ft void
87.Fo X509_get0_signature 88.Fo X509_get0_signature
@@ -212,11 +213,11 @@ For a supported EdDSA algorithm (in LibreSSL this is Ed25519)
212this flag is always set. 213this flag is always set.
213For an RSASSA-PSS PSS algorithm this flag is set if 214For an RSASSA-PSS PSS algorithm this flag is set if
214the parameters are DER encoded, 215the parameters are DER encoded,
215the digest algorithm is one of SHA256, SHA384, or SHA512, 216the digest algorithm is one of SHA-256, SHA-384, or SHA-512,
216the same digest algorithm is used in the mask generation function, 217the same digest algorithm is used in the mask generation function,
217and the salt length is equal to the digest algorithm's output length. 218and the salt length is equal to the digest algorithm's output length.
218For all other signature algorithms this flag is set if the digest 219For all other signature algorithms this flag is set if the digest
219algorithm is one of SHA1, SHA256, SHA384, or SHA512. 220algorithm is one of SHA-1, SHA-256, SHA-384, or SHA-512.
220.El 221.El
221.Pp 222.Pp
222.Fn X509_get_signature_info 223.Fn X509_get_signature_info
@@ -276,5 +277,12 @@ refer to the information available from the certificate signature
276(such as the signing digest). 277(such as the signing digest).
277In some cases the actual security of the signature is smaller 278In some cases the actual security of the signature is smaller
278because the signing key is less secure. 279because the signing key is less secure.
279For example in a certificate signed using SHA512 280For example in a certificate signed using SHA-512
280and a 1024-bit RSA key. 281and a 1024-bit RSA key.
282.Sh BUGS
283The signatures of
284.Fn X509_get0_signature ,
285.Fn X509_REQ_get0_signature ,
286and
287.Fn X509_CRL_get0_signature
288are inconsistent.