NAME
RIPEMD160, RIPEMD160Init, RIPEMD160Update, RIPEMD160Final -
RIPEMD-160 hash function
SYNOPSIS
#include
unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, unsigned char *md); void RIPEMD160Init(RIPEMD160CTX *c); void RIPEMD160Update(RIPEMDCTX *c, const void *data, unsigned long len); void RIPEMD160Final(unsigned char *md, RIPEMD160CTX *c);DESCRIPTION
RIPEMD-160 is a cryptographic hash function with a 160 bit output.
RIPEMD160() computes the RIPEMD-160 message digest of the nn bytes at dd
and places it in mmdd (which must have space for RIPEMD160DIGESTLENGTH == 20 bytes of output). If mmdd is NULL, the digest is placed in a static array. The following functions may be used if the message is not completely stored in memory: RIPEMD160Init() initializes a RRIIPPEEMMDD116600CCTTXX structure. RIPEMD160Update() can be called repeatedly with chunks of the message to be hashed (lleenn bytes at ddaattaa). RIPEMD160Final() places the message digest in mmdd, which must have space for RIPEMD160DIGESTLENGTH == 20 bytes of output, and erases the RRIIPPEEMMDD116600CCTTXX. Applications should use the higher level functions EVPDigestInit(3) etc. instead of calling the hash functions directly.RETURN VALUES
RIPEMD160() returns a pointer to the hash value. RIPEMD160Init(), RIPEMD160Update() and RIPEMD160Final() do not return values. CCOONNFFOORRMMIINNGG TTOOISO/IEC 10118-3 (draft) (??)
SEE ALSO
sha(3), hmac(3), EVPDigestInit(3) HISTORY RIPEMD160(), RIPEMD160Init(), RIPEMD160Update() and RIPEMD160Final() are available since SSLeay 0.9.0.0.9.7l 2000-02-25 ripemd(3)