/mbedtls-development/tests/suites/ |
A D | test_suite_pkparse.function | 13 void pk_parse_keyfile_rsa( char * key_file, char * password, int result ) 27 TEST_ASSERT( res == result ); 43 void pk_parse_public_keyfile_rsa( char * key_file, int result ) 52 TEST_ASSERT( res == result ); 68 void pk_parse_public_keyfile_ec( char * key_file, int result ) 77 TEST_ASSERT( res == result ); 93 void pk_parse_keyfile_ec( char * key_file, char * password, int result ) 103 TEST_ASSERT( res == result ); 119 void pk_parse_key( data_t * buf, int result ) 126 mbedtls_test_rnd_std_rand, NULL ) == result );
|
A D | test_suite_nist_kw.function | 129 int is_wrap, int result ) 141 TEST_ASSERT( ret == result ); 248 unsigned char result[528]; 254 memset( result, '+', sizeof( result ) ); 261 result, &result_len, sizeof( result ) ) == 0 ); 271 TEST_ASSERT( result[i] == '+' ); 283 unsigned char result[528]; 289 memset( result, '+', sizeof( result ) ); 296 result, &result_len, sizeof( result ) ) == expected_ret ); 308 for( i = msg->len - 8; i < sizeof( result ); i++ ) [all …]
|
A D | test_suite_base64.function | 79 int dst_buf_size, int result ) 99 if( result == 0 ) 119 TEST_ASSERT( res == result ); 120 if( result == 0 ) 129 int result ) 144 if( result == 0 ) 157 int result ) 165 strlen( src ) ) == result ); 166 if( result == 0 ) 178 void base64_decode_hex_src( data_t * src, char * dst_ref, int result ) [all …]
|
A D | test_suite_timing.function | 34 int result; 38 result = mbedtls_timing_get_delay( &ctx ); 39 TEST_ASSERT( result == -1 ); 44 result = mbedtls_timing_get_delay( &ctx ); 45 TEST_ASSERT( result >= 0 && result <= 2 );
|
A D | test_suite_pkcs1_v21.function | 14 data_t * result_str, int result ) 44 output ) == result ); 45 if( result == 0 ) 60 int result ) 95 NULL, 0 ) == result ); 105 if( result == 0 ) 123 int result ) 164 output ) == result ); 165 if( result == 0 ) 177 fixed_salt_length, output ) == result ); [all …]
|
A D | test_suite_entropy.function | 319 if( result >= 0 ) 325 result *= 2; 327 TEST_ASSERT( weak.calls == (size_t) result ); 331 TEST_ASSERT( ret == result ); 342 int result ) 345 * if result >= 0: result = expected number of calls to source 1 346 * if result < 0: result = expected return code from mbedtls_entropy_func() 367 if( result >= 0 ) 373 result *= 2; 379 TEST_ASSERT( ret == result ); [all …]
|
A D | test_suite_mpi.function | 239 if( result == 0) 271 if( result == 0) 301 TEST_ASSERT( ret == result ); 303 if( result == 0 ) 374 if( result == 0 ) 661 /* result == first operand */ 1271 mbedtls_mpi result; 1282 mbedtls_mpi_init( &result ); 1364 mbedtls_mpi_free( &result ); 1373 mbedtls_mpi result; [all …]
|
A D | test_suite_x509parse.function | 581 TEST_ASSERT( ret == result ); 652 TEST_ASSERT( res == ( result ) ); 664 TEST_ASSERT( res == ( result ) ); 842 if( ( result ) == 0 ) 858 if( ( result ) == 0 ) 877 if( ( result ) == 0 ) 894 if( ( result ) == 0 ) 931 if( ( result ) == 0 ) 948 if( ( result ) == 0 ) 976 if( ( result ) == 0 ) [all …]
|
A D | test_suite_rsa.function | 120 if( result == 0 ) 285 if( result == 0 ) 327 if( result == 0 ) 381 if( result == 0 ) 422 if( result == 0 ) 438 if( result == 0 ) 457 int result ) 492 if( result == 0 ) 512 if( result == 0 ) 634 int result ) [all …]
|
A D | test_suite_aria.function | 176 int result ) 189 == result ); 202 int result ) 215 == result ); 228 int result ) 241 == result ); 254 int result ) 267 == result );
|
A D | test_suite_pkcs1_v15.function | 15 data_t * result_str, int result ) 45 output ) == result ); 47 if( result == 0 ) 65 int result ) 99 NULL, 0 ) == result ); 107 output, 1000 ) == result ); 108 if( result == 0 ) 269 data_t * result_str, int result ) 308 output ) == result ); 309 if( result == 0 ) [all …]
|
A D | test_suite_ccm.function | 89 TEST_ASSERT( ret == result ); 187 const size_t expected_tag_len = result->len - msg->len; 188 const uint8_t* expected_tag = result->x + msg->len; 208 const data_t encrypted_expected = { .x = result->x, 249 TEST_EQUAL( result->len, olen ); 250 ASSERT_COMPARE( output, olen, result->x, result->len ); 283 if( result == 0 ) 494 TEST_EQUAL( msg->len, result->len ); 501 ASSERT_ALLOC( output, result->len ); 504 TEST_EQUAL( result->len, olen ); [all …]
|
A D | test_suite_ctr_drbg.function | 31 data_t * result ) 67 /* CTR_DRBG_Generate(result->len * 8 bits, add1[:add1->len]) -> buf */ 71 buf, result->len, 84 /* CTR_DRBG_Generate(result->len * 8 bits, add2->x[:add2->len]) -> buf */ 88 buf, result->len, 90 TEST_ASSERT( memcmp( buf, result->x, result->len ) == 0 );
|
A D | test_suite_version.function | 68 void check_feature( char *feature, int result ) 71 TEST_ASSERT( check == result );
|
/mbedtls-development/tests/scripts/ |
A D | run-test-suites.pl | 101 my $result = `$command`; 103 $suite_cases_passed = () = $result =~ /.. PASS/g; 104 $suite_cases_failed = () = $result =~ /.. FAILED/g; 105 $suite_cases_skipped = () = $result =~ /.. ----/g; 111 print $result; 119 print $result; 124 my ($passed, $tests, $skipped) = $result =~ /([0-9]*) \/ ([0-9]*) tests.*?([0-9]*) skipped/;
|
A D | list_internal_identifiers.py | 46 result = name_check.parse_identifiers([ 50 result.sort(key=lambda x: x.name) 52 identifiers = ["{}\n".format(match.name) for match in result]
|
A D | analyze_outcomes.py | 100 (platform, config, suite, case, result, _cause) = line.split(';') 105 if result == 'PASS': 107 elif result == 'FAIL':
|
/mbedtls-development/programs/pkey/ |
A D | pk_decrypt.c | 68 unsigned char result[1024]; in main() local 77 memset(result, 0, sizeof( result ) ); in main() 137 if( ( ret = mbedtls_pk_decrypt( &pk, buf, i, result, &olen, sizeof(result), in main() 147 mbedtls_printf( "The decrypted result is: '%s'\n\n", result ); in main()
|
A D | rsa_decrypt.c | 68 unsigned char result[1024]; in main() local 73 memset(result, 0, sizeof( result ) ); in main() 177 buf, result, 1024 ); in main() 187 mbedtls_printf( "The decrypted result is: '%s'\n\n", result ); in main()
|
/mbedtls-development/tests/src/ |
A D | helpers.c | 66 if( mbedtls_test_info.result == MBEDTLS_TEST_RESULT_FAILED ) in mbedtls_test_fail() 72 mbedtls_test_info.result = MBEDTLS_TEST_RESULT_FAILED; in mbedtls_test_fail() 80 mbedtls_test_info.result = MBEDTLS_TEST_RESULT_SKIPPED; in mbedtls_test_skip() 93 mbedtls_test_info.result = MBEDTLS_TEST_RESULT_SUCCESS; in mbedtls_test_info_reset() 107 if( mbedtls_test_info.result == MBEDTLS_TEST_RESULT_FAILED ) in mbedtls_test_equal()
|
A D | random.c | 117 unsigned char result[4], *out = output; in mbedtls_test_rnd_pseudo_rand() local 138 PUT_UINT32_BE( info->v0, result, 0 ); in mbedtls_test_rnd_pseudo_rand() 139 memcpy( out, result, use_len ); in mbedtls_test_rnd_pseudo_rand()
|
/mbedtls-development/3rdparty/ |
A D | CMakeLists.txt | 1 …./include/mbedtls/mbedtls_config.h get MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED RESULT_VARIABLE result) 3 if(${result} EQUAL 0)
|
/mbedtls-development/programs/test/ |
A D | selftest.c | 193 int result; in create_entropy_seed_file() local 199 result = mbedtls_platform_std_nv_seed_read( seed_value, in create_entropy_seed_file() 201 if( 0 == result ) in create_entropy_seed_file() 204 result = mbedtls_platform_entropy_poll( NULL, in create_entropy_seed_file() 208 if( 0 != result ) in create_entropy_seed_file()
|
/mbedtls-development/include/mbedtls/ |
A D | platform_util.h | 145 #define MBEDTLS_IGNORE_RETURN(result) ( (void) !( result ) ) argument
|
/mbedtls-development/scripts/ |
A D | code_size_compare.py | 61 result = subprocess.check_output(["git", "rev-parse", "--verify", 63 return result 99 result = subprocess.check_output( 102 size_text = result.decode()
|