diff options
Diffstat (limited to 'src/lib/libcrypto/man/EVP_DigestInit.3')
| -rw-r--r-- | src/lib/libcrypto/man/EVP_DigestInit.3 | 36 |
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 , |
| 200 | then the number of bytes of data written (i.e. the length of the | 200 | then the number of bytes of data written (i.e. the length of the |
| 201 | digest) will be written to the integer at | 201 | digest) will be written to the integer at |
| 202 | .Fa s , | 202 | .Fa s ; |
| 203 | at most | 203 | at most |
| 204 | .Dv EVP_MAX_MD_SIZE | 204 | .Dv EVP_MAX_MD_SIZE |
| 205 | bytes will be written. | 205 | bytes will be written. |
| @@ -284,7 +284,7 @@ For example | |||
| 284 | .Fn EVP_MD_type EVP_sha1() | 284 | .Fn EVP_MD_type EVP_sha1() |
| 285 | returns | 285 | returns |
| 286 | .Dv NID_sha1 . | 286 | .Dv NID_sha1 . |
| 287 | This function is normally used when setting ASN1 OIDs. | 287 | This 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 |
| 290 | returns the | 290 | returns the |
| @@ -324,7 +324,7 @@ return | |||
| 324 | structures for SHA1 digest algorithms but using DSS (DSA) for the | 324 | structures for SHA1 digest algorithms but using DSS (DSA) for the |
| 325 | signature algorithm. | 325 | signature algorithm. |
| 326 | Note: there is no need to use these pseudo-digests in OpenSSL 1.0.0 and | 326 | Note: there is no need to use these pseudo-digests in OpenSSL 1.0.0 and |
| 327 | later, they are however retained for compatibility. | 327 | later; they are however retained for compatibility. |
| 328 | .Pp | 328 | .Pp |
| 329 | .Fn EVP_md_null | 329 | .Fn EVP_md_null |
| 330 | is a "null" message digest that does nothing: | 330 | is a "null" message digest that does nothing: |
| @@ -369,7 +369,7 @@ New applications should use | |||
| 369 | and | 369 | and |
| 370 | .Fn EVP_MD_CTX_copy_ex | 370 | .Fn EVP_MD_CTX_copy_ex |
| 371 | because they can efficiently reuse a digest context instead of | 371 | because they can efficiently reuse a digest context instead of |
| 372 | initializing and cleaning it up on each call and allow non default | 372 | initializing and cleaning it up on each call and allow non-default |
| 373 | implementations of digests to be specified. | 373 | implementations of digests to be specified. |
| 374 | .Pp | 374 | .Pp |
| 375 | In OpenSSL 0.9.7 and later if digest contexts are not cleaned up after | 375 | In 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 |
| 441 | This example digests the data "Test Message\en" and "Hello World\en", | 441 | This example digests the data "Test Message\en" and "Hello World\en", |
| 442 | using the digest name passed on the command line. | 442 | using 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. | |||
| 514 | The link between digests and signing algorithms was fixed in OpenSSL 1.0 | 514 | The link between digests and signing algorithms was fixed in OpenSSL 1.0 |
| 515 | and later, so now | 515 | and later, so now |
| 516 | .Fn EVP_sha1 | 516 | .Fn EVP_sha1 |
| 517 | can be used with RSA and DSA, there is no need to use | 517 | can be used with RSA and DSA; there is no need to use |
| 518 | .Fn EVP_dss1 | 518 | .Fn EVP_dss1 |
| 519 | any more. | 519 | any more. |
| 520 | .Pp | 520 | .Pp |
