/mbedtls-development/library/ |
A D | debug.c | 79 const char *file, int line, in mbedtls_debug_print_msg() argument 104 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_msg() 108 const char *file, int line, in mbedtls_debug_print_ret() argument 132 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_ret() 154 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_buf() 196 const char *file, int line, in mbedtls_debug_print_ecp() argument 219 const char *file, int line, in mbedtls_debug_print_mpi() argument 239 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_mpi() 288 debug_send_line( ssl, level, file, line, in debug_print_pk() 309 debug_send_line( ssl, level, file, line, in debug_print_pk() [all …]
|
A D | platform.c | 285 FILE *file; in mbedtls_platform_std_nv_seed_read() local 288 if( ( file = fopen( MBEDTLS_PLATFORM_STD_NV_SEED_FILE, "rb" ) ) == NULL ) in mbedtls_platform_std_nv_seed_read() 291 if( ( n = fread( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_read() 293 fclose( file ); in mbedtls_platform_std_nv_seed_read() 298 fclose( file ); in mbedtls_platform_std_nv_seed_read() 304 FILE *file; in mbedtls_platform_std_nv_seed_write() local 307 if( ( file = fopen( MBEDTLS_PLATFORM_STD_NV_SEED_FILE, "w" ) ) == NULL ) in mbedtls_platform_std_nv_seed_write() 310 if( ( n = fwrite( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_write() 312 fclose( file ); in mbedtls_platform_std_nv_seed_write() 316 fclose( file ); in mbedtls_platform_std_nv_seed_write()
|
A D | entropy_poll.c | 164 FILE *file; in mbedtls_platform_entropy_poll() local 184 ((void) file); in mbedtls_platform_entropy_poll() 194 file = fopen( "/dev/urandom", "rb" ); in mbedtls_platform_entropy_poll() 195 if( file == NULL ) in mbedtls_platform_entropy_poll() 198 read_len = fread( output, 1, len, file ); in mbedtls_platform_entropy_poll() 201 fclose( file ); in mbedtls_platform_entropy_poll() 205 fclose( file ); in mbedtls_platform_entropy_poll()
|
/mbedtls-development/docs/architecture/ |
A D | mbed-crypto-storage-specification.md | 47 ### Key file format for 0.1.0 51 The layout of a key file is: 117 ### Key file format for 1.0.0 172 ### Key file format for 1.1.0 183 The layout of a key file is: 238 ### Key file format for TBD 242 The layout of a key file is: 258 ### Transaction file format for TBD 266 The layout of a transaction file is: 297 ### Key file format for TBD [all …]
|
/mbedtls-development/tests/suites/ |
A D | test_suite_hmac_drbg.misc.data | 21 HMAC_DRBG write/update seed file SHA-1 [#1] 25 HMAC_DRBG write/update seed file SHA-1 [#2] 27 hmac_drbg_seed_file:MBEDTLS_MD_SHA1:"no_such_dir/file":MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR 29 HMAC_DRBG write/update seed file SHA-224 [#1] 33 HMAC_DRBG write/update seed file SHA-224 [#2] 37 HMAC_DRBG write/update seed file SHA-256 [#1] 41 HMAC_DRBG write/update seed file SHA-256 [#2] 45 HMAC_DRBG write/update seed file SHA-384 [#1] 49 HMAC_DRBG write/update seed file SHA-384 [#2] 53 HMAC_DRBG write/update seed file SHA-512 [#1] [all …]
|
A D | test_suite_debug.function | 11 void string_debug(void *data, int level, const char *file, int line, const char *str) 17 memcpy( p, file, strlen( file ) ); 18 p += strlen( file ); 51 void debug_print_msg_threshold( int threshold, int level, char * file, 74 mbedtls_debug_print_msg( &ssl, level, file, line, 86 void mbedtls_debug_print_ret( char * file, int line, char * text, int value, 107 mbedtls_debug_print_ret( &ssl, 0, file, line, text, value); 118 void mbedtls_debug_print_buf( char * file, int line, char * text, 150 void mbedtls_debug_print_crt( char * crt_file, char * file, int line, 174 mbedtls_debug_print_crt( &ssl, 0, file, line, prefix, &crt); [all …]
|
A D | test_suite_entropy.data | 10 Entropy write/update seed file: good 13 Entropy write/update seed file: nonexistent 14 entropy_seed_file:"no_such_dir/file":MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR 16 Entropy write/update seed file: base NV seed file
|
A D | test_suite_net.function | 22 /** Open a file on the given file descriptor. 28 * On success, it refers to the opened file (\p wanted_fd). 29 * \param wanted_fd The desired file descriptor. 77 /* Test that mbedtls_net_poll does not misbehave when given a file 90 /* On many systems, by default, the maximum permitted file descriptor 94 * If the limit can't be raised, a file descriptor opened by the 97 * A file descriptor could still be higher than FD_SETSIZE if it was 117 * file descriptors greater or equal to FD_SETSIZE. So we expect to hit
|
A D | host_test.function | 92 " file is used:\n" \ 377 * \param outcome_file The file to write to. 423 * \param outcome_file The file to write to. 496 * supplied or default data file. 519 FILE *file; 619 file = fopen( test_filename, "r" ); 620 if( file == NULL ) 629 while( !feof( file ) ) 793 fclose( file ); 799 fclose( file ); [all …]
|
A D | test_suite_psa_its.function | 3 /* This test file is specific to the ITS implementation in PSA Crypto 4 * on top of stdio. It expects to know what the stdio name of a file is 45 * We ignore the error if the file exists but remove() fails because 46 * it can't be checked portably (except by attempting to open the file 48 * remove() on an existing file is very unlikely anyway and would not 158 "Content of file 0x%08lx", (unsigned long) uid ); 165 "Content of file 0x%08lx", (unsigned long) uid ); 257 /* Overwrite the 1st byte of the file, the ITS magic number */ 264 /* Reopen file and truncate it to 0 byte by specifying the 'w' flag */ 276 /* Check if the file is really deleted. */
|
A D | main_test.function | 5 * This file has been machine generated using the script: 8 * Test file : $test_file 10 * The following files were used to create this file. 12 * Main code file : $test_main_file 13 * Platform code file : $test_platform_file 14 * Helper file : $test_common_helper_file 15 * Test suite file : $test_case_file 241 extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const char * file );
|
A D | test_suite_psa_crypto_persistent_key.data | 82 import/export persistent raw key file not exist: 1 byte 85 import/export persistent key RSA public key file not exist: 1024-bit 89 import/export persistent key RSA keypair file not exist: 1024-bit 108 import/export persistent raw key file not exist with restart: 1 byte 111 import/export persistent key RSA public key file not exist with restart: 1024-bit 115 import/export persistent key RSA keypair file not exist with restart: 1024-bit
|
/mbedtls-development/docs/architecture/testing/ |
A D | test-framework.md | 13 … the test does. The first non-comment line of each paragraph in a `.data` file is the test descrip… 16 … that process test descriptions (`generate_test_code.py`, [outcome file](#outcome-file) tools) sim… 17 * Test descriptions must be unique within a `.data` file. If you can't think of a better descriptio… 18 …a failure log to the test data. Avoid confusion between cases in the [outcome file](#outcome-file). 39 ### Outcome file 41 #### Generating an outcome file argument 43 … outcome file**. This feature is enabled if the environment variable `MBEDTLS_TEST_OUTCOME_FILE` i… 45 If you run `all.sh --outcome-file test-outcome.csv`, this collects the outcome of all the test case… 47 #### Outcome file format argument 49 The outcome file is in a CSV format using `;` (semicolon) as the delimiter and no quoting. This mea… [all …]
|
/mbedtls-development/include/mbedtls/ |
A D | debug.h | 169 const char *file, int line, 188 const char *file, int line, 209 const char *file, int line, const char *text, 230 const char *file, int line, 252 const char *file, int line, 273 const char *file, int line, 302 const char *file, int line,
|
A D | error.h | 157 const char *file, int line ) in mbedtls_error_add() argument 161 ( *mbedtls_test_hook_error_add )( high, low, file, line ); in mbedtls_error_add() 163 (void)file; in mbedtls_error_add()
|
/mbedtls-development/tests/src/ |
A D | helpers.c | 234 const char *file, int line ) in mbedtls_test_err_add_check() argument 254 line, file ); in mbedtls_test_err_add_check() 262 line, file ); in mbedtls_test_err_add_check() 270 line, file ); in mbedtls_test_err_add_check() 278 line, file ); in mbedtls_test_err_add_check() 283 line, file ); in mbedtls_test_err_add_check()
|
/mbedtls-development/scripts/ |
A D | generate_errors.pl | 66 foreach my $file (@files) { 67 open(FILE, '<:crlf', "$file"); 89 die "Description neither before nor after $name in $file\n" 91 die "Description both before and after $name in $file\n" 101 my $include_name = $file;
|
/mbedtls-development/tests/scripts/ |
A D | gen_gcm_encrypt.pl | 23 my $file = shift; 25 open(TEST_DATA, "$file") or die "Opening test cases '$file': $!";
|
A D | gen_pkcs1_v21_sign_verify.pl | 20 my $file = shift; 22 open(TEST_DATA, "$file") or die "Opening test cases '$file': $!";
|
A D | gen_gcm_decrypt.pl | 23 my $file = shift; 25 open(TEST_DATA, "$file") or die "Opening test cases '$file': $!";
|
A D | gen_ctr_drbg.pl | 24 my $file = shift; 26 open(TEST_DATA, "$file") or die "Opening test cases '$file': $!";
|
A D | check-doxy-blocks.pl | 63 for my $file (<$dirname/*.[ch]>) { 64 check_file($file);
|
/mbedtls-development/docs/proposed/ |
A D | psa-driver-developer-guide.md | 25 …file**. The driver description file declares which functions the driver implements and what crypto… 27 The concrete syntax for a driver description file is JSON. The structure of this JSON file is speci… 31 * A driver description file (in JSON format). 32 …the driver description. The names of these header files is declared in the driver description file. 33 * An object file compiled for the target platform defining the functions required by the driver des…
|
/mbedtls-development/programs/pkey/ |
A D | gen_key.c | 55 FILE *file; in dev_random_entropy_poll() local 62 file = fopen( "/dev/random", "rb" ); in dev_random_entropy_poll() 63 if( file == NULL ) in dev_random_entropy_poll() 69 ret = fread( p, 1, left, file ); in dev_random_entropy_poll() 70 if( ret == 0 && ferror( file ) ) in dev_random_entropy_poll() 72 fclose( file ); in dev_random_entropy_poll() 80 fclose( file ); in dev_random_entropy_poll()
|
/mbedtls-development/doxygen/ |
A D | mbedtls.doxyfile | 157 # (but less readable) file names. This can be useful if your file system 396 # 'anonymous_namespace{file}', where file will be replaced with the base 441 # in case and if your file system supports case sensitive file names. Windows 454 # of that file. 581 # the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file 936 # files. In the HTML_STYLESHEET file, use the file name only. Also note that 1034 # be used to specify the file name of the resulting .chm file. You 1078 # be used to specify the file name of the resulting .qch file. 1119 # .qhp file. 1792 # file showing the direct and indirect include dependencies of the file with [all …]
|