1=pod 2 3=head1 NAME 4 5RIPEMD160, RIPEMD160_Init, RIPEMD160_Update, RIPEMD160_Final - 6RIPEMD-160 hash function 7 8=head1 SYNOPSIS 9 10 #include <openssl/ripemd.h> 11 12 unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, 13 unsigned char *md); 14 15 int RIPEMD160_Init(RIPEMD160_CTX *c); 16 int RIPEMD160_Update(RIPEMD_CTX *c, const void *data, 17 unsigned long len); 18 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); 19 20=head1 DESCRIPTION 21 22RIPEMD-160 is a cryptographic hash function with a 23160 bit output. 24 25RIPEMD160() computes the RIPEMD-160 message digest of the B<n> 26bytes at B<d> and places it in B<md> (which must have space for 27RIPEMD160_DIGEST_LENGTH == 20 bytes of output). If B<md> is NULL, the digest 28is placed in a static array. 29 30The following functions may be used if the message is not completely 31stored in memory: 32 33RIPEMD160_Init() initializes a B<RIPEMD160_CTX> structure. 34 35RIPEMD160_Update() can be called repeatedly with chunks of the message to 36be hashed (B<len> bytes at B<data>). 37 38RIPEMD160_Final() places the message digest in B<md>, which must have 39space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases 40the B<RIPEMD160_CTX>. 41 42Applications should use the higher level functions 43L<EVP_DigestInit(3)|EVP_DigestInit(3)> etc. instead of calling the 44hash functions directly. 45 46=head1 RETURN VALUES 47 48RIPEMD160() returns a pointer to the hash value. 49 50RIPEMD160_Init(), RIPEMD160_Update() and RIPEMD160_Final() return 1 for 51success, 0 otherwise. 52 53=head1 CONFORMING TO 54 55ISO/IEC 10118-3 (draft) (??) 56 57=head1 SEE ALSO 58 59L<sha(3)|sha(3)>, L<hmac(3)|hmac(3)>, L<EVP_DigestInit(3)|EVP_DigestInit(3)> 60 61=head1 HISTORY 62 63RIPEMD160(), RIPEMD160_Init(), RIPEMD160_Update() and 64RIPEMD160_Final() are available since SSLeay 0.9.0. 65 66=cut 67