| /mbedtls/scripts/data_files/ |
| A D | query_config.fmt | 10 #include "query_config.h" 20 #include "psa/crypto.h" 22 #include "mbedtls/aes.h" 23 #include "mbedtls/aria.h" 24 #include "mbedtls/asn1.h" 29 #include "mbedtls/ccm.h" 36 #include "mbedtls/des.h" 37 #include "mbedtls/dhm.h" 47 #include "mbedtls/md.h" 54 #include "mbedtls/pk.h" [all …]
|
| A D | error.fmt | 8 #include "common.h" 10 #include "mbedtls/error.h" 16 #include "mbedtls/platform.h" 18 #include <stdio.h> 19 #include <string.h>
|
| A D | version_features.fmt | 8 #include "common.h" 12 #include "mbedtls/version.h" 14 #include <string.h>
|
| /mbedtls/tests/suites/ |
| A D | helpers.function | 5 #include <test/arguments.h> 6 #include <test/helpers.h> 7 #include <test/macros.h> 8 #include <test/random.h> 13 #include <errno.h> 14 #include <limits.h> 15 #include <stdint.h> 16 #include <stdlib.h> 17 #include <string.h> 20 #include "mbedtls/error.h" [all …]
|
| A D | test_suite_pkcs7.function | 2 #include "mbedtls/bignum.h" 3 #include "mbedtls/pkcs7.h" 4 #include "mbedtls/x509.h" 5 #include "mbedtls/x509_crt.h" 6 #include "mbedtls/x509_crl.h" 7 #include "x509_internal.h" 8 #include "mbedtls/oid.h" 9 #include "sys/types.h" 10 #include "sys/stat.h" 11 #include "mbedtls/rsa.h" [all …]
|
| A D | test_suite_random.function | 5 #include "mbedtls/bignum.h" 6 #include "mbedtls/ctr_drbg.h" 7 #include "mbedtls/ecdsa.h" 8 #include "mbedtls/entropy.h" 9 #include "mbedtls/hmac_drbg.h" 10 #include "mbedtls/psa_util.h" 11 #include "psa/crypto.h"
|
| A D | test_suite_constant_time.function | 11 #include <stdio.h> 13 #include <limits.h> 14 #include <stdlib.h> 15 #include <errno.h> 17 #include <mbedtls/bignum.h> 18 #include <mbedtls/constant_time.h> 19 #include <constant_time_internal.h> 21 #include <test/constant_flow.h> 97 unsigned char l = li, h = hi, t = ti; 104 TEST_CF_SECRET(&h, sizeof(h)); [all …]
|
| A D | test_suite_net.function | 3 #include "mbedtls/net_sockets.h" 12 #include <sys/resource.h> 13 #include <sys/stat.h> 14 #include <sys/time.h> 15 #include <sys/types.h> 16 #include <fcntl.h> 17 #include <unistd.h>
|
| A D | test_suite_constant_time_hmac.function | 3 #include <mbedtls/constant_time.h> 4 #include <mbedtls/md.h> 5 #include <constant_time_internal.h> 6 #include "mbedtls/psa_util.h" 7 #include <ssl_misc.h> 9 #include <test/constant_flow.h>
|
| A D | test_suite_psa_crypto_memory.function | 2 #include <stdint.h> 4 #include "common.h" 6 #include "psa/crypto.h" 8 #include "psa_crypto_core.h" 9 #include "psa_crypto_invasive.h" 11 #include "test/psa_crypto_helpers.h" 12 #include "test/memory.h"
|
| /mbedtls/tests/ |
| A D | Makefile | 89 generated_psa_test_data: ../include/psa/crypto_extra.h 115 TEST_OBJS_DEPS = $(wildcard include/test/*.h include/test/*/*.h) 173 rm -f include/test/instrument_record_status.h 174 rm -f include/alt-extra/*/*_alt.h 185 if exist include/test/instrument_record_status.h del /Q /F include/test/instrument_record_status.h 195 include/alt-extra/%_alt.h: ../include/%.h 223 cp ./include/test/drivers/config_test_driver.h ./libtestdriver1/include/mbedtls/mbedtls_config.h 230 mv ./libtestdriver1/include/psa/crypto_config.h ./libtestdriver1/include/psa/crypto_config.h.bak 231 … -n -1 ./libtestdriver1/include/psa/crypto_config.h.bak > ./libtestdriver1/include/psa/crypto_conf… 232 …de/test/drivers/crypto_config_test_driver_extension.h >> ./libtestdriver1/include/psa/crypto_confi… [all …]
|
| A D | .gitignore | 11 include/alt-extra/psa/crypto_platform_alt.h 12 include/alt-extra/psa/crypto_struct_alt.h 13 include/test/instrument_record_status.h
|
| /mbedtls/programs/test/ |
| A D | generate_cpp_dummy_build.sh | 40 for header in include/mbedtls/*.h include/psa/*.h; do 42 mbedtls/mbedtls_config.h) :;; # not meant for direct inclusion 43 mbedtls/config_*.h) :;; # not meant for direct inclusion 44 psa/crypto_config.h) :;; # not meant for direct inclusion 45 psa/crypto_ajdust_config*.h) :;; # not meant for direct inclusion
|
| A D | CMakeLists.txt | 48 ${CMAKE_CURRENT_SOURCE_DIR}/../../include/mbedtls/mbedtls_config.h 49 ${CMAKE_CURRENT_SOURCE_DIR}/../../include/psa/crypto_config.h 54 ${CMAKE_CURRENT_SOURCE_DIR}/../../include/mbedtls/mbedtls_config.h 55 ${CMAKE_CURRENT_SOURCE_DIR}/../../include/psa/crypto_config.h 70 ${CMAKE_CURRENT_SOURCE_DIR}/query_config.h
|
| /mbedtls/docs/architecture/ |
| A D | psa-crypto-implementation-structure.md | 80 * [ ] `include/psa/crypto_values.h` or `include/psa/crypto_extra.h` — [New functions and macros](#n… 81 * [ ] `include/psa/crypto_config.h`, `tests/include/test/drivers/crypto_config_test_driver_extensio… 82 * Occasionally `library/check_crypto_config.h` — [Preprocessor symbols](#preprocessor-symbols) 83 * [ ] `include/mbedtls/config_psa.h` — [Preprocessor symbols](#preprocessor-symbols) 85 * [ ] `include/psa/crypto_builtin_*.h` — [Translucent data structures](#translucent-data-structures) 94 * [ ] `include/psa/crypto.h` and `include/psa/crypto_sizes.h`, or `include/psa/crypto_extra.h` — [N… 96 …functions: `include/psa/crypto_struct.h`, `include/psa/crypto_builtin_*.h`, `include/psa/crypto_dr… 113 …h`, apart from structure accessors defined in `include/psa/crypto_struct.h`. Functions that have o… 128 …isms in Mbed TLS, deduced from `mbedtls/mbedtls_config.h` by code in `include/mbedtls/config_psa.h… 129 …ypto_config.h` (or `MBEDTLS_PSA_CRYPTO_CONFIG_FILE`, plus `MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE`), … [all …]
|
| /mbedtls/scripts/data_files/driver_templates/ |
| A D | psa_crypto_driver_wrappers_no_static.c.jinja | 12 #include "common.h" 13 #include "psa_crypto_aead.h" 14 #include "psa_crypto_cipher.h" 15 #include "psa_crypto_core.h" 16 #include "psa_crypto_driver_wrappers_no_static.h" 17 #include "psa_crypto_hash.h" 18 #include "psa_crypto_mac.h" 19 #include "psa_crypto_pake.h" 20 #include "psa_crypto_rsa.h" 22 #include "mbedtls/platform.h" [all …]
|
| /mbedtls/library/ |
| A D | ecjpake.c | 199 mbedtls_mpi *h) in ecjpake_hash() argument 234 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(h, h, &grp->N)); in ecjpake_hash() 254 mbedtls_mpi r, h; in ecjpake_zkp_read() local 260 mbedtls_mpi_init(&h); in ecjpake_zkp_read() 305 mbedtls_mpi_free(&h); in ecjpake_zkp_read() 328 mbedtls_mpi h; /* later recycled to hold r */ in ecjpake_zkp_write() local 337 mbedtls_mpi_init(&h); in ecjpake_zkp_write() 343 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&h, &h, x)); /* x*h */ in ecjpake_zkp_write() 344 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&h, &v, &h)); /* v - x*h */ in ecjpake_zkp_write() 345 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&h, &h, &grp->N)); /* r */ in ecjpake_zkp_write() [all …]
|
| A D | aesce.c | 534 uint8x16_t h, m, l; /* retval high/middle/low */ in poly_mult_128() local 537 h = pmull_high(a, b); /* h3:h2:00:00 = a1*b1 */ in poly_mult_128() 544 ret.val[0] = h; in poly_mult_128() 576 uint8x16_t h, m, l; /* input high/middle/low 128b */ in poly_mult_reduce() local 578 h = input.val[0]; /* h3:h2:00:00 */ in poly_mult_reduce() 581 c = pmull_high(h, MODULO); /* :c2:c1:00 = reduction of h3 */ in poly_mult_reduce() 582 d = pmull_low(h, MODULO); /* : :d1:d0 = reduction of h2 */ in poly_mult_reduce()
|
| /mbedtls/docs/proposed/ |
| A D | psa-conditional-inclusion-c.md | 54 …`MBEDTLS_PSA_CRYPTO_CONFIG` in `mbedtls/mbedtls_config.h` determines whether `psa/crypto_config.h`… 137 `mbedtls/config_psa.h` includes `psa/crypto_config.h`, the user-editable file that defines applicat… 145 …h` or an edited copy of `mbedtls/mbedtls_config.h` from an earlier version of Mbed TLS, `mbedtls/c… 159 | `MBEDTLS_xxx_C` | `mbedtls/mbedtls_config.h` (U) or | `mbedtls/mbedtls_config.h` (U) … 160 | | `mbedtls/config_psa.h` (D) | … 161 | `PSA_WANT_xxx` | `psa/crypto_config.h` (U) | `mbedtls/config_psa.h` (D) … 162 | `MBEDTLS_PSA_BUILTIN_xxx` | `mbedtls/config_psa.h` (D) | `mbedtls/config_psa.h` (D) … 163 | `MBEDTLS_PSA_ACCEL_xxx` | `mbedtls/crypto_drivers.h` (G) | N/A … 171 The header file **`library/psa_check_config.h`** applies sanity checks to the configuration, throwi… 173 A mechanism similar to `mbedtls/check_config.h` detects errors such as enabling ECDSA but no curve. [all …]
|
| A D | psa-driver-wrappers-codegen-migration-guide.md | 1 Migrating to an auto generated psa_crypto_driver_wrappers.h file 4 This document describes how to migrate to the auto generated psa_crypto_driver_wrappers.h file. 30 (1) psa_crypto_driver_wrappers.h will from this point on be auto generated. 31 …on the template file at **scripts/data_files/driver_templates/psa_crypto_driver_wrappers.h.jinja**. 32 (3) The driver JSONS to be used for generating the psa_crypto_driver_wrappers.h file can be found a… 33 …psa_crypto_driver_wrappers.h file, the user will need to patch into the template file as needed (p…
|
| /mbedtls/configs/ |
| A D | README.txt | 7 These files are complete replacements for the default mbedtls_config.h. To use one of 10 1. Replace the default file include/mbedtls/mbedtls_config.h with the chosen one. 15 CFLAGS="-I$PWD/configs -DMBEDTLS_CONFIG_FILE='<foo.h>'" make 20 CFLAGS="-I$PWD/configs -DMBEDTLS_CONFIG_FILE='<foo.h>'" cmake .
|
| /mbedtls/configs/ext/ |
| A D | README.md | 6 * crypto_config_profile_medium.h 7 * tfm_mbedcrypto_config_profile_medium.h 15 The two files crypto_config_profile_medium.h and tfm_mbedcrypto_config_profile_medium.h
|
| /mbedtls/scripts/ |
| A D | footprint.sh | 103 doit default include/mbedtls/mbedtls_config.h 104 doit thread configs/config-thread.h 105 doit suite-b configs/config-suite-b.h 106 doit psk configs/config-ccm-psk-tls1_2.h
|
| /mbedtls/ |
| A D | Makefile | 196 3rdparty/*/include/*/*.h 3rdparty/*/include/*/*/*.h 3rdparty/*/include/*/*/*/*.h \ 198 include/*/*.h \ 201 tests/include/*/*.h tests/include/*/*/*.h \ 206 CTAGS = ctags --langmap=c:+.h.function --line-directives=no -o
|
| /mbedtls/include/ |
| A D | CMakeLists.txt | 5 file(GLOB headers "mbedtls/*.h") 6 file(GLOB psa_headers "psa/*.h") 18 # Make mbedtls_config.h available in an out-of-source build. ssl-opt.sh requires it.
|