diff options
author | schwarze <> | 2023-09-13 14:39:54 +0000 |
---|---|---|
committer | schwarze <> | 2023-09-13 14:39:54 +0000 |
commit | 962beed0cdc92dcfd4cdd6bd8f00b417aff02f2f (patch) | |
tree | 04d2ec8d66cbcee71fd158c8ddaae8aadecf9987 /src/lib | |
parent | e234d71eb8af3432d2e1dd3376729df59773a8c4 (diff) | |
download | openbsd-962beed0cdc92dcfd4cdd6bd8f00b417aff02f2f.tar.gz openbsd-962beed0cdc92dcfd4cdd6bd8f00b417aff02f2f.tar.bz2 openbsd-962beed0cdc92dcfd4cdd6bd8f00b417aff02f2f.zip |
Document the special meaning of NID_undef in this context.
From Matt Caswell <matt at openssl dot org>
via OpenSSL commit 1212818e (Sep 11, 2018)
from the OpenSSL 1.1 branch, which is still under a free license.
Wording slightly tweaked by me.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 b/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 index 11d0914bed..21292178a8 100644 --- a/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 +++ b/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 | |||
@@ -1,8 +1,9 @@ | |||
1 | .\" $OpenBSD: EVP_PKEY_get_default_digest_nid.3,v 1.5 2019/06/06 01:06:58 schwarze Exp $ | 1 | .\" $OpenBSD: EVP_PKEY_get_default_digest_nid.3,v 1.6 2023/09/13 14:39:54 schwarze Exp $ |
2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" full merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
5 | .\" Copyright (c) 2006, 2009, 2013 The OpenSSL Project. All rights reserved. | 5 | .\" Copyright (c) 2006, 2009, 2013, 2018 The OpenSSL Project. |
6 | .\" All rights reserved. | ||
6 | .\" | 7 | .\" |
7 | .\" Redistribution and use in source and binary forms, with or without | 8 | .\" Redistribution and use in source and binary forms, with or without |
8 | .\" modification, are permitted provided that the following conditions | 9 | .\" modification, are permitted provided that the following conditions |
@@ -48,7 +49,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 51 | .\" |
51 | .Dd $Mdocdate: June 6 2019 $ | 52 | .Dd $Mdocdate: September 13 2023 $ |
52 | .Dt EVP_PKEY_GET_DEFAULT_DIGEST_NID 3 | 53 | .Dt EVP_PKEY_GET_DEFAULT_DIGEST_NID 3 |
53 | .Os | 54 | .Os |
54 | .Sh NAME | 55 | .Sh NAME |
@@ -70,6 +71,14 @@ to the default message digest NID for the public key signature | |||
70 | operations associated with key | 71 | operations associated with key |
71 | .Fa pkey . | 72 | .Fa pkey . |
72 | .Pp | 73 | .Pp |
74 | Some signature algorithms, for example | ||
75 | .Dv EVP_PKEY_ED25519 , | ||
76 | do not use a digest during signing. | ||
77 | In this case, | ||
78 | .Pf * Fa pnid | ||
79 | is set to | ||
80 | .Dv NID_undef . | ||
81 | .Pp | ||
73 | For all current standard OpenSSL public key algorithms, SHA1 is returned. | 82 | For all current standard OpenSSL public key algorithms, SHA1 is returned. |
74 | .Sh RETURN VALUES | 83 | .Sh RETURN VALUES |
75 | The | 84 | The |