Home
last modified time | relevance | path

Searched refs:md_name (Results 1 – 3 of 3) sorted by relevance

/net-tools-3.5.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_md.function106 void md_info( int md_type, char *md_name, int md_size )
114 TEST_ASSERT( md_info == mbedtls_md_info_from_string( md_name ) );
118 TEST_ASSERT( strcmp( mbedtls_md_get_name( md_info ), md_name ) == 0 );
131 char md_name[100];
137 memset( md_name, 0x00, 100 );
143 strncpy( (char *) md_name, text_md_name, sizeof( md_name ) - 1 );
144 md_info = mbedtls_md_info_from_string(md_name);
157 char md_name[100];
164 memset( md_name, 0x00, 100 );
169 strncpy( (char *) md_name, text_md_name, sizeof( md_name ) - 1 );
[all …]
/net-tools-3.5.0/mbedtls-2.4.0/library/
Dmd.c99 const mbedtls_md_info_t *mbedtls_md_info_from_string( const char *md_name ) in mbedtls_md_info_from_string() argument
101 if( NULL == md_name ) in mbedtls_md_info_from_string()
106 if( !strcmp( "MD2", md_name ) ) in mbedtls_md_info_from_string()
110 if( !strcmp( "MD4", md_name ) ) in mbedtls_md_info_from_string()
114 if( !strcmp( "MD5", md_name ) ) in mbedtls_md_info_from_string()
118 if( !strcmp( "RIPEMD160", md_name ) ) in mbedtls_md_info_from_string()
122 if( !strcmp( "SHA1", md_name ) || !strcmp( "SHA", md_name ) ) in mbedtls_md_info_from_string()
126 if( !strcmp( "SHA224", md_name ) ) in mbedtls_md_info_from_string()
128 if( !strcmp( "SHA256", md_name ) ) in mbedtls_md_info_from_string()
132 if( !strcmp( "SHA384", md_name ) ) in mbedtls_md_info_from_string()
[all …]
/net-tools-3.5.0/mbedtls-2.4.0/include/mbedtls/
Dmd.h94 const mbedtls_md_info_t *mbedtls_md_info_from_string( const char *md_name );