/hal_espressif-3.4.0/components/mbedtls/port/ |
D | esp_bignum.c | 2 * \brief Multi-precision integer library, ESP32 hardware accelerated parts 6 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved 8 * SPDX-License-Identifier: Apache-2.0 14 * http://www.apache.org/licenses/LICENSE-2.0 42 * - Naming convention x_words, y_words, z_words for number of words (limbs) used in a particular 45 …* - Naming convention hw_words for the hardware length of the operation. This number maybe be roun… 49 …* - Timing behaviour of these functions will depend on the length of the inputs. This is fundament… 73 for (size_t i = mpi->n; i > 0; i--) { in mpi_words() 74 if (mpi->p[i - 1] != 0) { in mpi_words() 85 * There is a need for the value of integer N' such that B^-1(B-1)-N^-1N'=1, [all …]
|
/hal_espressif-3.4.0/components/bootloader/subproject/components/micro-ecc/ |
D | uECC_verify_antifault.c | 2 * SPDX-FileCopyrightText: 2014, Kenneth MacKay 4 * SPDX-License-Identifier: BSD-2-Clause 6 * SPDX-FileContributor: 2020-2021 Espressif Systems (Shanghai) CO LTD 12 #include "micro-ecc/uECC.c" 24 uECC_word_t z[uECC_MAX_WORDS]; in uECC_verify_antifault() local 41 wordcount_t num_words = curve->num_words; in uECC_verify_antifault() 42 wordcount_t num_n_words = BITS_TO_WORDS(curve->num_n_bits); in uECC_verify_antifault() 44 rx[num_n_words - 1] = 0; in uECC_verify_antifault() 45 r[num_n_words - 1] = 0; in uECC_verify_antifault() 46 s[num_n_words - 1] = 0; in uECC_verify_antifault() [all …]
|
/hal_espressif-3.4.0/components/bootloader/subproject/components/micro-ecc/micro-ecc/ |
D | asm_avr.inc | 1 /* Copyright 2015, Kenneth MacKay. Licensed under the BSD 2-clause license. */ 90 "ld r0, -x \n\t" 98 "ld r0, -x \n\t" 104 : [num] "r" (num_words), [jump] "r" ((uint8_t)(3 * (num_words - 1))) 123 "st z+, %[clb] \n\t" 170 "st z+, %[clb] \n\t" 255 : "+x" (left), "+y" (right), "+z" (result) 307 : "+x" (left), "+z" (result) 334 (+ 1 since z initially points below the stack) */ 336 "ld r18, -x \n\t" /* Load word. */ [all …]
|
D | uECC.c | 1 /* Copyright 2014, Kenneth MacKay. Licensed under the BSD 2-clause license. */ 84 #include "platform-specific.inc" 136 #define BITS_TO_WORDS(num_bits) ((num_bits + ((uECC_WORD_SIZE * 8) - 1)) / (uECC_WORD_SIZE * 8)) 165 num_bytes--; in bcopy() 199 return BITS_TO_BYTES(curve->num_n_bits); in uECC_curve_private_key_size() 203 return 2 * curve->num_bytes; in uECC_curve_public_key_size() 215 /* Constant-time comparison to zero - secure way to compare long integers */ 234 /* Search from the end until we find a non-zero digit. in vli_numDigits() 236 for (i = max_words - 1; i >= 0 && vli[i] == 0; --i) { in vli_numDigits() 252 digit = vli[num_digits - 1]; in uECC_vli_numBits() [all …]
|
/hal_espressif-3.4.0/tools/test_idf_monitor/tests/ |
D | core1.txt | 7 I (210) cpu_start: App version: v4.2-dev-172-gc9cc694dbb-dirty 10 I (229) cpu_start: ESP-IDF: v4.2-dev-172-gc9cc694dbb-dirty 119 AAAAAAAAAADwbvs/AAAAAAEAAAAjDgYAxBIIgHB2+z/cAPA/AQAAAAgA+z9gS/s/ 134 AAAAAAEAAACE/fo/AAAAAAEAAAACAAAAxBIIgOBK+z/cAPA/AQAAAAgA+z8jAAYA 179 AAAAAAAAAAAQNfs/oDr+PwMAAAAjBQYAxBIIgFBC+z/cAPA/AQAAAAgA+z8jAAYA 185 UF37PxBe+z+Ly+SRODP7Pzgz+z+AXvs/MDP7PxgAAACXBQ54SQvlZoBe+z8AAAAA 195 AAAAAPgf/wYAAAAAPB4IQAgL+z8AAAAAAAAAAAAAAAD//z+zAAAAAAAAAAAAAAAA 216 sGT7P3Bl+z/HSTugUG37PyQz+z/kZfs/HDP7PxkAAAA1aB3HlRMz9ORl+z8AAAAA 231 0HX7PzB3+z8AAAAAEDP7PxAz+z+gd/s/CDP7PxgAAADUbvs/1G77P6B3+z/Mbvs/ 240 cHb7P9wA8D8BAAAACAD7P2BL+z/8DA1AAAAAAAAAAAD//wAAAAAAAAAAAAAAAAAA [all …]
|
/hal_espressif-3.4.0/components/bootloader/subproject/components/micro-ecc/micro-ecc/scripts/ |
D | mult_avr.py | 15 full_rows = full_rows - 1 29 emit("adiw r30, %s", size - init_size) # move z 30 emit("adiw r28, %s", size - init_size) # move y 41 emit("st z+, r0") 42 emit("st z+, r1") 47 emit("st z+, r0") 58 emit("st z+, r22") 66 emit("mul r%s, r%s", rx(i), ry(r - i)) 70 emit("st z+, r%s", acc[0]) 73 for r in xrange(1, init_size-1): [all …]
|
D | square_avr.py | 15 init_size = size - 20 42 emit("adiw r28, %s", size - init_size) # move y to other end 46 emit("adiw r30, %s", size - init_size) # move z 50 emit("st z+, r0") 51 emit("st z+, r1") 57 emit("st z+, r0") 66 emit("mul r%s, r%s", lo(i), hi(r - i)) 70 emit("st z+, r%s", acc[0]) 80 emit("ld r%s, y+", hi_r[h-1]) 84 emit("mul r%s, r%s", lo(i), hi_r[h - 1 - i]) [all …]
|
D | mult_avr_extra.py | 67 emit("ld r0, z") 74 emit("st z+, r%s", acc(0)) 80 emit("ld r0, z") 84 emit("mul r%s, r%s", lhi(j), rlo(i-j)) 88 emit("mul r%s, r%s", rhi(j), llo(i-j)) 92 emit("st z+, r%s", acc(0)) 99 emit("ld r0, z") 104 emit("mul r%s, r%s", lhi(j), rlo(3-j)) 108 emit("mul r%s, r%s", rhi(j), llo(3-j)) 112 emit("st z+, r%s", acc(0)) [all …]
|
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | ecc_dsa.c | 1 /* ec_dsa.c - TinyCrypt implementation of EC-DSA */ 32 * - Redistributions of source code must retain the above copyright notice, 35 * - Redistributions in binary form must reproduce the above copyright 39 * - Neither the name of Intel Corporation nor the names of its contributors 69 unsigned num_n_bytes = BITS_TO_BYTES(curve->num_n_bits); in bits2int() 70 unsigned num_n_words = BITS_TO_WORDS(curve->num_n_bits); in bits2int() 81 if (bits_size * 8 <= (unsigned)curve->num_n_bits) { in bits2int() 84 shift = bits_size * 8 - curve->num_n_bits; in bits2int() 87 while (ptr-- > native) { in bits2int() 90 carry = temp << (uECC_WORD_BITS - shift); in bits2int() [all …]
|
D | ecc.c | 1 /* ecc.c - TinyCrypt implementation of common ECC functions */ 31 * - Redistributions of source code must retain the above copyright notice, 34 * - Redistributions in binary form must reproduce the above copyright 38 * - Neither the name of Intel Corporation nor the names of its contributors 59 /* IMPORTANT: Make sure a cryptographically-secure PRNG is set and the platform 79 return BITS_TO_BYTES(curve->num_n_bits); in uECC_curve_private_key_size() 84 return 2 * curve->num_bytes; in uECC_curve_public_key_size() 117 /* Search from the end until we find a non-zero digit. We do it in reverse in vli_numDigits() 119 for (i = max_words - 1; i >= 0 && vli[i] == 0; --i) { in vli_numDigits() 137 digit = vli[num_digits - 1]; in uECC_vli_numBits() [all …]
|
/hal_espressif-3.4.0/docs/_static/ |
D | 404-page__en.svg | 1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Generator: Adobe Illustrator 23.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> 4 …lns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.… 6 style="enable-background:new 0 0 1000 580;" xml:space="preserve"> 11 .st3{opacity:0.27;fill:url(#circle42_1_);enable-background:new ;} 13 .st5{fill:#444444;stroke:#FFFFFF;stroke-width:0.834;stroke-miterlimit:10;} 14 .st6{fill:none;stroke:#FFFFFF;stroke-width:1.1033;stroke-miterlimit:10;} 15 .st7{fill:none;stroke:#353535;stroke-width:1.1033;stroke-miterlimit:10;} 16 .st8{fill:#FFFFFF;stroke:#444444;stroke-width:0.834;stroke-miterlimit:10;} 17 .st9{fill:#444444;stroke:#FFFFFF;stroke-width:0.8485;stroke-miterlimit:10;} [all …]
|
D | 404-page__cn.svg | 1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Generator: Adobe Illustrator 23.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> 4 …lns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.… 6 style="enable-background:new 0 0 1000 580;" xml:space="preserve"> 11 .st3{opacity:0.27;fill:url(#circle42_1_);enable-background:new ;} 12 .st4{opacity:0.27;fill:url(#circle49_1_);enable-background:new ;} 14 .st6{fill:#444444;stroke:#FFFFFF;stroke-width:0.834;stroke-miterlimit:10;} 15 .st7{fill:none;stroke:#FFFFFF;stroke-width:1.1033;stroke-miterlimit:10;} 16 .st8{fill:none;stroke:#353535;stroke-width:1.1033;stroke-miterlimit:10;} 17 .st9{fill:#FFFFFF;stroke:#444444;stroke-width:0.834;stroke-miterlimit:10;} [all …]
|
D | 404-page.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Generator: Adobe Illustrator 23.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> 7 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 18 sodipodi:docname="404-page.svg" 19 inkscape:version="0.92.4 (33fec40, 2019-01-16)" 34 inkscape:window-width="1203" 35 inkscape:window-height="856" 41 inkscape:window-x="75" 42 inkscape:window-y="34" [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/ |
D | ble_mesh_commands_README.md | 11 * `-m`: `mesh modle` 12 * Example: `bminit -m 0x0001` 16 * `-a`: `<appkey index>:appkey index` 17 * `-e`: `<element address>:element address` 18 * `-n`: `<network index>:network index` 19 * `-m`: `<model id>:model id` 20 * `-c`: `<model id>:company id` 21 * Example: `bmpbind -a 0 -e 0x01 -m 0x1001 -n 0x00` 25 * `-z`: `action type <add/delete>` 26 * `-d`: `device address` [all …]
|
/hal_espressif-3.4.0/components/mbedtls/port/esp32/ |
D | bignum.c | 2 * \brief Multi-precision integer library, ESP-IDF hardware accelerated parts 6 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved 7 * Additions Copyright (C) 2016-2020, Espressif Systems (Shanghai) PTE Ltd 8 * SPDX-License-Identifier: Apache-2.0 14 * http://www.apache.org/licenses/LICENSE-2.0 44 /* newlib locks lazy initialize on ESP-IDF */ in esp_mpi_enable_hardware_hw_op() 76 uint32_t copy_words = MIN(hw_words, mpi->n); in mpi_to_mem_block() 80 pbase[i] = mpi->p[i]; in mpi_to_mem_block() 98 assert(x->n >= num_words); in mem_block_to_mpi() 101 esp_dport_access_read_buffer(x->p, mem_base, num_words); in mem_block_to_mpi() [all …]
|
/hal_espressif-3.4.0/docs/_static/touch_element/ |
D | te_matrix.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 …="0 0 14800 15000" preserveAspectRatio="xMidYMid" fill-rule="evenodd" stroke-width="28.222" stroke… 13 <font id="EmbeddedFont_1" horiz-adv-x="2048"> 14 …<font-face font-family="Liberation Sans embedded" units-per-em="2048" font-weight="normal" font-st… 15 <missing-glyph horiz-adv-x="2048" d="M 0,0 L 2047,0 2047,2047 0,2047 0,0 Z"/> 16 …unicode="x" horiz-adv-x="1006" d="M 801,0 L 510,444 217,0 23,0 408,556 41,1082 240,1082 510,661 77… 17 …-adv-x="874" d="M 314,1082 L 314,396 C 314,325 321,269 335,230 349,191 371,162 402,145 433,128 478… 18 …-adv-x="531" d="M 554,8 C 495,-8 434,-16 372,-16 228,-16 156,66 156,229 L 156,951 31,951 31,1082 1… 19 …-adv-x="530" d="M 142,0 L 142,830 C 142,906 140,990 136,1082 L 306,1082 C 311,959 314,886 314,861 … [all …]
|
D | te_slider.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 …="0 0 14800 15000" preserveAspectRatio="xMidYMid" fill-rule="evenodd" stroke-width="28.222" stroke… 13 <font id="EmbeddedFont_1" horiz-adv-x="2048"> 14 …<font-face font-family="Liberation Sans embedded" units-per-em="2048" font-weight="normal" font-st… 15 <missing-glyph horiz-adv-x="2048" d="M 0,0 L 2047,0 2047,2047 0,2047 0,0 Z"/> 16 …-adv-x="874" d="M 314,1082 L 314,396 C 314,325 321,269 335,230 349,191 371,162 402,145 433,128 478… 17 …-adv-x="530" d="M 142,0 L 142,830 C 142,906 140,990 136,1082 L 306,1082 C 311,959 314,886 314,861 … 18 …-adv-x="980" d="M 1053,542 C 1053,353 1011,212 928,119 845,26 724,-20 565,-20 407,-20 288,28 207,1… 19 <glyph unicode="l" horiz-adv-x="187" d="M 138,0 L 138,1484 318,1484 318,0 138,0 Z"/> [all …]
|
D | te_button.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 …="0 0 14800 15000" preserveAspectRatio="xMidYMid" fill-rule="evenodd" stroke-width="28.222" stroke… 13 <font id="EmbeddedFont_1" horiz-adv-x="2048"> 14 …<font-face font-family="Liberation Sans embedded" units-per-em="2048" font-weight="normal" font-st… 15 <missing-glyph horiz-adv-x="2048" d="M 0,0 L 2047,0 2047,2047 0,2047 0,0 Z"/> 16 …-adv-x="874" d="M 314,1082 L 314,396 C 314,325 321,269 335,230 349,191 371,162 402,145 433,128 478… 17 …-adv-x="531" d="M 554,8 C 495,-8 434,-16 372,-16 228,-16 156,66 156,229 L 156,951 31,951 31,1082 1… 18 …-adv-x="980" d="M 1053,542 C 1053,353 1011,212 928,119 845,26 724,-20 565,-20 407,-20 288,28 207,1… 19 …-adv-x="874" d="M 825,0 L 825,686 C 825,757 818,813 804,852 790,891 768,920 737,937 706,954 661,96… [all …]
|
D | te_component.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 …="0 0 14800 15000" preserveAspectRatio="xMidYMid" fill-rule="evenodd" stroke-width="28.222" stroke… 13 <font id="EmbeddedFont_1" horiz-adv-x="2048"> 14 …<font-face font-family="Liberation Sans embedded" units-per-em="2048" font-weight="normal" font-st… 15 <missing-glyph horiz-adv-x="2048" d="M 0,0 L 2047,0 2047,2047 0,2047 0,0 Z"/> 16 …unicode="x" horiz-adv-x="1006" d="M 801,0 L 510,444 217,0 23,0 408,556 41,1082 240,1082 510,661 77… 17 …-adv-x="874" d="M 314,1082 L 314,396 C 314,325 321,269 335,230 349,191 371,162 402,145 433,128 478… 18 …-adv-x="531" d="M 554,8 C 495,-8 434,-16 372,-16 228,-16 156,66 156,229 L 156,951 31,951 31,1082 1… 19 …-adv-x="901" d="M 950,299 C 950,197 912,118 835,63 758,8 650,-20 511,-20 376,-20 273,2 200,47 127,… [all …]
|
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/smp/ |
D | p_256_ecc_pp.c | 3 * Copyright (C) 2006-2015 Broadcom Corporation 9 * http://www.apache.org/licenses/LICENSE-2.0 62 if (multiprecision_iszero(p->z, keyLength)) { in ECC_Double() 63 multiprecision_init(q->z, keyLength); in ECC_Double() 67 x1 = p->x; y1 = p->y; z1 = p->z; in ECC_Double() 68 x3 = q->x; y3 = q->y; z3 = q->z; in ECC_Double() 71 multiprecision_sub_mod(t2, x1, t1, keyLength); // t2=x1-t1 in ECC_Double() 89 multiprecision_sub_mod(x3, x3, t1, keyLength); // x3=x3-t1 in ECC_Double() 90 multiprecision_sub_mod(t1, t3, x3, keyLength); // t1=t3-x3 in ECC_Double() 92 multiprecision_sub_mod(y3, t1, y3, keyLength); // y3=t1-y3 in ECC_Double() [all …]
|
/hal_espressif-3.4.0/components/mbedtls/test/ |
D | test_mbedtls_mpi.c | 1 /* mbedTLS bignum (MPI) self-tests as unit tests 18 print output that can be copy-pasted directly into a Python shell. 25 mbedtls_mpi_write_string(X, 16, buf, sizeof(buf)-1, &n); in mbedtls_mpi_printf() 27 printf("%s = (s=%d) 0x%s\n", name, X->s, buf); in mbedtls_mpi_printf() 64 mbedtls_mpi_write_string(&X, 16, x_buf, sizeof(x_buf)-1, &x_buf_len); in test_bignum_mult_variant() 77 mbedtls_mpi_write_string(&X, 16, x_buf, sizeof(x_buf)-1, &x_buf_len); in test_bignum_mult_variant() 124 …test_bignum_mult("-5D88B669C417EDD02213723546A906B7E9DA7683780E9B54856A2147467ADA316F8819D69486FC8… 126 …"-38990016EB21810E3B5E6AEE339AEE72BB7CD629C4C9270A3D832701A2949BC82B2BE5A7F900C0C99374646998628219… 153 mbedtls_mpi Z = {0}; // Z is non-initialized (the sign Z.s=0) in test_bignum_modexp() local 169 /* Z = (X ^ Y) mod M */ in test_bignum_modexp() [all …]
|
/hal_espressif-3.4.0/components/esp_rom/linux/ |
D | esp_rom_md5.c | 3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> 22 /* ===== start - public domain MD5 implementation ===== */ 24 * This code implements the MD5 message-digest algorithm. 37 * will fill a supplied 16-byte array with the digest. 42 context->buf[0] = 0x67452301; in esp_rom_md5_init() 43 context->buf[1] = 0xefcdab89; in esp_rom_md5_init() 44 context->buf[2] = 0x98badcfe; in esp_rom_md5_init() 45 context->buf[3] = 0x10325476; in esp_rom_md5_init() 47 context->bits[0] = 0; in esp_rom_md5_init() 48 context->bits[1] = 0; in esp_rom_md5_init() [all …]
|
/hal_espressif-3.4.0/components/wpa_supplicant/src/crypto/ |
D | md5-internal.c | 3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> 24 * md5_vector - MD5 hash for data vector 29 * Returns: 0 on success, -1 of failure 37 return -1; in md5_vector() 47 /* ===== start - public domain MD5 implementation ===== */ 49 * This code implements the MD5 message-digest algorithm. 62 * will fill a supplied 16-byte array with the digest. 69 * Note: this code is harmless on little-endian machines. 79 } while (--longs); in byteReverse() 89 ctx->buf[0] = 0x67452301; in MD5Init() [all …]
|
D | md4-internal.c | 35 return -1; in md4_vector() 45 /* ===== start - public domain MD4 implementation ===== */ 49 * This code implements the MD4 message-digest algorithm. 63 * will fill a supplied 16-byte array with the digest. 100 ctx->count = 0; in MD4Init() 101 ctx->state[0] = 0x67452301; in MD4Init() 102 ctx->state[1] = 0xefcdab89; in MD4Init() 103 ctx->state[2] = 0x98badcfe; in MD4Init() 104 ctx->state[3] = 0x10325476; in MD4Init() 116 have = (size_t)((ctx->count >> 3) & (MD4_BLOCK_LENGTH - 1)); in MD4Update() [all …]
|
/hal_espressif-3.4.0/docs/en/api-guides/jtag-debugging/ |
D | building-openocd-windows.rst | 6 …cd-esp32/releases>`_. To quickly setup the binary OpenOCD, instead of compiling it yourself, backu… 20 pacman -S --noconfirm --needed autoconf automake git make \ 21 mingw-w64-i686-gcc \ 22 mingw-w64-i686-toolchain \ 23 mingw-w64-i686-libtool \ 24 mingw-w64-i686-pkg-config \ 25 mingw-w64-cross-winpthreads-git \ 32 …r the {IDF_TARGET_NAME}-enabled variant of OpenOCD are available from Espressif GitHub under https… 35 git clone --recursive https://github.com/espressif/openocd-esp32.git 38 The clone of sources should be now saved in ``~/esp/openocd-esp32`` directory. [all …]
|