/mbedtls-latest/programs/psa/ |
D | key_ladder_demo.c | 360 wrapped_data_header_t header; in wrap_data() local 395 memcpy(&header.magic, WRAPPED_DATA_MAGIC, WRAPPED_DATA_MAGIC_LENGTH); in wrap_data() 396 header.ad_size = sizeof(header); in wrap_data() 397 header.payload_size = input_size; in wrap_data() 400 PSA_CHECK(psa_generate_random(header.iv, WRAPPING_IV_SIZE)); in wrap_data() 402 header.iv, WRAPPING_IV_SIZE, in wrap_data() 403 (uint8_t *) &header, sizeof(header), in wrap_data() 412 SYS_CHECK(fwrite(&header, 1, sizeof(header), in wrap_data() 413 output_file) == sizeof(header)); in wrap_data() 445 wrapped_data_header_t header; in unwrap_data() local [all …]
|
/mbedtls-latest/library/ |
D | psa_its_file.c | 79 psa_its_file_header_t header; in psa_its_read_file() local 92 n = fread(&header, 1, sizeof(header), *p_stream); in psa_its_read_file() 93 if (n != sizeof(header)) { in psa_its_read_file() 96 if (memcmp(header.magic, PSA_ITS_MAGIC_STRING, in psa_its_read_file() 101 p_info->size = MBEDTLS_GET_UINT32_LE(header.size, 0); in psa_its_read_file() 102 p_info->flags = MBEDTLS_GET_UINT32_LE(header.flags, 0); in psa_its_read_file() 187 psa_its_file_header_t header; in psa_its_set() local 190 memcpy(header.magic, PSA_ITS_MAGIC_STRING, PSA_ITS_MAGIC_LENGTH); in psa_its_set() 191 MBEDTLS_PUT_UINT32_LE(data_length, header.size, 0); in psa_its_set() 192 MBEDTLS_PUT_UINT32_LE(create_flags, header.flags, 0); in psa_its_set() [all …]
|
D | pem.c | 268 int mbedtls_pem_read_buffer(mbedtls_pem_context *ctx, const char *header, const char *footer, in mbedtls_pem_read_buffer() argument 288 s1 = (unsigned char *) strstr((const char *) data, header); in mbedtls_pem_read_buffer() 300 s1 += strlen(header); in mbedtls_pem_read_buffer() 498 int mbedtls_pem_write_buffer(const char *header, const char *footer, in mbedtls_pem_write_buffer() argument 507 add_len = strlen(header) + strlen(footer) + (((use_len > 2) ? (use_len - 2) : 0) / 64) + 1; in mbedtls_pem_write_buffer() 525 memcpy(p, header, strlen(header)); in mbedtls_pem_write_buffer() 526 p += strlen(header); in mbedtls_pem_write_buffer()
|
D | entropy.c | 127 unsigned char header[2]; in entropy_update() local 142 header[0] = source_id; in entropy_update() 143 header[1] = use_len & 0xFF; in entropy_update() 162 if ((ret = mbedtls_md_update(&ctx->accumulator, header, 2)) != 0) { in entropy_update()
|
D | CMakeLists.txt | 325 # Include public header files from /include and other directories 326 # declared by /3rdparty/**/CMakeLists.txt. Include private header files
|
/mbedtls-latest/programs/test/ |
D | generate_cpp_dummy_build.sh | 28 * This program is a dummy C++ program to ensure Mbed TLS library header files 40 for header in include/mbedtls/*.h include/psa/*.h; do 41 case ${header#include/} in
|
/mbedtls-latest/tests/suites/ |
D | test_suite_entropy.function | 476 unsigned char header[2]; 511 header[1] = MBEDTLS_ENTROPY_BLOCK_SIZE; 515 header[0] = 0; 517 TEST_ASSERT(mbedtls_md_update(&accumulator, header, 2) == 0); 530 header[0] = MBEDTLS_ENTROPY_SOURCE_MANUAL; 531 TEST_ASSERT(mbedtls_md_update(&accumulator, header, 2) == 0); 535 header[0] = 0; 536 TEST_ASSERT(mbedtls_md_update(&accumulator, header, 2) == 0);
|
D | test_suite_psa_its.data | 70 Overwrite ITS header magic 73 Truncate ITS header
|
D | test_suite_pem.function | 65 void mbedtls_pem_read_buffer(char *header, char *footer, char *data, 78 ret = mbedtls_pem_read_buffer(&ctx, header, footer, (unsigned char *) data,
|
D | test_suite_memory_buffer_alloc.data | 19 Memory buffer: heap too small (header verification should fail)
|
D | test_suite_memory_buffer_alloc.function | 242 * "FATAL: verification of first header failed".
|
D | test_suite_psa_crypto_persistent_key.data | 30 Parse storage: truncated header
|
/mbedtls-latest/tests/scripts/ |
D | check_names.py | 387 with open(header_file, "r", encoding="utf-8") as header: 388 for line_no, line in enumerate(header): 461 with open(header_file, "r", encoding="utf-8") as header: 462 for line_no, line in enumerate(header): 577 with open(header_file, "r", encoding="utf-8") as header: 584 for line_no, line in enumerate(header):
|
D | test_psa_constant_names.py | 31 for header in headers: 32 inputs.parse_header(header) 55 header='#include <psa/crypto.h>',
|
/mbedtls-latest/docs/proposed/ |
D | psa-driver-developer-guide.md | 26 …Depending on the driver type, you may also need to define some C types and macros in a header file. 33 * C header files defining the types required by the driver description. The names of these header f… 43 …g) can include complex preprocessor definitions to conditionally include header files for a given …
|
D | psa-conditional-inclusion-c.md | 135 …header file `mbedtls/mbedtls_config.h` needs to define all the `MBEDTLS_xxx_C` configuration symbo… 141 …ols defined (or not) in `mbedtls/mbedtls_config.h`. Furthermore, the new header file **`mbedtls/co… 145 …bed TLS, `mbedtls/config_psa.h` must be included via an already existing header that is not `mbedt… 149 …et or not, `mbedtls/config_psa.h` includes `mbedtls/crypto_drivers.h`, a header file generated by … 171 The header file **`library/psa_check_config.h`** applies sanity checks to the configuration, throwi…
|
/mbedtls-latest/include/mbedtls/ |
D | pem.h | 92 int mbedtls_pem_read_buffer(mbedtls_pem_context *ctx, const char *header, const char *footer, 151 int mbedtls_pem_write_buffer(const char *header, const char *footer,
|
/mbedtls-latest/docs/ |
D | psa-driver-example-and-guide.md | 43 …- C header files defining the types required by the driver description. The names of these header … 46 …ripts/data_files/driver_jsons/mbedtls_test_transparent_driver.json). The header file required by t… 55 **2. Include the following in one of the driver header files:** 67 **3. Conditionally include header files required by the driver** 68 Include any header files required by the driver in `psa_crypto_driver_wrappers.h`, placing the `#in… 137 …ations in a separate header file, then use `config.py`, to set `MBEDTLS_USER_CONFIG_FILE`, providi…
|
/mbedtls-latest/scripts/ |
D | assemble_changelog.py | 242 (self.header, 249 offset = (self.header + self.top_version_title).count('\n') + 1 264 out.write(self.header)
|
/mbedtls-latest/scripts/data_files/driver_templates/ |
D | psa_crypto_driver_wrappers_no_static.c.jinja | 33 {% for header in driver.headers -%} 34 #include "{{ header }}"
|
/mbedtls-latest/tests/ |
D | CMakeLists.txt | 299 # Include test-specific header files from ./include and private header 300 # files (used by some invasive tests) from ../library. Public header
|
/mbedtls-latest/docs/architecture/ |
D | psa-crypto-implementation-structure.md | 52 …header file, the non-static ones are generated in a psa_crypto_driver_wrappers_no_static.c C file … 73 An Mbed TLS PSA driver C file is named psa_crypto_<driver_name>.c and its associated header file ps… 152 …te them on the stack. Therefore these structures are defined in a public header: `include/psa/cryp…
|
D | alternative-implementations.md | 6 …ase consult the documentation of individual modules and read the library header files for more det… 38 * Create a header file `xxx_alt.h` that defines the context type(s) used by the module. For example…
|
D | mbed-crypto-storage-specification.md | 43 The code uses the following constant in an internal header (note that despite the name, this value … 189 * Magic header (8 bytes): `"PSA\0ITS\0"` 396 * Magic header (8 bytes): `"PSA\0ITS\0"`
|
/mbedtls-latest/docs/architecture/testing/ |
D | invasive-testing.md | 34 …nternal header files from `library/`. Do not define non-public interfaces in public headers. In co… 36 …I. Declare such functions in `library/*.h` and include the corresponding header in the test code. … 71 … or to a function that does nothing. The global variable is defined in a header in the `library` d…
|