summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_DigestInit.3
diff options
context:
space:
mode:
authorjmc <>2016-11-21 22:19:15 +0000
committerjmc <>2016-11-21 22:19:15 +0000
commitf3924d02d50eef96d8e3498921ed3ea2a635859b (patch)
tree4f2ead661ef1282b4d3b9864c0b0a6c1f1509065 /src/lib/libcrypto/man/EVP_DigestInit.3
parent67d9e3da39b97c33cb856ba418ad6f98cd957912 (diff)
downloadopenbsd-f3924d02d50eef96d8e3498921ed3ea2a635859b.tar.gz
openbsd-f3924d02d50eef96d8e3498921ed3ea2a635859b.tar.bz2
openbsd-f3924d02d50eef96d8e3498921ed3ea2a635859b.zip
various cleanup;
Diffstat (limited to 'src/lib/libcrypto/man/EVP_DigestInit.3')
-rw-r--r--src/lib/libcrypto/man/EVP_DigestInit.336
1 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestInit.3 b/src/lib/libcrypto/man/EVP_DigestInit.3
index f9be8ef75b..353084435f 100644
--- a/src/lib/libcrypto/man/EVP_DigestInit.3
+++ b/src/lib/libcrypto/man/EVP_DigestInit.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: EVP_DigestInit.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: EVP_DigestInit.3,v 1.3 2016/11/21 22:19:15 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 21 2016 $
4.Dt EVP_DIGESTINIT 3 4.Dt EVP_DIGESTINIT 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -11,9 +11,11 @@
11.Nm EVP_DigestFinal_ex , 11.Nm EVP_DigestFinal_ex ,
12.Nm EVP_MD_CTX_cleanup , 12.Nm EVP_MD_CTX_cleanup ,
13.Nm EVP_MD_CTX_destroy , 13.Nm EVP_MD_CTX_destroy ,
14.Nm EVP_MAX_MD_SIZE ,
15.Nm EVP_MD_CTX_copy_ex , 14.Nm EVP_MD_CTX_copy_ex ,
15.Nm EVP_DigestInit ,
16.Nm EVP_DigestFinal ,
16.Nm EVP_MD_CTX_copy , 17.Nm EVP_MD_CTX_copy ,
18.Nm EVP_MAX_MD_SIZE ,
17.Nm EVP_MD_type , 19.Nm EVP_MD_type ,
18.Nm EVP_MD_pkey_type , 20.Nm EVP_MD_pkey_type ,
19.Nm EVP_MD_size , 21.Nm EVP_MD_size ,
@@ -35,9 +37,7 @@
35.Nm EVP_ripemd160 , 37.Nm EVP_ripemd160 ,
36.Nm EVP_get_digestbyname , 38.Nm EVP_get_digestbyname ,
37.Nm EVP_get_digestbynid , 39.Nm EVP_get_digestbynid ,
38.Nm EVP_get_digestbyobj , 40.Nm EVP_get_digestbyobj
39.Nm EVP_DigestInit ,
40.Nm EVP_DigestFinal
41.Nd EVP digest routines 41.Nd EVP digest routines
42.Sh SYNOPSIS 42.Sh SYNOPSIS
43.In openssl/evp.h 43.In openssl/evp.h
@@ -127,12 +127,6 @@
127.Ft const EVP_MD * 127.Ft const EVP_MD *
128.Fn EVP_sha1 void 128.Fn EVP_sha1 void
129.Ft const EVP_MD * 129.Ft const EVP_MD *
130.Fn EVP_dss void
131.Ft const EVP_MD *
132.Fn EVP_dss1 void
133.Ft const EVP_MD *
134.Fn EVP_ripemd160 void
135.Ft const EVP_MD *
136.Fn EVP_sha224 void 130.Fn EVP_sha224 void
137.Ft const EVP_MD * 131.Ft const EVP_MD *
138.Fn EVP_sha256 void 132.Fn EVP_sha256 void
@@ -141,6 +135,12 @@
141.Ft const EVP_MD * 135.Ft const EVP_MD *
142.Fn EVP_sha512 void 136.Fn EVP_sha512 void
143.Ft const EVP_MD * 137.Ft const EVP_MD *
138.Fn EVP_dss void
139.Ft const EVP_MD *
140.Fn EVP_dss1 void
141.Ft const EVP_MD *
142.Fn EVP_ripemd160 void
143.Ft const EVP_MD *
144.Fo EVP_get_digestbyname 144.Fo EVP_get_digestbyname
145.Fa "const char *name" 145.Fa "const char *name"
146.Fc 146.Fc
@@ -199,7 +199,7 @@ parameter is not
199.Dv NULL , 199.Dv NULL ,
200then the number of bytes of data written (i.e. the length of the 200then the number of bytes of data written (i.e. the length of the
201digest) will be written to the integer at 201digest) will be written to the integer at
202.Fa s , 202.Fa s ;
203at most 203at most
204.Dv EVP_MAX_MD_SIZE 204.Dv EVP_MAX_MD_SIZE
205bytes will be written. 205bytes will be written.
@@ -284,7 +284,7 @@ For example
284.Fn EVP_MD_type EVP_sha1() 284.Fn EVP_MD_type EVP_sha1()
285returns 285returns
286.Dv NID_sha1 . 286.Dv NID_sha1 .
287This function is normally used when setting ASN1 OIDs. 287This function is normally used when setting ASN.1 OIDs.
288.Pp 288.Pp
289.Fn EVP_MD_CTX_md 289.Fn EVP_MD_CTX_md
290returns the 290returns the
@@ -324,7 +324,7 @@ return
324structures for SHA1 digest algorithms but using DSS (DSA) for the 324structures for SHA1 digest algorithms but using DSS (DSA) for the
325signature algorithm. 325signature algorithm.
326Note: there is no need to use these pseudo-digests in OpenSSL 1.0.0 and 326Note: there is no need to use these pseudo-digests in OpenSSL 1.0.0 and
327later, they are however retained for compatibility. 327later; they are however retained for compatibility.
328.Pp 328.Pp
329.Fn EVP_md_null 329.Fn EVP_md_null
330is a "null" message digest that does nothing: 330is a "null" message digest that does nothing:
@@ -369,7 +369,7 @@ New applications should use
369and 369and
370.Fn EVP_MD_CTX_copy_ex 370.Fn EVP_MD_CTX_copy_ex
371because they can efficiently reuse a digest context instead of 371because they can efficiently reuse a digest context instead of
372initializing and cleaning it up on each call and allow non default 372initializing and cleaning it up on each call and allow non-default
373implementations of digests to be specified. 373implementations of digests to be specified.
374.Pp 374.Pp
375In OpenSSL 0.9.7 and later if digest contexts are not cleaned up after 375In OpenSSL 0.9.7 and later if digest contexts are not cleaned up after
@@ -440,7 +440,7 @@ if an error occurs.
440.Sh EXAMPLES 440.Sh EXAMPLES
441This example digests the data "Test Message\en" and "Hello World\en", 441This example digests the data "Test Message\en" and "Hello World\en",
442using the digest name passed on the command line. 442using the digest name passed on the command line.
443.Bd -literal 443.Bd -literal -offset indent
444#include <stdio.h> 444#include <stdio.h>
445#include <openssl/evp.h> 445#include <openssl/evp.h>
446 446
@@ -514,7 +514,7 @@ pointers in OpenSSL 0.9.7.
514The link between digests and signing algorithms was fixed in OpenSSL 1.0 514The link between digests and signing algorithms was fixed in OpenSSL 1.0
515and later, so now 515and later, so now
516.Fn EVP_sha1 516.Fn EVP_sha1
517can be used with RSA and DSA, there is no need to use 517can be used with RSA and DSA; there is no need to use
518.Fn EVP_dss1 518.Fn EVP_dss1
519any more. 519any more.
520.Pp 520.Pp