From e05d97d2a0ec0063a0a11bf0b2ac2d04dfcf7798 Mon Sep 17 00:00:00 2001 From: jmc <> Date: Mon, 21 Nov 2016 22:19:15 +0000 Subject: various cleanup; --- src/lib/libcrypto/man/EVP_DigestInit.3 | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/lib/libcrypto/man/EVP_DigestInit.3') 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 @@ -.\" $OpenBSD: EVP_DigestInit.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ +.\" $OpenBSD: EVP_DigestInit.3,v 1.3 2016/11/21 22:19:15 jmc Exp $ .\" -.Dd $Mdocdate: November 6 2016 $ +.Dd $Mdocdate: November 21 2016 $ .Dt EVP_DIGESTINIT 3 .Os .Sh NAME @@ -11,9 +11,11 @@ .Nm EVP_DigestFinal_ex , .Nm EVP_MD_CTX_cleanup , .Nm EVP_MD_CTX_destroy , -.Nm EVP_MAX_MD_SIZE , .Nm EVP_MD_CTX_copy_ex , +.Nm EVP_DigestInit , +.Nm EVP_DigestFinal , .Nm EVP_MD_CTX_copy , +.Nm EVP_MAX_MD_SIZE , .Nm EVP_MD_type , .Nm EVP_MD_pkey_type , .Nm EVP_MD_size , @@ -35,9 +37,7 @@ .Nm EVP_ripemd160 , .Nm EVP_get_digestbyname , .Nm EVP_get_digestbynid , -.Nm EVP_get_digestbyobj , -.Nm EVP_DigestInit , -.Nm EVP_DigestFinal +.Nm EVP_get_digestbyobj .Nd EVP digest routines .Sh SYNOPSIS .In openssl/evp.h @@ -127,12 +127,6 @@ .Ft const EVP_MD * .Fn EVP_sha1 void .Ft const EVP_MD * -.Fn EVP_dss void -.Ft const EVP_MD * -.Fn EVP_dss1 void -.Ft const EVP_MD * -.Fn EVP_ripemd160 void -.Ft const EVP_MD * .Fn EVP_sha224 void .Ft const EVP_MD * .Fn EVP_sha256 void @@ -141,6 +135,12 @@ .Ft const EVP_MD * .Fn EVP_sha512 void .Ft const EVP_MD * +.Fn EVP_dss void +.Ft const EVP_MD * +.Fn EVP_dss1 void +.Ft const EVP_MD * +.Fn EVP_ripemd160 void +.Ft const EVP_MD * .Fo EVP_get_digestbyname .Fa "const char *name" .Fc @@ -199,7 +199,7 @@ parameter is not .Dv NULL , then the number of bytes of data written (i.e. the length of the digest) will be written to the integer at -.Fa s , +.Fa s ; at most .Dv EVP_MAX_MD_SIZE bytes will be written. @@ -284,7 +284,7 @@ For example .Fn EVP_MD_type EVP_sha1() returns .Dv NID_sha1 . -This function is normally used when setting ASN1 OIDs. +This function is normally used when setting ASN.1 OIDs. .Pp .Fn EVP_MD_CTX_md returns the @@ -324,7 +324,7 @@ return structures for SHA1 digest algorithms but using DSS (DSA) for the signature algorithm. Note: there is no need to use these pseudo-digests in OpenSSL 1.0.0 and -later, they are however retained for compatibility. +later; they are however retained for compatibility. .Pp .Fn EVP_md_null is a "null" message digest that does nothing: @@ -369,7 +369,7 @@ New applications should use and .Fn EVP_MD_CTX_copy_ex because they can efficiently reuse a digest context instead of -initializing and cleaning it up on each call and allow non default +initializing and cleaning it up on each call and allow non-default implementations of digests to be specified. .Pp In OpenSSL 0.9.7 and later if digest contexts are not cleaned up after @@ -440,7 +440,7 @@ if an error occurs. .Sh EXAMPLES This example digests the data "Test Message\en" and "Hello World\en", using the digest name passed on the command line. -.Bd -literal +.Bd -literal -offset indent #include #include @@ -514,7 +514,7 @@ pointers in OpenSSL 0.9.7. The link between digests and signing algorithms was fixed in OpenSSL 1.0 and later, so now .Fn EVP_sha1 -can be used with RSA and DSA, there is no need to use +can be used with RSA and DSA; there is no need to use .Fn EVP_dss1 any more. .Pp -- cgit v1.2.3-55-g6feb