mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Renamed RMD160 to RIPEMD160
This commit is contained in:
16
library/md.c
16
library/md.c
@ -55,8 +55,8 @@ static const int supported_digests[] = {
|
||||
POLARSSL_MD_MD5,
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_RMD160_C)
|
||||
POLARSSL_MD_RMD160,
|
||||
#if defined(POLARSSL_RIPEMD160_C)
|
||||
POLARSSL_MD_RIPEMD160,
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_SHA1_C)
|
||||
@ -99,9 +99,9 @@ const md_info_t *md_info_from_string( const char *md_name )
|
||||
if( !strcasecmp( "MD5", md_name ) )
|
||||
return md_info_from_type( POLARSSL_MD_MD5 );
|
||||
#endif
|
||||
#if defined(POLARSSL_RMD160_C)
|
||||
if( !strcasecmp( "RMD160", md_name ) )
|
||||
return md_info_from_type( POLARSSL_MD_RMD160 );
|
||||
#if defined(POLARSSL_RIPEMD160_C)
|
||||
if( !strcasecmp( "RIPEMD160", md_name ) )
|
||||
return md_info_from_type( POLARSSL_MD_RIPEMD160 );
|
||||
#endif
|
||||
#if defined(POLARSSL_SHA1_C)
|
||||
if( !strcasecmp( "SHA1", md_name ) || !strcasecmp( "SHA", md_name ) )
|
||||
@ -138,9 +138,9 @@ const md_info_t *md_info_from_type( md_type_t md_type )
|
||||
case POLARSSL_MD_MD5:
|
||||
return &md5_info;
|
||||
#endif
|
||||
#if defined(POLARSSL_RMD160_C)
|
||||
case POLARSSL_MD_RMD160:
|
||||
return &rmd160_info;
|
||||
#if defined(POLARSSL_RIPEMD160_C)
|
||||
case POLARSSL_MD_RIPEMD160:
|
||||
return &ripemd160_info;
|
||||
#endif
|
||||
#if defined(POLARSSL_SHA1_C)
|
||||
case POLARSSL_MD_SHA1:
|
||||
|
Reference in New Issue
Block a user