summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2006-10-27 21:58:09 +0000
committerNils Larsch <nils@openssl.org>2006-10-27 21:58:09 +0000
commit8a4af56fc6ef29c938d0e181bf39533f941decb3 (patch)
tree1f1ae727e910a54c35c850f2cfa78e88b066297e /doc
parent05cfe06607f78e2865e7c8927f3c21f2b15c7e7c (diff)
update md docs
Diffstat (limited to 'doc')
-rw-r--r--doc/crypto/md5.pod22
-rw-r--r--doc/crypto/mdc2.pod8
-rw-r--r--doc/crypto/ripemd.pod10
-rw-r--r--doc/crypto/sha.pod8
4 files changed, 24 insertions, 24 deletions
diff --git a/doc/crypto/md5.pod b/doc/crypto/md5.pod
index 6e6322dcdc..d11d5c32cb 100644
--- a/doc/crypto/md5.pod
+++ b/doc/crypto/md5.pod
@@ -12,10 +12,10 @@ MD4_Final, MD5_Init, MD5_Update, MD5_Final - MD2, MD4, and MD5 hash functions
unsigned char *MD2(const unsigned char *d, unsigned long n,
unsigned char *md);
- void MD2_Init(MD2_CTX *c);
- void MD2_Update(MD2_CTX *c, const unsigned char *data,
+ int MD2_Init(MD2_CTX *c);
+ int MD2_Update(MD2_CTX *c, const unsigned char *data,
unsigned long len);
- void MD2_Final(unsigned char *md, MD2_CTX *c);
+ int MD2_Final(unsigned char *md, MD2_CTX *c);
#include <openssl/md4.h>
@@ -23,10 +23,10 @@ MD4_Final, MD5_Init, MD5_Update, MD5_Final - MD2, MD4, and MD5 hash functions
unsigned char *MD4(const unsigned char *d, unsigned long n,
unsigned char *md);
- void MD4_Init(MD4_CTX *c);
- void MD4_Update(MD4_CTX *c, const void *data,
+ int MD4_Init(MD4_CTX *c);
+ int MD4_Update(MD4_CTX *c, const void *data,
unsigned long len);
- void MD4_Final(unsigned char *md, MD4_CTX *c);
+ int MD4_Final(unsigned char *md, MD4_CTX *c);
#include <openssl/md5.h>
@@ -34,10 +34,10 @@ MD4_Final, MD5_Init, MD5_Update, MD5_Final - MD2, MD4, and MD5 hash functions
unsigned char *MD5(const unsigned char *d, unsigned long n,
unsigned char *md);
- void MD5_Init(MD5_CTX *c);
- void MD5_Update(MD5_CTX *c, const void *data,
+ int MD5_Init(MD5_CTX *c);
+ int MD5_Update(MD5_CTX *c, const void *data,
unsigned long len);
- void MD5_Final(unsigned char *md, MD5_CTX *c);
+ int MD5_Final(unsigned char *md, MD5_CTX *c);
=head1 DESCRIPTION
@@ -78,8 +78,8 @@ preferred.
MD2(), MD4(), and MD5() return pointers to the hash value.
MD2_Init(), MD2_Update(), MD2_Final(), MD4_Init(), MD4_Update(),
-MD4_Final(), MD5_Init(), MD5_Update(), and MD5_Final() do not return
-values.
+MD4_Final(), MD5_Init(), MD5_Update(), and MD5_Final() return 1 for
+success, 0 otherwise.
=head1 CONFORMING TO
diff --git a/doc/crypto/mdc2.pod b/doc/crypto/mdc2.pod
index 11dc303e04..41f648af36 100644
--- a/doc/crypto/mdc2.pod
+++ b/doc/crypto/mdc2.pod
@@ -11,10 +11,10 @@ MDC2, MDC2_Init, MDC2_Update, MDC2_Final - MDC2 hash function
unsigned char *MDC2(const unsigned char *d, unsigned long n,
unsigned char *md);
- void MDC2_Init(MDC2_CTX *c);
- void MDC2_Update(MDC2_CTX *c, const unsigned char *data,
+ int MDC2_Init(MDC2_CTX *c);
+ int MDC2_Update(MDC2_CTX *c, const unsigned char *data,
unsigned long len);
- void MDC2_Final(unsigned char *md, MDC2_CTX *c);
+ int MDC2_Final(unsigned char *md, MDC2_CTX *c);
=head1 DESCRIPTION
@@ -46,7 +46,7 @@ hash functions directly.
MDC2() returns a pointer to the hash value.
-MDC2_Init(), MDC2_Update() and MDC2_Final() do not return values.
+MDC2_Init(), MDC2_Update() and MDC2_Final() return 1 for success, 0 otherwise.
=head1 CONFORMING TO
diff --git a/doc/crypto/ripemd.pod b/doc/crypto/ripemd.pod
index 31054b6a8c..264bb99ae7 100644
--- a/doc/crypto/ripemd.pod
+++ b/doc/crypto/ripemd.pod
@@ -12,10 +12,10 @@ RIPEMD-160 hash function
unsigned char *RIPEMD160(const unsigned char *d, unsigned long n,
unsigned char *md);
- void RIPEMD160_Init(RIPEMD160_CTX *c);
- void RIPEMD160_Update(RIPEMD_CTX *c, const void *data,
+ int RIPEMD160_Init(RIPEMD160_CTX *c);
+ int RIPEMD160_Update(RIPEMD_CTX *c, const void *data,
unsigned long len);
- void RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
+ int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
=head1 DESCRIPTION
@@ -47,8 +47,8 @@ hash functions directly.
RIPEMD160() returns a pointer to the hash value.
-RIPEMD160_Init(), RIPEMD160_Update() and RIPEMD160_Final() do not
-return values.
+RIPEMD160_Init(), RIPEMD160_Update() and RIPEMD160_Final() return 1 for
+success, 0 otherwise.
=head1 CONFORMING TO
diff --git a/doc/crypto/sha.pod b/doc/crypto/sha.pod
index 0ba315d6d7..94ab7bc724 100644
--- a/doc/crypto/sha.pod
+++ b/doc/crypto/sha.pod
@@ -11,10 +11,10 @@ SHA1, SHA1_Init, SHA1_Update, SHA1_Final - Secure Hash Algorithm
unsigned char *SHA1(const unsigned char *d, unsigned long n,
unsigned char *md);
- void SHA1_Init(SHA_CTX *c);
- void SHA1_Update(SHA_CTX *c, const void *data,
+ int SHA1_Init(SHA_CTX *c);
+ int SHA1_Update(SHA_CTX *c, const void *data,
unsigned long len);
- void SHA1_Final(unsigned char *md, SHA_CTX *c);
+ int SHA1_Final(unsigned char *md, SHA_CTX *c);
=head1 DESCRIPTION
@@ -48,7 +48,7 @@ used only when backward compatibility is required.
SHA1() returns a pointer to the hash value.
-SHA1_Init(), SHA1_Update() and SHA1_Final() do not return values.
+SHA1_Init(), SHA1_Update() and SHA1_Final() return 1 for success, 0 otherwise.
=head1 CONFORMING TO