summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2016-11-26 17:12:45 +0000
committerschwarze <>2016-11-26 17:12:45 +0000
commit42a3ccaaaaf58c17569dada61a756958c3cc78e1 (patch)
treedb86b41521899264bafe78b8700152a33bd7b850
parentaba3adbd7238bc32c17777b16e6e98cb93b7dc74 (diff)
downloadopenbsd-42a3ccaaaaf58c17569dada61a756958c3cc78e1.tar.gz
openbsd-42a3ccaaaaf58c17569dada61a756958c3cc78e1.tar.bz2
openbsd-42a3ccaaaaf58c17569dada61a756958c3cc78e1.zip
Add Copyright and license.
In the SYNOPSIS, show prototypes rather than #defines.
-rw-r--r--src/lib/libcrypto/man/EVP_DigestInit.386
1 files changed, 79 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestInit.3 b/src/lib/libcrypto/man/EVP_DigestInit.3
index 353084435f..2100065bf8 100644
--- a/src/lib/libcrypto/man/EVP_DigestInit.3
+++ b/src/lib/libcrypto/man/EVP_DigestInit.3
@@ -1,6 +1,55 @@
1.\" $OpenBSD: EVP_DigestInit.3,v 1.3 2016/11/21 22:19:15 jmc Exp $ 1.\" $OpenBSD: EVP_DigestInit.3,v 1.4 2016/11/26 17:12:45 schwarze Exp $
2.\" OpenSSL 7f572e95 Dec 2 13:57:04 2015 +0000
2.\" 3.\"
3.Dd $Mdocdate: November 21 2016 $ 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2000-2004, 2009, 2012-2015 The OpenSSL Project.
6.\" All rights reserved.
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\"
12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer.
14.\"
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\" notice, this list of conditions and the following disclaimer in
17.\" the documentation and/or other materials provided with the
18.\" distribution.
19.\"
20.\" 3. All advertising materials mentioning features or use of this
21.\" software must display the following acknowledgment:
22.\" "This product includes software developed by the OpenSSL Project
23.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
24.\"
25.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
26.\" endorse or promote products derived from this software without
27.\" prior written permission. For written permission, please contact
28.\" openssl-core@openssl.org.
29.\"
30.\" 5. Products derived from this software may not be called "OpenSSL"
31.\" nor may "OpenSSL" appear in their names without prior written
32.\" permission of the OpenSSL Project.
33.\"
34.\" 6. Redistributions of any form whatsoever must retain the following
35.\" acknowledgment:
36.\" "This product includes software developed by the OpenSSL Project
37.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
38.\"
39.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
40.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
43.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
48.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\"
52.Dd $Mdocdate: November 26 2016 $
4.Dt EVP_DIGESTINIT 3 53.Dt EVP_DIGESTINIT 3
5.Os 54.Os
6.Sh NAME 55.Sh NAME
@@ -115,9 +164,18 @@
115.Fo EVP_MD_CTX_md 164.Fo EVP_MD_CTX_md
116.Fa "const EVP_MD_CTX *ctx" 165.Fa "const EVP_MD_CTX *ctx"
117.Fc 166.Fc
118.Fd #define EVP_MD_CTX_size(e) EVP_MD_size(EVP_MD_CTX_md(e)) 167.Ft int
119.Fd #define EVP_MD_CTX_block_size(e) EVP_MD_block_size((e)->digest) 168.Fo EVP_MD_CTX_size
120.Fd #define EVP_MD_CTX_type(e) EVP_MD_type((e)->digest) 169.Fa "const EVP_MD *ctx"
170.Fc
171.Ft int
172.Fo EVP_MD_CTX_block_size
173.Fa "const EVP_MD *ctx"
174.Fc
175.Ft int
176.Fo EVP_MD_CTX_type
177.Fa "const EVP_MD *ctx"
178.Fc
121.Ft const EVP_MD * 179.Ft const EVP_MD *
122.Fn EVP_md_null void 180.Fn EVP_md_null void
123.Ft const EVP_MD * 181.Ft const EVP_MD *
@@ -144,8 +202,14 @@
144.Fo EVP_get_digestbyname 202.Fo EVP_get_digestbyname
145.Fa "const char *name" 203.Fa "const char *name"
146.Fc 204.Fc
147.Fd #define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a)) 205.Ft const EVP_MD *
148.Fd #define EVP_get_digestbyobj(a) EVP_get_digestbynid(OBJ_obj2nid(a)) 206.Fo EVP_get_digestbynid
207.Fa "int type"
208.Fc
209.Ft const EVP_MD *
210.Fo EVP_get_digestbyobj
211.Fa "const ASN1_OBJECT *o"
212.Fc
149.Sh DESCRIPTION 213.Sh DESCRIPTION
150The EVP digest routines are a high level interface to message digests. 214The EVP digest routines are a high level interface to message digests.
151.Pp 215.Pp
@@ -342,6 +406,14 @@ The digest table must be initialized using, for example,
342.Xr OpenSSL_add_all_digests 3 406.Xr OpenSSL_add_all_digests 3
343for these functions to work. 407for these functions to work.
344.Pp 408.Pp
409.Fn EVP_MD_CTX_size ,
410.Fn EVP_MD_CTX_block_size ,
411.Fn EVP_MD_CTX_type ,
412.Fn EVP_get_digestbynid ,
413and
414.Fn EVP_get_digestbyobj
415are implemented as macros.
416.Pp
345The EVP interface to message digests should almost always be used 417The EVP interface to message digests should almost always be used
346in preference to the low level interfaces. 418in preference to the low level interfaces.
347This is because the code then becomes transparent to the digest used and 419This is because the code then becomes transparent to the digest used and