diff options
author | schwarze <> | 2019-08-14 14:05:32 +0000 |
---|---|---|
committer | schwarze <> | 2019-08-14 14:05:32 +0000 |
commit | 1dd51f2552f92c979f6ec583b3e7c4868fa2b9f7 (patch) | |
tree | 6e309ea96eff6e5db8f90ce9f1e11a7948075058 /src | |
parent | b84b9ff13dbb36521ab47cfe589e485d1ecd94d3 (diff) | |
download | openbsd-1dd51f2552f92c979f6ec583b3e7c4868fa2b9f7.tar.gz openbsd-1dd51f2552f92c979f6ec583b3e7c4868fa2b9f7.tar.bz2 openbsd-1dd51f2552f92c979f6ec583b3e7c4868fa2b9f7.zip |
document EVP_Digest(3)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/EVP_DigestInit.3 | 60 |
1 files changed, 57 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestInit.3 b/src/lib/libcrypto/man/EVP_DigestInit.3 index 8f4207389b..496b07632d 100644 --- a/src/lib/libcrypto/man/EVP_DigestInit.3 +++ b/src/lib/libcrypto/man/EVP_DigestInit.3 | |||
@@ -1,8 +1,25 @@ | |||
1 | .\" $OpenBSD: EVP_DigestInit.3,v 1.16 2019/06/06 01:06:58 schwarze Exp $ | 1 | .\" $OpenBSD: EVP_DigestInit.3,v 1.17 2019/08/14 14:05:32 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 a95d7574 Jul 2 12:16:38 2017 -0400 | 3 | .\" selective merge up to: OpenSSL a95d7574 Jul 2 12:16:38 2017 -0400 |
4 | .\" | 4 | .\" |
5 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org> | 5 | .\" This file is a derived work. |
6 | .\" The changes are covered by the following Copyright and license: | ||
7 | .\" | ||
8 | .\" Copyright (c) 2019 Ingo Schwarze <schwarze@openbsd.org> | ||
9 | .\" | ||
10 | .\" Permission to use, copy, modify, and distribute this software for any | ||
11 | .\" purpose with or without fee is hereby granted, provided that the above | ||
12 | .\" copyright notice and this permission notice appear in all copies. | ||
13 | .\" | ||
14 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
15 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
16 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
17 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
18 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
19 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
20 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
21 | .\" | ||
22 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org> | ||
6 | .\" and Richard Levitte <levitte@openssl.org>. | 23 | .\" and Richard Levitte <levitte@openssl.org>. |
7 | .\" Copyright (c) 2000-2004, 2009, 2012-2016 The OpenSSL Project. | 24 | .\" Copyright (c) 2000-2004, 2009, 2012-2016 The OpenSSL Project. |
8 | .\" All rights reserved. | 25 | .\" All rights reserved. |
@@ -51,7 +68,7 @@ | |||
51 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 68 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
52 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 69 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
53 | .\" | 70 | .\" |
54 | .Dd $Mdocdate: June 6 2019 $ | 71 | .Dd $Mdocdate: August 14 2019 $ |
55 | .Dt EVP_DIGESTINIT 3 | 72 | .Dt EVP_DIGESTINIT 3 |
56 | .Os | 73 | .Os |
57 | .Sh NAME | 74 | .Sh NAME |
@@ -66,6 +83,7 @@ | |||
66 | .Nm EVP_DigestInit_ex , | 83 | .Nm EVP_DigestInit_ex , |
67 | .Nm EVP_DigestUpdate , | 84 | .Nm EVP_DigestUpdate , |
68 | .Nm EVP_DigestFinal_ex , | 85 | .Nm EVP_DigestFinal_ex , |
86 | .Nm EVP_Digest , | ||
69 | .Nm EVP_MD_CTX_copy_ex , | 87 | .Nm EVP_MD_CTX_copy_ex , |
70 | .Nm EVP_DigestInit , | 88 | .Nm EVP_DigestInit , |
71 | .Nm EVP_DigestFinal , | 89 | .Nm EVP_DigestFinal , |
@@ -146,6 +164,15 @@ | |||
146 | .Fa "unsigned int *s" | 164 | .Fa "unsigned int *s" |
147 | .Fc | 165 | .Fc |
148 | .Ft int | 166 | .Ft int |
167 | .Fo EVP_Digest | ||
168 | .Fa "const void *d" | ||
169 | .Fa "size_t cnt" | ||
170 | .Fa "unsigned char *md" | ||
171 | .Fa "unsigned int *s" | ||
172 | .Fa "const EVP_MD *type" | ||
173 | .Fa "ENGINE *impl" | ||
174 | .Fc | ||
175 | .Ft int | ||
149 | .Fo EVP_MD_CTX_copy_ex | 176 | .Fo EVP_MD_CTX_copy_ex |
150 | .Fa "EVP_MD_CTX *out" | 177 | .Fa "EVP_MD_CTX *out" |
151 | .Fa "const EVP_MD_CTX *in" | 178 | .Fa "const EVP_MD_CTX *in" |
@@ -335,6 +362,31 @@ can be made, but | |||
335 | .Fn EVP_DigestInit_ex | 362 | .Fn EVP_DigestInit_ex |
336 | can be called to initialize a new digest operation. | 363 | can be called to initialize a new digest operation. |
337 | .Pp | 364 | .Pp |
365 | .Fn EVP_Digest | ||
366 | is a simple wrapper function to hash | ||
367 | .Fa cnt | ||
368 | bytes of data at | ||
369 | .Fa d | ||
370 | using the digest | ||
371 | .Fa type | ||
372 | from | ||
373 | .Vt ENGINE | ||
374 | .Fa impl | ||
375 | in a one-shot operation and place the digest value into | ||
376 | .Fa md , | ||
377 | and, unless | ||
378 | .Fa s | ||
379 | is | ||
380 | .Dv NULL , | ||
381 | the length of the digest in bytes into | ||
382 | .Pf * Fa s . | ||
383 | This wrapper uses a temporary digest context and passes its arguments to | ||
384 | .Fn EVP_DigestInit_ex , | ||
385 | .Fn EVP_DigestUpdate , | ||
386 | and | ||
387 | .Fn EVP_DigestFinal_ex | ||
388 | internally. | ||
389 | .Pp | ||
338 | .Fn EVP_MD_CTX_copy_ex | 390 | .Fn EVP_MD_CTX_copy_ex |
339 | can be used to copy the message digest state from | 391 | can be used to copy the message digest state from |
340 | .Fa in | 392 | .Fa in |
@@ -516,6 +568,7 @@ always return 1. | |||
516 | .Fn EVP_DigestInit_ex , | 568 | .Fn EVP_DigestInit_ex , |
517 | .Fn EVP_DigestUpdate , | 569 | .Fn EVP_DigestUpdate , |
518 | .Fn EVP_DigestFinal_ex , | 570 | .Fn EVP_DigestFinal_ex , |
571 | .Fn EVP_Digest , | ||
519 | .Fn EVP_MD_CTX_copy_ex , | 572 | .Fn EVP_MD_CTX_copy_ex , |
520 | .Fn EVP_DigestInit , | 573 | .Fn EVP_DigestInit , |
521 | .Fn EVP_DigestFinal , | 574 | .Fn EVP_DigestFinal , |
@@ -686,6 +739,7 @@ first appeared in OpenSSL 0.9.5 and has been available since | |||
686 | .Fn EVP_MD_CTX_destroy , | 739 | .Fn EVP_MD_CTX_destroy , |
687 | .Fn EVP_DigestInit_ex , | 740 | .Fn EVP_DigestInit_ex , |
688 | .Fn EVP_DigestFinal_ex , | 741 | .Fn EVP_DigestFinal_ex , |
742 | .Fn EVP_Digest , | ||
689 | and | 743 | and |
690 | .Fn EVP_MD_CTX_copy_ex | 744 | .Fn EVP_MD_CTX_copy_ex |
691 | first appeared in OpenSSL 0.9.7 and have been available since | 745 | first appeared in OpenSSL 0.9.7 and have been available since |