diff options
author | schwarze <> | 2023-09-07 19:59:58 +0000 |
---|---|---|
committer | schwarze <> | 2023-09-07 19:59:58 +0000 |
commit | fc95ca7f9719b8afd69f5aacc7137151e737a967 (patch) | |
tree | 0b8a47873188c0cbae43d27e5551aa8288e0bf78 /src/lib | |
parent | 68c581f233d97b2f90014e3d862e83361343b84d (diff) | |
download | openbsd-fc95ca7f9719b8afd69f5aacc7137151e737a967.tar.gz openbsd-fc95ca7f9719b8afd69f5aacc7137151e737a967.tar.bz2 openbsd-fc95ca7f9719b8afd69f5aacc7137151e737a967.zip |
Below RETURN VALUES,
* mention that EVP_MD_CTX_md(3) also returns NULL
if no message digest is configured yet; and
* omplete the list of functions returning const EVP_MD *,
also making the wording more precise.
Delete EVP_MAX_MD_SIZE from the NAME, SYNOPSIS, and HISTORY sections
because we do not usually document preprocessor macro constants in
this way. There is nothing special about this constant justifying
an exception.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/EVP_DigestInit.3 | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestInit.3 b/src/lib/libcrypto/man/EVP_DigestInit.3 index 562592b3c8..a5ce6f84f4 100644 --- a/src/lib/libcrypto/man/EVP_DigestInit.3 +++ b/src/lib/libcrypto/man/EVP_DigestInit.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: EVP_DigestInit.3,v 1.30 2023/09/07 14:22:11 schwarze Exp $ | 1 | .\" $OpenBSD: EVP_DigestInit.3,v 1.31 2023/09/07 19:59:58 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL 7f572e95 Dec 2 13:57:04 2015 +0000 | 2 | .\" full merge up to: OpenSSL 7f572e95 Dec 2 13:57:04 2015 +0000 |
3 | .\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 | 3 | .\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 |
4 | .\" | 4 | .\" |
@@ -89,7 +89,6 @@ | |||
89 | .Nm EVP_DigestInit , | 89 | .Nm EVP_DigestInit , |
90 | .Nm EVP_DigestFinal , | 90 | .Nm EVP_DigestFinal , |
91 | .Nm EVP_MD_CTX_copy , | 91 | .Nm EVP_MD_CTX_copy , |
92 | .Nm EVP_MAX_MD_SIZE , | ||
93 | .Nm EVP_MD_CTX_md , | 92 | .Nm EVP_MD_CTX_md , |
94 | .Nm EVP_md_null , | 93 | .Nm EVP_md_null , |
95 | .Nm EVP_sha224 , | 94 | .Nm EVP_sha224 , |
@@ -177,7 +176,6 @@ | |||
177 | .Fa "EVP_MD_CTX *out" | 176 | .Fa "EVP_MD_CTX *out" |
178 | .Fa "EVP_MD_CTX *in" | 177 | .Fa "EVP_MD_CTX *in" |
179 | .Fc | 178 | .Fc |
180 | .Fd #define EVP_MAX_MD_SIZE 64 /* SHA512 */ | ||
181 | .Ft const EVP_MD * | 179 | .Ft const EVP_MD * |
182 | .Fo EVP_MD_CTX_md | 180 | .Fo EVP_MD_CTX_md |
183 | .Fa "const EVP_MD_CTX *ctx" | 181 | .Fa "const EVP_MD_CTX *ctx" |
@@ -460,14 +458,19 @@ or | |||
460 | if | 458 | if |
461 | .Fa ctx | 459 | .Fa ctx |
462 | is | 460 | is |
463 | .Dv NULL . | 461 | .Dv NULL |
462 | or does not have any message digest algorithm assigned yet. | ||
464 | .Pp | 463 | .Pp |
465 | .Fn EVP_md_null | 464 | .Fn EVP_md_null , |
465 | .Fn EVP_sha224 , | ||
466 | .Fn EVP_sha256 , | ||
467 | .Fn EVP_sha384 , | ||
468 | .Fn EVP_sha512 , | ||
469 | .Fn EVP_sha512_224 , | ||
470 | .Fn EVP_sha512_256 , | ||
466 | and | 471 | and |
467 | .Fn EVP_ripemd160 | 472 | .Fn EVP_ripemd160 |
468 | return pointers to the corresponding | 473 | return pointers to constant static objects owned by the library. |
469 | .Vt EVP_MD | ||
470 | structures. | ||
471 | .Pp | 474 | .Pp |
472 | .Fn EVP_get_digestbyname , | 475 | .Fn EVP_get_digestbyname , |
473 | .Fn EVP_get_digestbynid , | 476 | .Fn EVP_get_digestbynid , |
@@ -551,9 +554,8 @@ main(int argc, char *argv[]) | |||
551 | .Sh HISTORY | 554 | .Sh HISTORY |
552 | .Fn EVP_DigestInit , | 555 | .Fn EVP_DigestInit , |
553 | .Fn EVP_DigestUpdate , | 556 | .Fn EVP_DigestUpdate , |
554 | .Fn EVP_DigestFinal , | ||
555 | and | 557 | and |
556 | .Dv EVP_MAX_MD_SIZE | 558 | .Fn EVP_DigestFinal |
557 | first appeared in SSLeay 0.5.1. | 559 | first appeared in SSLeay 0.5.1. |
558 | .Fn EVP_md_null | 560 | .Fn EVP_md_null |
559 | and | 561 | and |