Lines Matching refs:char
19 void mbedtls_rsa_pkcs1_sign( char *message_hex_string, int padding_mode, int digest,
20 int mod, int radix_P, char *input_P, int radix_Q,
21 char *input_Q, int radix_N, char *input_N, int radix_E,
22 char *input_E, char *result_hex_str, int result )
24 unsigned char message_str[1000];
25 unsigned char hash_result[1000];
26 unsigned char output[1000];
27 unsigned char output_str[1000];
69 TEST_ASSERT( strcasecmp( (char *) output_str, result_hex_str ) == 0 );
79 void mbedtls_rsa_pkcs1_verify( char *message_hex_string, int padding_mode, int digest,
80 int mod, int radix_N, char *input_N, int radix_E,
81 char *input_E, char *result_hex_str, int result )
83 unsigned char message_str[1000];
84 unsigned char hash_result[1000];
85 unsigned char result_str[1000];
115 void rsa_pkcs1_sign_raw( char *message_hex_string, char *hash_result_string,
116 int padding_mode, int mod, int radix_P, char *input_P,
117 int radix_Q, char *input_Q, int radix_N,
118 char *input_N, int radix_E, char *input_E,
119 char *result_hex_str )
121 unsigned char message_str[1000];
122 unsigned char hash_result[1000];
123 unsigned char output[1000];
124 unsigned char output_str[1000];
163 TEST_ASSERT( strcasecmp( (char *) output_str, result_hex_str ) == 0 );
177 TEST_ASSERT( strcasecmp( (char *) output_str, result_hex_str ) == 0 );
187 void rsa_pkcs1_verify_raw( char *message_hex_string, char *hash_result_string,
189 char *input_N, int radix_E, char *input_E,
190 char *result_hex_str, int correct )
192 unsigned char message_str[1000];
193 unsigned char hash_result[1000];
194 unsigned char result_str[1000];
195 unsigned char output[1000];
239 void mbedtls_rsa_pkcs1_encrypt( char *message_hex_string, int padding_mode, int mod,
240 int radix_N, char *input_N, int radix_E, char *input_E,
241 char *result_hex_str, int result )
243 unsigned char message_str[1000];
244 unsigned char output[1000];
245 unsigned char output_str[1000];
270 TEST_ASSERT( strcasecmp( (char *) output_str, result_hex_str ) == 0 );
279 void rsa_pkcs1_encrypt_bad_rng( char *message_hex_string, int padding_mode,
280 int mod, int radix_N, char *input_N,
281 int radix_E, char *input_E,
282 char *result_hex_str, int result )
284 unsigned char message_str[1000];
285 unsigned char output[1000];
286 unsigned char output_str[1000];
308 TEST_ASSERT( strcasecmp( (char *) output_str, result_hex_str ) == 0 );
317 void mbedtls_rsa_pkcs1_decrypt( char *message_hex_string, int padding_mode, int mod,
318 int radix_P, char *input_P, int radix_Q, char *input_Q,
319 int radix_N, char *input_N, int radix_E, char *input_E,
320 int max_output, char *result_hex_str, int result )
322 unsigned char message_str[1000];
323 unsigned char output[1000];
324 unsigned char output_str[1000];
363 … TEST_ASSERT( strncasecmp( (char *) output_str, result_hex_str, strlen( result_hex_str ) ) == 0 );
373 void mbedtls_rsa_public( char *message_hex_string, int mod, int radix_N, char *input_N,
374 int radix_E, char *input_E, char *result_hex_str, int result )
376 unsigned char message_str[1000];
377 unsigned char output[1000];
378 unsigned char output_str[1000];
400 TEST_ASSERT( strcasecmp( (char *) output_str, result_hex_str ) == 0 );
417 TEST_ASSERT( strcasecmp( (char *) output_str, result_hex_str ) == 0 );
427 void mbedtls_rsa_private( char *message_hex_string, int mod, int radix_P, char *input_P,
428 int radix_Q, char *input_Q, int radix_N, char *input_N,
429 int radix_E, char *input_E, char *result_hex_str, int result )
431 unsigned char message_str[1000];
432 unsigned char output[1000];
433 unsigned char output_str[1000];
476 TEST_ASSERT( strcasecmp( (char *) output_str,
496 TEST_ASSERT( strcasecmp( (char *) output_str,
517 void mbedtls_rsa_check_pubkey( int radix_N, char *input_N, int radix_E, char *input_E,
541 void mbedtls_rsa_check_privkey( int mod, int radix_P, char *input_P, int radix_Q,
542 char *input_Q, int radix_N, char *input_N,
543 int radix_E, char *input_E, int radix_D, char *input_D,
544 int radix_DP, char *input_DP, int radix_DQ,
545 char *input_DQ, int radix_QP, char *input_QP,
594 void rsa_check_pubpriv( int mod, int radix_Npub, char *input_Npub,
595 int radix_Epub, char *input_Epub,
596 int radix_P, char *input_P, int radix_Q,
597 char *input_Q, int radix_N, char *input_N,
598 int radix_E, char *input_E, int radix_D, char *input_D,
599 int radix_DP, char *input_DP, int radix_DQ,
600 char *input_DQ, int radix_QP, char *input_QP,
667 const char *pers = "test_suite_rsa";
673 (const unsigned char *) pers, strlen( pers ) ) == 0 );