| /lib/mbedtls/external/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 …]
|
| /lib/libavb/ |
| A D | avb_vbmeta_image.c | 19 AvbVBMetaImageHeader h; in avb_vbmeta_image_verify() local 97 if (!avb_safe_add(&hash_end, h.hash_offset, h.hash_size) || in avb_vbmeta_image_verify() 103 if (!avb_safe_add(&signature_end, h.signature_offset, h.signature_size) || in avb_vbmeta_image_verify() 111 if (!avb_safe_add(&pubkey_end, h.public_key_offset, h.public_key_size) || in avb_vbmeta_image_verify() 119 if (h.public_key_metadata_size > 0) { in avb_vbmeta_image_verify() 157 switch (h.algorithm_type) { in avb_vbmeta_image_verify() 187 h.hash_size) != 0) { in avb_vbmeta_image_verify() 195 h.public_key_size, in avb_vbmeta_image_verify() 197 h.signature_size, in avb_vbmeta_image_verify() 199 h.hash_size, in avb_vbmeta_image_verify() [all …]
|
| A D | avb_sha256.c | 135 wv[j] = ctx->h[j]; in SHA256_transform() 222 wv[0] = ctx->h[0]; in SHA256_transform() 223 wv[1] = ctx->h[1]; in SHA256_transform() 224 wv[2] = ctx->h[2]; in SHA256_transform() 225 wv[3] = ctx->h[3]; in SHA256_transform() 226 wv[4] = ctx->h[4]; in SHA256_transform() 227 wv[5] = ctx->h[5]; in SHA256_transform() 228 wv[6] = ctx->h[6]; in SHA256_transform() 229 wv[7] = ctx->h[7]; in SHA256_transform() 296 ctx->h[0] += wv[0]; in SHA256_transform() [all …]
|
| A D | avb_sha512.c | 223 wv[0] = ctx->h[0]; in SHA512_transform() 224 wv[1] = ctx->h[1]; in SHA512_transform() 225 wv[2] = ctx->h[2]; in SHA512_transform() 226 wv[3] = ctx->h[3]; in SHA512_transform() 227 wv[4] = ctx->h[4]; in SHA512_transform() 228 wv[5] = ctx->h[5]; in SHA512_transform() 229 wv[6] = ctx->h[6]; in SHA512_transform() 230 wv[7] = ctx->h[7]; in SHA512_transform() 253 ctx->h[0] += wv[0]; in SHA512_transform() 254 ctx->h[1] += wv[1]; in SHA512_transform() [all …]
|
| A D | avb_rsa.c | 25 AvbRSAPublicKeyHeader h; in iavb_parse_key_data() local 33 (const AvbRSAPublicKeyHeader*)data, &h)) { in iavb_parse_key_data() 38 if (!(h.key_num_bits == 2048 || h.key_num_bits == 4096 || in iavb_parse_key_data() 39 h.key_num_bits == 8192)) { in iavb_parse_key_data() 44 expected_length = sizeof(AvbRSAPublicKeyHeader) + 2 * h.key_num_bits / 8; in iavb_parse_key_data() 51 rr = data + sizeof(AvbRSAPublicKeyHeader) + h.key_num_bits / 8; in iavb_parse_key_data() 56 key = (IAvbKey*)(avb_malloc(sizeof(IAvbKey) + 2 * h.key_num_bits / 8)); in iavb_parse_key_data() 61 key->len = h.key_num_bits / 32; in iavb_parse_key_data() 62 key->n0inv = h.n0inv; in iavb_parse_key_data()
|
| /lib/mbedtls/external/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 …]
|
| /lib/mbedtls/external/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 …]
|
| /lib/efi_selftest/ |
| A D | Makefile | 84 efi_miniapp_file_image_exception.h \ 85 efi_miniapp_file_image_exit.h \ 86 efi_miniapp_file_image_return.h \ 93 $(obj)/efi_miniapp_file_image_exception.h 95 $(obj)/efi_miniapp_file_image_exit.h: $(obj)/efi_selftest_miniapp_exit.efi 97 $(obj)/efi_miniapp_file_image_exit.h 101 $(obj)/efi_miniapp_file_image_return.h 103 $(obj)/efi_selftest_exception.o: $(obj)/efi_miniapp_file_image_exception.h 105 $(obj)/efi_selftest_load_file.o: $(obj)/efi_miniapp_file_image_exit.h 107 $(obj)/efi_selftest_loadimage.o: $(obj)/efi_miniapp_file_image_exit.h [all …]
|
| /lib/lwip/lwip/ |
| A D | CHANGELOG | 1142 * dhcp.c, ip4.c/.h, ip6.c/.h, udp.c/.h, ip.h: Fixed bug #41787 DHCP Discovery 1981 * pbuf.c/.h, ip_frag.c/.h, opt.h, memp_std.h: Fixed bug #29361 (ip_frag has 2516 * api.h api_msg.h netdb.h sockets.h: add missing #include directives 2821 * sys_arch.txt, api.h, api_lib.c, api_msg.h, api_msg.c, tcpip.c, sys.h, opt.h: 2853 * tcp.h, opt.h, api.h, api_msg.h, tcp.c, tcp_in.c, api_lib.c, api_msg.c, 3194 * autoip.h, autoip.c, dhcp.h, dhcp.c, netif.h, netif.c, etharp.h, etharp.c, opt.h: 3321 * sockets.h, sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c, igmp.h, igmp.c, 3346 * api.h, api_lib.c, sockets.h, sockets.c, tcpip.c, sys.h, sys.c, err.h: 3604 * ipv4/ip.h, ipv6/ip.h, opt.h, netif.h, etharp.h, ipv4/ip.c, netif.c, raw.c, 3743 tcp.h to sockets.h. [all …]
|
| A D | UPGRADING | 47 and ip6_zone.h for more documentation) 99 * Continued moving stack-internal parts from abc.h to abc_priv.h in sub-folder "priv" 100 to let abc.h only contain the actual application programmer's API 110 in def.h (to be overridden in cc.h) instead of config 112 * New abstraction for hton* and ntoh* functions in def.h. 113 To override them, use the following in cc.h: 189 * Added 4 new files: def.c, timers.c, timers.h, tcp_impl.h: 191 * Moved stack-internal parts of tcp.h to tcp_impl.h, tcp.h now only contains 194 * Separated timer implementation from sys.h/.c, moved to timers.h/.c; 245 in cc.h, e.g. used by igmp) [all …]
|
| /lib/crypto/ |
| A D | Makefile | 21 $(obj)/rsapubkey.asn1.o: $(obj)/rsapubkey.asn1.c $(obj)/rsapubkey.asn1.h 26 $(obj)/rsa_helper.o: $(obj)/rsapubkey.asn1.h 43 $(obj)/x509.asn1.h \ 44 $(obj)/x509_akid.asn1.h 46 $(obj)/x509.asn1.o: $(obj)/x509.asn1.c $(obj)/x509.asn1.h 47 $(obj)/x509_akid.asn1.o: $(obj)/x509_akid.asn1.c $(obj)/x509_akid.asn1.h 58 $(obj)/pkcs7_parser.o: $(obj)/pkcs7.asn1.h 59 $(obj)/pkcs7.asn1.o: $(obj)/pkcs7.asn1.c $(obj)/pkcs7.asn1.h 72 $(obj)/mscode_parser.o: $(obj)/mscode.asn1.h $(obj)/mscode.asn1.h 73 $(obj)/mscode.asn1.o: $(obj)/mscode.asn1.c $(obj)/mscode.asn1.h
|
| /lib/mbedtls/external/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
|
| /lib/ |
| A D | sha512.c | 140 uint64_t a, b, c, d, e, f, g, h, t1, t2; in sha512_transform() local 147 e=state[4]; f=state[5]; g=state[6]; h=state[7]; in sha512_transform() 165 t1 = h + e1(e) + Ch(e,f,g) + sha512_K[i ] + W[(i & 15)]; in sha512_transform() 166 t2 = e0(a) + Maj(a,b,c); d+=t1; h=t1+t2; in sha512_transform() 168 t2 = e0(h) + Maj(h,a,b); c+=t1; g=t1+t2; in sha512_transform() 170 t2 = e0(g) + Maj(g,h,a); b+=t1; f=t1+t2; in sha512_transform() 172 t2 = e0(f) + Maj(f,g,h); a+=t1; e=t1+t2; in sha512_transform() 174 t2 = e0(e) + Maj(e,f,g); h+=t1; d=t1+t2; in sha512_transform() 175 t1 = c + e1(h) + Ch(h,a,b) + sha512_K[i+5] + W[(i & 15) + 5]; in sha512_transform() 184 state[4] += e; state[5] += f; state[6] += g; state[7] += h; in sha512_transform() [all …]
|
| /lib/lwip/lwip/contrib/ports/unix/posixlib/ |
| A D | CMakeLists.txt | 20 check_include_file(libvdeplug.h INCLUDE_VDEPLUGOK) 67 FILES_MATCHING PATTERN "*.h" 72 FILES_MATCHING PATTERN "*.h" 75 install(FILES lwipopts.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/lwip") 79 FILES_MATCHING PATTERN "*.h" 84 FILES_MATCHING PATTERN "*.h" 89 FILES_MATCHING PATTERN "*.h"
|
| /lib/mbedtls/external/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 …]
|
| /lib/lwip/lwip/src/api/ |
| A D | netdb.c | 170 struct gethostbyname_r_helper *h; in lwip_gethostbyname_r() local 200 h = (struct gethostbyname_r_helper *)LWIP_MEM_ALIGN(buf); in lwip_gethostbyname_r() 201 hostname = ((char *)h) + sizeof(struct gethostbyname_r_helper); in lwip_gethostbyname_r() 204 err = netconn_gethostbyname(name, &h->addr); in lwip_gethostbyname_r() 216 h->addr_list[0] = &h->addr; in lwip_gethostbyname_r() 217 h->addr_list[1] = NULL; in lwip_gethostbyname_r() 218 h->aliases = NULL; in lwip_gethostbyname_r() 220 ret->h_aliases = &h->aliases; in lwip_gethostbyname_r() 223 ret->h_addr_list = (char **)&h->addr_list; in lwip_gethostbyname_r()
|
| /lib/mbedtls/external/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 …]
|
| /lib/bzip2/ |
| A D | bzlib_blocksort.c | 529 Int32 i, j, h, bigN, hp; in mainSimpleSort() local 540 h = incs[hp]; in mainSimpleSort() 542 i = lo + h; in mainSimpleSort() 553 j = j - h; in mainSimpleSort() 567 j = j - h; in mainSimpleSort() 581 j = j - h; in mainSimpleSort() 875 Int32 h = 1; in mainSort() local 876 do h = 3 * h + 1; while (h <= 256); in mainSort() 878 h = h / 3; in mainSort() 884 j = j - h; in mainSort() [all …]
|
| /lib/mbedtls/external/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 …]
|
| /lib/mbedtls/external/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…
|
| /lib/lwip/lwip/contrib/ports/unix/example_app/ |
| A D | CMakeLists.txt | 14 if(NOT EXISTS ${LWIP_DIR}/contrib/examples/example_app/lwipcfg.h) 15 message(WARNING "${LWIP_DIR}/contrib/examples/example_app is missing lwipcfg.h 16 …IP_DIR}/contrib/examples/example_app/lwipcfg.h.example to ${LWIP_DIR}/contrib/examples/example_app…
|
| /lib/lwip/lwip/contrib/ports/win32/example_app/ |
| A D | CMakeLists.txt | 14 if(NOT EXISTS ${LWIP_DIR}/contrib/examples/example_app/lwipcfg.h) 15 message(WARNING "${LWIP_DIR}/contrib/examples/example_app is missing lwipcfg.h 16 …IP_DIR}/contrib/examples/example_app/lwipcfg.h.example to ${LWIP_DIR}/contrib/examples/example_app…
|
| /lib/mbedtls/external/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 .
|