summaryrefslogtreecommitdiffstats
path: root/doc/crypto/EVP_DigestInit.pod
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-02-22 02:59:26 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-02-22 02:59:26 +0000
commit72b60351f17f26568e3af698fab4abd043b3fa29 (patch)
treee3aee906dafb7a38a275c590a49ff93ccfec6cd5 /doc/crypto/EVP_DigestInit.pod
parent1b8a8088a5d55d5474fd7f89bc991326cc0430d7 (diff)
Change EVP_MD_CTX_type so it is more logical and add EVP_MD_CTX_md for
the old functionality. Various warning fixes. Initial EVP symmetric cipher docs.
Diffstat (limited to 'doc/crypto/EVP_DigestInit.pod')
-rw-r--r--doc/crypto/EVP_DigestInit.pod8
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/crypto/EVP_DigestInit.pod b/doc/crypto/EVP_DigestInit.pod
index dd6dcb1b61..2ab27c360c 100644
--- a/doc/crypto/EVP_DigestInit.pod
+++ b/doc/crypto/EVP_DigestInit.pod
@@ -21,9 +21,10 @@ EVP_DigestInit, EVP_DigestUpdate, EVP_DigestFinal - EVP digest routines
#define EVP_MD_size(e) ((e)->md_size)
#define EVP_MD_block_size(e) ((e)->block_size)
+ #define EVP_MD_CTX_md(e) (e)->digest)
#define EVP_MD_CTX_size(e) EVP_MD_size((e)->digest)
#define EVP_MD_CTX_block_size(e) EVP_MD_block_size((e)->digest)
- #define EVP_MD_CTX_type(e) ((e)->digest)
+ #define EVP_MD_CTX_type(e) EVP_MD_type((e)->digest)
EVP_MD *EVP_md_null(void);
EVP_MD *EVP_md2(void);
@@ -75,7 +76,7 @@ representing the given message digest when passed an B<EVP_MD> structure.
For example EVP_MD_type(EVP_sha1()) returns B<NID_sha1>. This function is
normally used when setting ASN1 OIDs.
-EVP_MD_CTX_type() returns the B<EVP_MD> structure corresponding to the passed
+EVP_MD_CTX_md() returns the B<EVP_MD> structure corresponding to the passed
B<EVP_MD_CTX>.
EVP_MD_pkey_type() returns the NID of the public key signing algorithm associated
@@ -170,9 +171,6 @@ digest name passed on the command line.
=head1 BUGS
-B<EVP_MD_CTX_type> is not a good name because its name wrongly implies it does
-the same as B<EVP_MD_type> but takes an B<EVP_MD_CTX> parameter instead.
-
Several of the functions do not return values: maybe they should. Although the
internal digest operations will never fail some future hardware based operations
might.