Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 121) sorted by relevance

12345

/mbedtls-3.5.0/library/
Ddebug.c46 const char *file, int line, in debug_send_line() argument
57 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, idstr); in debug_send_line()
59 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, str); in debug_send_line()
65 const char *file, int line, in mbedtls_debug_print_msg() argument
88 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_msg()
92 const char *file, int line, in mbedtls_debug_print_ret() argument
116 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_ret()
120 const char *file, int line, const char *text, in mbedtls_debug_print_buf() argument
137 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_buf()
149 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_buf()
[all …]
Dplatform.c307 FILE *file; in mbedtls_platform_std_nv_seed_read() local
310 if ((file = fopen(MBEDTLS_PLATFORM_STD_NV_SEED_FILE, "rb")) == NULL) { in mbedtls_platform_std_nv_seed_read()
315 mbedtls_setbuf(file, NULL); in mbedtls_platform_std_nv_seed_read()
317 if ((n = fread(buf, 1, buf_len, file)) != buf_len) { in mbedtls_platform_std_nv_seed_read()
318 fclose(file); in mbedtls_platform_std_nv_seed_read()
323 fclose(file); in mbedtls_platform_std_nv_seed_read()
329 FILE *file; in mbedtls_platform_std_nv_seed_write() local
332 if ((file = fopen(MBEDTLS_PLATFORM_STD_NV_SEED_FILE, "w")) == NULL) { in mbedtls_platform_std_nv_seed_write()
337 mbedtls_setbuf(file, NULL); in mbedtls_platform_std_nv_seed_write()
339 if ((n = fwrite(buf, 1, buf_len, file)) != buf_len) { in mbedtls_platform_std_nv_seed_write()
[all …]
Dentropy_poll.c161 FILE *file; in mbedtls_platform_entropy_poll() local
180 ((void) file); in mbedtls_platform_entropy_poll()
191 file = fopen("/dev/urandom", "rb"); in mbedtls_platform_entropy_poll()
192 if (file == NULL) { in mbedtls_platform_entropy_poll()
197 mbedtls_setbuf(file, NULL); in mbedtls_platform_entropy_poll()
199 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-3.5.0/docs/architecture/
Dmbed-crypto-storage-specification.md21 * [PSA ITS](#file-namespace-on-its-for-0.1.0)
22 * [C stdio](#file-namespace-on-stdio-for-0.1.0)
26 * [Persistent transparent keys](#key-file-format-for-0.1.0) designated by a [slot number](#key-name…
27 * [Nonvolatile random seed](#nonvolatile-random-seed-file-format-for-0.1.0) on ITS only.
31 …olatile random seed file produced with Mbed OS 5.11.x and is upgraded to a later version of Mbed O…
33 We do not make any promises regarding key storage, or regarding the nonvolatile random seed file on…
37file whose name is constructed from the key identifier. The way in which the file name is construc…
47 ### Key file format for 0.1.0
51 The layout of a key file is:
62 ### Nonvolatile random seed file format for 0.1.0
[all …]
/mbedtls-3.5.0/tests/suites/
Dtest_suite_hmac_drbg.misc.data21 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]
35 hmac_drbg_seed_file:MBEDTLS_MD_SHA224:"no_such_dir/file":MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR
37 HMAC_DRBG write/update seed file SHA-256 [#1]
41 HMAC_DRBG write/update seed file SHA-256 [#2]
43 hmac_drbg_seed_file:MBEDTLS_MD_SHA256:"no_such_dir/file":MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR
45 HMAC_DRBG write/update seed file SHA-384 [#1]
[all …]
Dtest_suite_debug.function12 void string_debug(void *data, int level, const char *file, int line, const char *str)
18 memcpy(p, file, strlen(file));
19 p += strlen(file);
55 void debug_print_msg_threshold(int threshold, int level, char *file,
78 mbedtls_debug_print_msg(&ssl, level, file, line,
90 void mbedtls_debug_print_ret(char *file, int line, char *text, int value,
111 mbedtls_debug_print_ret(&ssl, 0, file, line, text, value);
122 void mbedtls_debug_print_buf(char *file, int line, char *text,
143 mbedtls_debug_print_buf(&ssl, 0, file, line, text, data->x, data->len);
154 void mbedtls_debug_print_crt(char *crt_file, char *file, int line,
[all …]
Dtest_suite_net.function22 /** 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
116 * file descriptors greater or equal to FD_SETSIZE. So we expect to hit
Dtest_suite_entropy.data10 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
Dhost_test.function85 " files... One or more test data files. If no file is\n" \
87 " file is used:\n" \
97 * \brief Read a line from the passed file pointer.
339 /** \brief Write the description of the test case to the outcome CSV file.
341 * \param outcome_file The file to write to.
381 * Ignore errors: writing the outcome file is on a best-effort basis. */
386 /** \brief Write the result of the test case to the outcome CSV file.
388 * \param outcome_file The file to write to.
409 * Ignore errors: writing the outcome file is on a best-effort basis. */
459 * supplied or default data file.
[all …]
Dmain_test.function5 * This file has been machine generated using the script:
8 * Test file : __MBEDTLS_TEST_TEMPLATE__TEST_FILE
10 * The following files were used to create this file.
12 * Main code file : __MBEDTLS_TEST_TEMPLATE__TEST_MAIN_FILE
13 * Platform code file : __MBEDTLS_TEST_TEMPLATE__TEST_PLATFORM_FILE
14 * Helper file : __MBEDTLS_TEST_TEMPLATE__TEST_COMMON_HELPER_FILE
15 * Test suite file : __MBEDTLS_TEST_TEMPLATE__TEST_CASE_FILE
233 extern void (*mbedtls_test_hook_test_fail)(const char *test, int line, const char *file);
Dtest_suite_psa_its.function3 /* 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
50 * We ignore the error if the file exists but remove() fails because
51 * it can't be checked portably (except by attempting to open the file
53 * remove() on an existing file is very unlikely anyway and would not
162 "Content of file 0x%08lx", (unsigned long) uid);
168 "Content of file 0x%08lx", (unsigned long) uid);
260 /* Overwrite the 1st byte of the file, the ITS magic number */
266 /* Reopen file and truncate it to 0 byte by specifying the 'w' flag */
278 /* Check if the file is really deleted. */
Dtest_suite_md.data296 generic MD5 Hash file #1
300 generic MD5 Hash file #2
304 generic MD5 Hash file #3
308 generic MD5 Hash file #4
312 generic RIPEMD160 Hash file #0 (from paper)
316 generic RIPEMD160 Hash file #1
320 generic RIPEMD160 Hash file #2
324 generic RIPEMD160 Hash file #3
328 generic RIPEMD160 Hash file #4
940 generic SHA1 Hash file #1
[all …]
/mbedtls-3.5.0/docs/architecture/testing/
Dtest-framework.md13 … 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-3.5.0/scripts/
Dgenerate_driver_wrappers.py74 with open(file=os.path.join(output_dir, "psa_crypto_driver_wrappers.c"),
97 " for driver " + driver_prefix, str(err), file=sys.stderr)
107 " ".format(driverjson_data, _schema, str(err)), file=sys.stderr)
113 with open(file=driver_file, mode='r', encoding='UTF-8') as f:
140 with open(file=file_path, mode='r', encoding='UTF-8') as file:
141 driver_schema[key] = json.load(file)
153 with open(file=os.path.join(json_directory, jsondriver_list),
163 def trace_exception(e: Exception, file=sys.stderr) -> None: argument
167 ), file)
Dgenerate_errors.pl66 foreach my $file (@files) {
67 open(FILE, '<:crlf', $file) or die("$0: $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-3.5.0/include/mbedtls/
Ddebug.h171 const char *file, int line,
190 const char *file, int line,
211 const char *file, int line, const char *text,
232 const char *file, int line,
254 const char *file, int line,
275 const char *file, int line,
303 const char *file, int line,
Derror.h154 const char *file, int line) in mbedtls_error_add() argument
158 (*mbedtls_test_hook_error_add)(high, low, file, line); in mbedtls_error_add()
161 (void) file; in mbedtls_error_add()
/mbedtls-3.5.0/docs/proposed/
Dpsa-driver-wrappers-codegen-migration-guide.md1 Migrating to an auto generated psa_crypto_driver_wrappers.c file
6 This document describes how to migrate to the auto generated psa_crypto_driver_wrappers.c file.
24 …a2 ) to render templates based on drivers that are defined using a Driver description JSON file(s).
31 (2) The auto generation is based on the template file at **scripts/data_files/driver_templates/psa_…
32 (3) The driver JSONS to be used for generating the psa_crypto_driver_wrappers.c file can be found a…
33 …es a need to patch psa_crypto_driver_wrappers.c file, the user will need to patch into the templat…
40 The JSON file 'driverlist.json' is meant to be edited by the user to reflect the drivers one wants …
Dpsa-driver-developer-guide.md25file**. 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-3.5.0/tests/src/
Dhelpers.c304 const char *file, int line) in mbedtls_test_err_add_check() argument
323 line, file); in mbedtls_test_err_add_check()
329 line, file); in mbedtls_test_err_add_check()
335 line, file); in mbedtls_test_err_add_check()
341 line, file); in mbedtls_test_err_add_check()
344 line, file); in mbedtls_test_err_add_check()
/mbedtls-3.5.0/tests/
DCMakeLists.txt17 file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/suites)
56 # Derive generated file paths in the build directory. The generated data
65 foreach(file ${base_bignum_generated_data_files})
66 list(APPEND bignum_generated_data_files ${CMAKE_CURRENT_BINARY_DIR}/suites/${file})
68 foreach(file ${base_ecp_generated_data_files})
69 list(APPEND ecp_generated_data_files ${CMAKE_CURRENT_BINARY_DIR}/suites/${file})
71 foreach(file ${base_psa_generated_data_files})
72 list(APPEND psa_generated_data_files ${CMAKE_CURRENT_BINARY_DIR}/suites/${file})
132 foreach(file ${all_generated_data_files})
133 link_to_source(${file})
[all …]
/mbedtls-3.5.0/programs/pkey/
Dgen_key.c46 FILE *file; in dev_random_entropy_poll() local
53 file = fopen("/dev/random", "rb"); in dev_random_entropy_poll()
54 if (file == NULL) { in dev_random_entropy_poll()
60 ret = fread(p, 1, left, file); in dev_random_entropy_poll()
61 if (ret == 0 && ferror(file)) { in dev_random_entropy_poll()
62 fclose(file); in dev_random_entropy_poll()
70 fclose(file); in dev_random_entropy_poll()
/mbedtls-3.5.0/tests/scripts/
Dgen_gcm_encrypt.pl23 my $file = shift;
25 open(TEST_DATA, "$file") or die "Opening test cases '$file': $!";
Dgen_pkcs1_v21_sign_verify.pl20 my $file = shift;
22 open(TEST_DATA, "$file") or die "Opening test cases '$file': $!";
Dgen_gcm_decrypt.pl23 my $file = shift;
25 open(TEST_DATA, "$file") or die "Opening test cases '$file': $!";

12345