/mbedtls-development/library/ |
A D | psa_its_file.c | 96 psa_its_file_header_t header; in psa_its_read_file() local 105 n = fread( &header, 1, sizeof( header ), *p_stream ); in psa_its_read_file() 106 if( n != sizeof( header ) ) in psa_its_read_file() 112 p_info->size = ( header.size[0] | in psa_its_read_file() 113 header.size[1] << 8 | in psa_its_read_file() 114 header.size[2] << 16 | in psa_its_read_file() 115 header.size[3] << 24 ); in psa_its_read_file() 116 p_info->flags = ( header.flags[0] | in psa_its_read_file() 190 psa_its_file_header_t header; in psa_its_set() local 203 n = fwrite( &header, 1, sizeof( header ), stream ); in psa_its_set() [all …]
|
A D | pem.c | 225 int mbedtls_pem_read_buffer( mbedtls_pem_context *ctx, const char *header, const char *footer, in mbedtls_pem_read_buffer() argument 246 s1 = (unsigned char *) strstr( (const char *) data, header ); in mbedtls_pem_read_buffer() 256 s1 += strlen( header ); in mbedtls_pem_read_buffer() 433 int mbedtls_pem_write_buffer( const char *header, const char *footer, in mbedtls_pem_write_buffer() argument 442 add_len = strlen( header ) + strlen( footer ) + ( use_len / 64 ) + 1; in mbedtls_pem_write_buffer() 461 memcpy( p, header, strlen( header ) ); in mbedtls_pem_write_buffer() 462 p += strlen( header ); in mbedtls_pem_write_buffer()
|
A D | entropy.c | 153 unsigned char header[2]; in entropy_update() local 172 header[0] = source_id; in entropy_update() 173 header[1] = use_len & 0xFF; in entropy_update() 186 if( ( ret = mbedtls_sha512_update( &ctx->accumulator, header, 2 ) ) != 0 ) in entropy_update() 195 if( ( ret = mbedtls_sha256_update( &ctx->accumulator, header, 2 ) ) != 0 ) in entropy_update()
|
A D | CMakeLists.txt | 249 # Include public header files from /include and other directories 250 # declared by /3rdparty/**/CMakeLists.txt. Include private header files
|
/mbedtls-development/programs/psa/ |
A D | key_ladder_demo.c | 371 wrapped_data_header_t header; in wrap_data() local 407 header.ad_size = sizeof( header ); in wrap_data() 408 header.payload_size = input_size; in wrap_data() 414 (uint8_t *) &header, sizeof( header ), in wrap_data() 421 SYS_CHECK( fwrite( &header, 1, sizeof( header ), in wrap_data() 451 wrapped_data_header_t header; in unwrap_data() local 456 SYS_CHECK( fread( &header, 1, sizeof( header ), in unwrap_data() 465 if( header.ad_size != sizeof( header ) ) in unwrap_data() 476 if( ciphertext_size < header.payload_size ) in unwrap_data() 499 (uint8_t *) &header, sizeof( header ), in unwrap_data() [all …]
|
/mbedtls-development/scripts/mbedtls_dev/ |
A D | c_build_helper.py | 65 caller, header, argument 82 c_file.write(header) 96 header='', include_path=None, argument 125 c_file, caller, header,
|
A D | psa_storage.py | 52 header=""" 150 header = self.MAGIC + self.pack('L', self.version) 158 return header + attributes + material
|
/mbedtls-development/ChangeLog.d/ |
A D | do-not-use-obsolete-header.txt | 2 * Don't use the obsolete header path sys/fcntl.h in unit tests. 3 These header files cause compilation errors in musl.
|
/mbedtls-development/include/mbedtls/ |
A D | pem.h | 101 int mbedtls_pem_read_buffer( mbedtls_pem_context *ctx, const char *header, const char *footer, 141 int mbedtls_pem_write_buffer( const char *header, const char *footer,
|
/mbedtls-development/programs/test/ |
A D | generate_cpp_dummy_build.sh | 40 * This program is a dummy C++ program to ensure Mbed TLS library header files 63 for header in include/mbedtls/*.h include/psa/*.h; do 64 case ${header#include/} in
|
/mbedtls-development/tests/suites/ |
A D | test_suite_psa_its.data | 67 Overwrite ITS header magic 70 Truncate ITS header
|
A D | test_suite_pem.function | 36 void mbedtls_pem_read_buffer( char *header, char *footer, char *data, 46 ret = mbedtls_pem_read_buffer( &ctx, header, footer, (unsigned char *)data,
|
A D | test_suite_entropy.function | 447 unsigned char header[2]; 480 header[1] = MBEDTLS_ENTROPY_BLOCK_SIZE; 484 header[0] = 0; 486 TEST_ASSERT( mbedtls_md_update( &accumulator, header, 2 ) == 0 ); 499 header[0] = MBEDTLS_ENTROPY_SOURCE_MANUAL; 500 TEST_ASSERT( mbedtls_md_update( &accumulator, header, 2 ) == 0 ); 504 header[0] = 0; 505 TEST_ASSERT( mbedtls_md_update( &accumulator, header, 2 ) == 0 );
|
A D | test_suite_memory_buffer_alloc.data | 19 Memory buffer: heap too small (header verification should fail)
|
A D | test_suite_memory_buffer_alloc.function | 256 * "FATAL: verification of first header failed".
|
A D | test_suite_psa_crypto_persistent_key.data | 25 Parse storage: truncated header
|
/mbedtls-development/tests/scripts/ |
A D | test_psa_constant_names.py | 43 for header in headers: 44 inputs.parse_header(header) 67 header='#include <psa/crypto.h>',
|
A D | check_names.py | 357 with open(header_file, "r", encoding="utf-8") as header: 358 for line_no, line in enumerate(header): 428 with open(header_file, "r", encoding="utf-8") as header: 429 for line_no, line in enumerate(header): 504 with open(header_file, "r", encoding="utf-8") as header: 511 for line_no, line in enumerate(header):
|
/mbedtls-development/docs/proposed/ |
A D | psa-driver-developer-guide.md | 25 …Depending on the driver type, you may also need to define some C types and macros in a header file. 32 * C header files defining the types required by the driver description. The names of these header f…
|
A D | psa-conditional-inclusion-c.md | 126 …header file `mbedtls/mbedtls_config.h` needs to define all the `MBEDTLS_xxx_C` configuration symbo… 132 …ols defined (or not) in `mbedtls/mbedtls_config.h`. Furthermore, the new header file **`mbedtls/co… 136 …bed TLS, `mbedtls/config_psa.h` must be included via an already existing header that is not `mbedt… 140 …et or not, `mbedtls/config_psa.h` includes `mbedtls/crypto_drivers.h`, a header file generated by … 162 The header file **`library/psa_check_config.h`** applies sanity checks to the configuration, throwi…
|
/mbedtls-development/scripts/ |
A D | assemble_changelog.py | 247 (self.header, 254 offset = (self.header + self.top_version_title).count('\n') + 1 268 out.write(self.header)
|
/mbedtls-development/tests/ |
A D | CMakeLists.txt | 123 # Include test-specific header files from ./include and private header 124 # files (used by some invasive tests) from ../library. Public header
|
/mbedtls-development/docs/architecture/ |
A D | psa-crypto-implementation-structure.md | 52 …appers.c C file and the function prototypes declared in a psa_crypto_driver_wrappers.h header file. 73 An Mbed TLS PSA driver C file is named psa_crypto_<driver_name>.c and its associated header file ps…
|
A 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…
|
/mbedtls-development/doxygen/ |
A D | mbedtls.doxyfile | 131 # path before files name in the file list and in the header files. If set 149 # the reader which header file to include in order to use a class. 150 # If left blank only the name of the header file containing the class 383 # If set to NO only classes defined in header files are included. 845 # will generate a verbatim copy of the header file for each class for 867 # classes will be put under the same header in the alphabetical index. 894 # The HTML_HEADER tag can be used to specify a personal HTML header for 896 # standard header. Note that when using a custom header you are responsible 899 # It is advised to generate a default header using "doxygen -w html 901 # that header. Note that the header is subject to change so you typically [all …]
|