projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates for auto init/deinit review comments
[openssl.git]
/
doc
/
crypto
/
ripemd.pod
diff --git
a/doc/crypto/ripemd.pod
b/doc/crypto/ripemd.pod
index 9656bb09803281d714b8bc69054882b094b1ce7b..c7a94cc9ab5ef4cba2cdc9c7dd938684b3c8a4df 100644
(file)
--- 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);
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);
unsigned long len);
-
void
RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
+
int
RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
=head1 DESCRIPTION
=head1 DESCRIPTION
@@
-39,15
+39,18
@@
RIPEMD160_Final() places the message digest in B<md>, which must have
space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases
the B<RIPEMD160_CTX>.
space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases
the B<RIPEMD160_CTX>.
-Applications should use the higher level functions EVP_DigestInit(3) etc.
-instead of calling the hash functions directly.
-
=head1 RETURN VALUES
RIPEMD160() returns a pointer to the hash value.
=head1 RETURN VALUES
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 NOTE
+
+Applications should use the higher level functions
+L<EVP_DigestInit(3)> etc. instead of calling these
+functions directly.
=head1 CONFORMING TO
=head1 CONFORMING TO
@@
-55,11
+58,6
@@
ISO/IEC 10118-3 (draft) (??)
=head1 SEE ALSO
=head1 SEE ALSO
-L<sha(3)|sha(3)>, L<hmac(3)|hmac(3)>, L<EVP_DigestInit(3)|EVP_DigestInit(3)>
-
-=head1 HISTORY
-
-RIPEMD160(), RIPEMD160_Init(), RIPEMD160_Update() and
-RIPEMD160_Final() are available since SSLeay 0.9.0.
+L<EVP_DigestInit(3)>
=cut
=cut