#include
unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, unsigned char *md);
int RIPEMD160_Init(RIPEMD160_CTX *c); int RIPEMD160_Update(RIPEMD_CTX *c, const void *data, unsigned long len); int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
_R_I_P_E_M_D_1_6_0_(_) computes the RIPEMD-160 message digest of the nn bytes at dd and places it in mmdd (which must have space for RIPEMD160_DIGEST_LENGTH == 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:
_R_I_P_E_M_D_1_6_0___I_n_i_t_(_) initializes a RRIIPPEEMMDD116600__CCTTXX structure.
_R_I_P_E_M_D_1_6_0___U_p_d_a_t_e_(_) can be called repeatedly with chunks of the message to be hashed (lleenn bytes at ddaattaa).
_R_I_P_E_M_D_1_6_0___F_i_n_a_l_(_) places the message digest in mmdd, which must have space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases the RRIIPPEEMMDD116600__CCTTXX.
Applications should use the higher level functions _E_V_P___D_i_g_e_s_t_I_n_i_t(3) etc. instead of calling the hash functions directly.
_R_I_P_E_M_D_1_6_0___I_n_i_t_(_), _R_I_P_E_M_D_1_6_0___U_p_d_a_t_e_(_) and _R_I_P_E_M_D_1_6_0___F_i_n_a_l_(_) return 1 for success, 0 otherwise.