Add RIPEMD-160 to the generic MD layer

This commit is contained in:
Manuel Pégourié-Gonnard 2014-01-17 20:41:32 +01:00
parent ff40c3ac34
commit e4d47a655b
9 changed files with 191 additions and 6 deletions

View file

@ -58,6 +58,7 @@ typedef enum {
POLARSSL_MD_SHA256,
POLARSSL_MD_SHA384,
POLARSSL_MD_SHA512,
POLARSSL_MD_RMD160,
} md_type_t;
#if defined(POLARSSL_SHA512_C)

View file

@ -45,6 +45,9 @@ extern const md_info_t md4_info;
#if defined(POLARSSL_MD5_C)
extern const md_info_t md5_info;
#endif
#if defined(POLARSSL_RMD160_C)
extern const md_info_t rmd160_info;
#endif
#if defined(POLARSSL_SHA1_C)
extern const md_info_t sha1_info;
#endif

View file

@ -160,6 +160,9 @@ void rmd160_hmac( const unsigned char *key, size_t keylen,
*/
int rmd160_self_test( int verbose );
/* Internal use */
void rmd160_process( rmd160_context *ctx, const unsigned char data[64] );
#ifdef __cplusplus
}
#endif