projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More docs for streaming functions.
[oweals/openssl.git]
/
doc
/
crypto
/
ripemd.pod
diff --git
a/doc/crypto/ripemd.pod
b/doc/crypto/ripemd.pod
index 4a6a7e1b4a091de6e4fb07b67bd9a030cfbf1c0f..264bb99ae793c5c139739a4b10ac3d0cbd380b18 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 unsigned char
*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,12
+39,16
@@
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
+L<EVP_DigestInit(3)|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 CONFORMING TO
=head1 CONFORMING TO
@@
-52,7
+56,7
@@
ISO/IEC 10118-3 (draft) (??)
=head1 SEE ALSO
=head1 SEE ALSO
-L<sha(3)|sha(3)>, L<hmac(3)|hmac(3)>
+L<sha(3)|sha(3)>, L<hmac(3)|hmac(3)>
, L<EVP_DigestInit(3)|EVP_DigestInit(3)>
=head1 HISTORY
=head1 HISTORY