ripemd 3 2007-03-06 0.9.9-dev OpenSSL

NAME

RIPEMD160, RIPEMD160_Init, RIPEMD160_Update, RIPEMD160_Final - RIPEMD-160 hash function

LIBRARY

libcrypto, -lcrypto

SYNOPSIS


 #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);

DESCRIPTION

RIPEMD-160 is a cryptographic hash function with a 160 bit output.

_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.

RETURN VALUES

_R_I_P_E_M_D_1_6_0_(_) returns a pointer to the hash value.

_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.

CONFORMING TO

ISO/IEC 10118-3 (draft) (??)

SEE ALSO

_o_p_e_n_s_s_l___s_h_a(3), _o_p_e_n_s_s_l___h_m_a_c(3), _E_V_P___D_i_g_e_s_t_I_n_i_t(3)

HISTORY

_R_I_P_E_M_D_1_6_0_(_), _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_(_) are available since SSLeay 0.9.0.