X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2Fcrypto%2Fripemd.pod;h=264bb99ae793c5c139739a4b10ac3d0cbd380b18;hb=c420fab52b8e97762445a721dbd0a4c965ef54ab;hp=4a6a7e1b4a091de6e4fb07b67bd9a030cfbf1c0f;hpb=9dbc41d7eed7d69da54dc81082794845c50ad482;p=oweals%2Fopenssl.git diff --git a/doc/crypto/ripemd.pod b/doc/crypto/ripemd.pod index 4a6a7e1b4a..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 unsigned char *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 @@ -39,12 +39,16 @@ RIPEMD160_Final() places the message digest in B, which must have space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases the B. +Applications should use the higher level functions +L etc. instead of calling the +hash functions directly. + =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 @@ -52,7 +56,7 @@ ISO/IEC 10118-3 (draft) (??) =head1 SEE ALSO -L, L +L, L, L =head1 HISTORY