mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Add RIPEMD-160 to the generic MD layer
This commit is contained in:
parent
ff40c3ac34
commit
e4d47a655b
9 changed files with 191 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue