diff options
author | schwarze <> | 2023-09-13 14:57:21 +0000 |
---|---|---|
committer | schwarze <> | 2023-09-13 14:57:21 +0000 |
commit | 647158289863bfec53e7444708536f0e5c277cc5 (patch) | |
tree | 8b62ac99104b0feba1a38250010949a949c2dd6e /src/lib | |
parent | 962beed0cdc92dcfd4cdd6bd8f00b417aff02f2f (diff) | |
download | openbsd-647158289863bfec53e7444708536f0e5c277cc5.tar.gz openbsd-647158289863bfec53e7444708536f0e5c277cc5.tar.bz2 openbsd-647158289863bfec53e7444708536f0e5c277cc5.zip |
replace the outdated statement that everything uses SHA-1
by a table showing the supported algorithms
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 | 38 |
1 files changed, 33 insertions, 5 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 21292178a8..bef39987a3 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,7 +1,24 @@ | |||
1 | .\" $OpenBSD: EVP_PKEY_get_default_digest_nid.3,v 1.6 2023/09/13 14:39:54 schwarze Exp $ | 1 | .\" $OpenBSD: EVP_PKEY_get_default_digest_nid.3,v 1.7 2023/09/13 14:57:21 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100 | 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 is a derived work. |
5 | .\" The changes are covered by the following Copyright and license: | ||
6 | .\" | ||
7 | .\" Copyright (c) 2023 Ingo Schwarze <schwarze@openbsd.org> | ||
8 | .\" | ||
9 | .\" Permission to use, copy, modify, and distribute this software for any | ||
10 | .\" purpose with or without fee is hereby granted, provided that the above | ||
11 | .\" copyright notice and this permission notice appear in all copies. | ||
12 | .\" | ||
13 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
14 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
15 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
16 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
17 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
18 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
19 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
20 | .\" | ||
21 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org>. | ||
5 | .\" Copyright (c) 2006, 2009, 2013, 2018 The OpenSSL Project. | 22 | .\" Copyright (c) 2006, 2009, 2013, 2018 The OpenSSL Project. |
6 | .\" All rights reserved. | 23 | .\" All rights reserved. |
7 | .\" | 24 | .\" |
@@ -66,9 +83,9 @@ | |||
66 | The | 83 | The |
67 | .Fn EVP_PKEY_get_default_digest_nid | 84 | .Fn EVP_PKEY_get_default_digest_nid |
68 | function sets | 85 | function sets |
69 | .Fa pnid | 86 | .Pf * Fa pnid |
70 | to the default message digest NID for the public key signature | 87 | to the default message digest NID for the public key signature |
71 | operations associated with key | 88 | operations associated with |
72 | .Fa pkey . | 89 | .Fa pkey . |
73 | .Pp | 90 | .Pp |
74 | Some signature algorithms, for example | 91 | Some signature algorithms, for example |
@@ -79,7 +96,18 @@ In this case, | |||
79 | is set to | 96 | is set to |
80 | .Dv NID_undef . | 97 | .Dv NID_undef . |
81 | .Pp | 98 | .Pp |
82 | For all current standard OpenSSL public key algorithms, SHA1 is returned. | 99 | Support for the following public key algorithms is built into the library: |
100 | .Pp | ||
101 | .Bl -column -compact EVP_PKEY_base_id(3) NID_id_Gost28147_89_MAC mandatory | ||
102 | .It Xr EVP_PKEY_base_id 3 Ta Pf * Fa pnid Ta return value | ||
103 | .It Dv EVP_PKEY_DSA Ta Dv NID_sha1 Ta mandatory | ||
104 | .It Dv EVP_PKEY_EC Ta Dv NID_sha1 Ta mandatory | ||
105 | .It Dv EVP_PKEY_ED25519 Ta Dv NID_undef Ta mandatory | ||
106 | .It Dv EVP_PKEY_GOSTIMIT Ta Dv NID_id_Gost28147_89_MAC Ta mandatory | ||
107 | .It Dv EVP_PKEY_GOSTR01 Ta variable Ta mandatory | ||
108 | .It Dv EVP_PKEY_HMAC Ta Dv NID_sha1 Ta advisory | ||
109 | .It Dv EVP_PKEY_RSA Ta Dv NID_sha256 Ta advisory | ||
110 | .El | ||
83 | .Sh RETURN VALUES | 111 | .Sh RETURN VALUES |
84 | The | 112 | The |
85 | .Fn EVP_PKEY_get_default_digest_nid | 113 | .Fn EVP_PKEY_get_default_digest_nid |