Lines Matching refs:char
9 void md2_text( char *text_src_string, char *hex_hash_string )
11 unsigned char src_str[100];
12 unsigned char hash_str[33];
13 unsigned char output[16];
19 strncpy( (char *) src_str, text_src_string, sizeof(src_str) - 1 );
21 mbedtls_md2( src_str, strlen( (char *) src_str ), output );
24 TEST_ASSERT( strcmp( (char *) hash_str, hex_hash_string ) == 0 );
29 void md4_text( char *text_src_string, char *hex_hash_string )
31 unsigned char src_str[100];
32 unsigned char hash_str[33];
33 unsigned char output[16];
39 strncpy( (char *) src_str, text_src_string, sizeof(src_str) - 1 );
41 mbedtls_md4( src_str, strlen( (char *) src_str ), output );
44 TEST_ASSERT( strcmp( (char *) hash_str, hex_hash_string ) == 0 );
49 void md5_text( char *text_src_string, char *hex_hash_string )
51 unsigned char src_str[100];
52 unsigned char hash_str[33];
53 unsigned char output[16];
59 strncpy( (char *) src_str, text_src_string, sizeof(src_str) - 1 );
61 mbedtls_md5( src_str, strlen( (char *) src_str ), output );
64 TEST_ASSERT( strcmp( (char *) hash_str, hex_hash_string ) == 0 );
69 void ripemd160_text( char *text_src_string, char *hex_hash_string )
71 unsigned char src_str[100];
72 unsigned char hash_str[41];
73 unsigned char output[20];
79 strncpy( (char *) src_str, text_src_string, sizeof(src_str) - 1 );
81 mbedtls_ripemd160( src_str, strlen( (char *) src_str ), output );
84 TEST_ASSERT( strcmp( (char *) hash_str, hex_hash_string ) == 0 );