mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-18 16:33:01 +00:00
Add RIPEMD-160 to the generic MD layer
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user