Home
last modified time | relevance | path

Searched +full:- +full:y (Results 1 – 25 of 119) sorted by relevance

12345

/openthread-3.4.0/third_party/mbedtls/repo/library/
Dconstant_time.c2 * Constant-time functions
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
63 unsigned char x = A[i], y = B[i]; in mbedtls_ct_memcmp() local
64 diff |= x ^ y; in mbedtls_ct_memcmp()
73 * well-defined and precisely what we want to do here */ in mbedtls_ct_uint_mask()
78 return( - ( ( value | - value ) >> ( sizeof( value ) * 8 - 1 ) ) ); in mbedtls_ct_uint_mask()
89 * but this is well-defined and precisely what we want to do here. */ in mbedtls_ct_size_mask()
94 return( - ( ( value | - value ) >> ( sizeof( value ) * 8 - 1 ) ) ); in mbedtls_ct_size_mask()
107 * well-defined and precisely what we want to do here */ in mbedtls_ct_mpi_uint_mask()
[all …]
Ddes.c2 * FIPS-46-3 compliant Triple-DES implementation
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
23 * http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf
48 * Expanded DES S-boxes
211 * PC1: left and right halves bit-swap
232 #define DES_IP(X,Y) \ argument
235 T = (((X) >> 4) ^ (Y)) & 0x0F0F0F0F; (Y) ^= T; (X) ^= (T << 4); \
236 T = (((X) >> 16) ^ (Y)) & 0x0000FFFF; (Y) ^= T; (X) ^= (T << 16); \
237 T = (((Y) >> 2) ^ (X)) & 0x33333333; (X) ^= T; (Y) ^= (T << 2); \
[all …]
Darc4.c5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
68 ctx->x = 0; in mbedtls_arc4_setup()
69 ctx->y = 0; in mbedtls_arc4_setup()
70 m = ctx->m; in mbedtls_arc4_setup()
94 int x, y, a, b; in mbedtls_arc4_crypt() local
98 x = ctx->x; in mbedtls_arc4_crypt()
99 y = ctx->y; in mbedtls_arc4_crypt()
100 m = ctx->m; in mbedtls_arc4_crypt()
105 y = ( y + a ) & 0xFF; b = m[y]; in mbedtls_arc4_crypt()
[all …]
Dbignum.c2 * Multi-precision integer library
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
21 * The following sources were referenced in the design of this Multi-precision
24 * [1] Handbook of Applied Cryptography - 1997
27 * [2] Multi-Precision Math
31 * [3] GNU Multi-Precision Arithmetic Library
68 #define MPI_SIZE_T_MAX ( (size_t) -1 ) /* SIZE_T_MAX is not standard */
90 X->s = 1; in mbedtls_mpi_init()
91 X->n = 0; in mbedtls_mpi_init()
[all …]
Dconstant_time_internal.h2 * Constant-time functions
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
37 * - if \p value == 0, return the all-bits 0 mask, aka 0
38 * - otherwise, return the all-bits 1 mask, aka (unsigned) -1
40 * This function can be used to write constant-time code by replacing branches
45 * \return Zero if \p value is zero, otherwise all-bits-one.
52 * - if \p value == 0, return the all-bits 0 mask, aka 0
53 * - otherwise, return the all-bits 1 mask, aka (size_t) -1
55 * This function can be used to write constant-time code by replacing branches
[all …]
Daes.c2 * FIPS-197 compliant AES implementation
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
23 * http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
62 static int aes_padlock_ace = -1;
67 * Forward S-box
198 * Reverse S-box
341 * Forward S-box & tables
352 * Reverse S-box & tables
372 #define MUL(x,y) ( ( (x) && (y) ) ? pow[(log[(x)]+log[(y)]) % 255] : 0 ) argument
[all …]
Decp.c5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
24 * GECC = Guide to Elliptic Curve Cryptography - Hankerson, Menezes, Vanstone
25 * FIPS 186-3 http://csrc.nist.gov/publications/fips/fips186-3/fips_186-3.pdf
29 * [Curve25519] http://cr.yp.to/ecdh/curve25519-20060209.pdf
31 * [2] CORON, Jean-S'ebastien. Resistance against differential power analysis
33 * Embedded Systems. Springer Berlin Heidelberg, 1999. p. 292-302.
34 * <http://link.springer.com/chapter/10.1007/3-540-48059-5_25>
56 * - The alternative implementation must be activated by
59 * - mbedtls_internal_ecp_free() must \b only be called when the alternative
[all …]
Dccm.c2 * NIST SP800-38C compliant CCM implementation
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
22 * http://csrc.nist.gov/publications/nistpubs/800-38C/SP800-38C_updated-July20_2007.pdf
23 * RFC 3610 "Counter with CBC-MAC (CCM)"
83 if( cipher_info->block_size != 16 ) in mbedtls_ccm_setkey()
86 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_ccm_setkey()
88 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_ccm_setkey()
91 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_ccm_setkey()
107 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_ccm_free()
[all …]
/openthread-3.4.0/third_party/mbedtls/repo/3rdparty/everest/library/kremlib/
DFStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.c5-fc89 -fparentheses -fno-shadow -header /mnt/e/everest/verify/hdrB9w -minimal -fparentheses -fcurl…
19 return xnx - (uint64_t)1U; in FStar_UInt64_eq_mask()
25 uint64_t y = b; in FStar_UInt64_gte_mask() local
26 uint64_t x_xor_y = x ^ y; in FStar_UInt64_gte_mask()
27 uint64_t x_sub_y = x - y; in FStar_UInt64_gte_mask()
28 uint64_t x_sub_y_xor_y = x_sub_y ^ y; in FStar_UInt64_gte_mask()
32 return x_xor_q_ - (uint64_t)1U; in FStar_UInt64_gte_mask()
41 return xnx - (uint32_t)1U; in FStar_UInt32_eq_mask()
47 uint32_t y = b; in FStar_UInt32_gte_mask() local
48 uint32_t x_xor_y = x ^ y; in FStar_UInt32_gte_mask()
[all …]
DFStar_UInt128_extracted.c5-fc89 -fparentheses -fno-shadow -header /mnt/e/everest/verify/hdrB9w -minimal -fparentheses -fcurl…
27 return (a ^ ((a ^ b) | ((a - b) ^ b))) >> (uint32_t)63U; in FStar_UInt128_constant_time_carry()
60 flat = { a.low - b.low, a.high - b.high - FStar_UInt128_carry(a.low, a.low - b.low) }; in FStar_UInt128_sub()
68 flat = { a.low - b.low, a.high - b.high - FStar_UInt128_carry(a.low, a.low - b.low) }; in FStar_UInt128_sub_underspec()
76 flat = { a.low - b.low, a.high - b.high - FStar_UInt128_carry(a.low, a.low - b.low) }; in FStar_UInt128_sub_mod_impl()
113 return (hi << s) + (lo >> (FStar_UInt128_u32_64 - s)); in FStar_UInt128_add_u64_shift_left()
139 FStar_UInt128_uint128 flat = { (uint64_t)0U, a.low << (s - FStar_UInt128_u32_64) }; in FStar_UInt128_shift_left_large()
157 return (lo >> s) + (hi << (FStar_UInt128_u32_64 - s)); in FStar_UInt128_add_u64_shift_right()
183 FStar_UInt128_uint128 flat = { a.high >> (s - FStar_UInt128_u32_64), (uint64_t)0U }; in FStar_UInt128_shift_right_large()
341 FStar_UInt128_uint128 FStar_UInt128_mul32(uint64_t x, uint32_t y) in FStar_UInt128_mul32() argument
[all …]
/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_mpi.function14 if( X->s != 1 && X->s != -1 )
16 if( mbedtls_mpi_bitlen( X ) == 0 && X->s != 1 )
29 * This function is called by the Miller-Rabin primality test each time it
30 * chooses a random witness. The witnesses (or non-witnesses as provided by the
40 if( random == NULL || random->data->x == NULL || buf == NULL )
41 return( -1 );
43 if( random->pos + random->chunk_len > random->data->len
44 || random->chunk_len > len )
46 return( -1 );
56 memcpy( buf + len - random->chunk_len, &random->data->x[random->pos],
[all …]
Dtest_suite_ecp.function13 #define ECP_PF_UNKNOWN -1
388 TEST_ASSERT( by_id->bit_size == size );
407 TEST_ASSERT( mbedtls_test_read_mpi( &P.Y, 16, y_hex ) == 0 );
435 * For reference, with mbed TLS 2.4 and default settings, for P-256:
436 * - Random point mult: ~3250M
437 * - Cold base point mult: ~3300M
438 * - Hot base point mult: ~1100M
440 * - Random point mult: ~3850M
476 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R.Y, &yA ) == 0 );
481 /* Non-base point case */
[all …]
/openthread-3.4.0/tools/harness-simulation/harness/
Dinstall.bat29 xcopy /E /Y Thread_Harness %THREADDIR%\Thread_Harness
30 copy /Y ..\..\harness-thci\OpenThread.py %THREADDIR%\Thread_Harness\THCI
31 copy /Y ..\..\harness-thci\OpenThread_BR.py %THREADDIR%\Thread_Harness\THCI
32 copy /Y ..\..\harness-thci\OpenThread.png %THREADDIR%\Web\images
33 copy /Y ..\..\harness-thci\OpenThread_BR.png %THREADDIR%\Web\images
34 copy /Y ..\posix\config.yml %THREADDIR%\Thread_Harness\simulation
35 xcopy /E /Y ..\posix\sniffer_sim\proto %THREADDIR%\Thread_Harness\simulation\Sniffer\proto
37 %THREADDIR%\Python27\python.exe -m pip install --upgrade pip
38 %THREADDIR%\Python27\python.exe -m pip install -r requirements.txt
43 …systemdrive%\GRL\Thread1.2\Python27\python.exe -m grpc_tools.protoc -I%BASEDIR% --python_out=%BASE…
/openthread-3.4.0/third_party/mbedtls/repo/programs/pkey/
Dmpi_demo.c5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
56 mbedtls_mpi E, P, Q, N, H, D, X, Y, Z; in main() local
59 mbedtls_mpi_init( &H ); mbedtls_mpi_init( &D ); mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Y ); in main()
81 mbedtls_mpi_write_file( " D = E^-1 mod (P-1)*(Q-1) = ", in main()
87 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &Y, &X, &E, &N, NULL ) ); in main()
88 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &Z, &Y, &D, &N, NULL ) ); in main()
92 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( " Y (ciphertext) = X^E mod N = ", &Y, 10, NULL ) ); in main()
93 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( " Z (decrypted) = Y^D mod N = ", &Z, 10, NULL ) ); in main()
100 mbedtls_mpi_free( &H ); mbedtls_mpi_free( &D ); mbedtls_mpi_free( &X ); mbedtls_mpi_free( &Y ); in main()
/openthread-3.4.0/third_party/mbedtls/repo/include/mbedtls/
Dbignum.h4 * \brief Multi-precision integer library
8 * SPDX-License-Identifier: Apache-2.0
14 * http://www.apache.org/licenses/LICENSE-2.0
39 #define MBEDTLS_ERR_MPI_FILE_IO_ERROR -0x0002
41 #define MBEDTLS_ERR_MPI_BAD_INPUT_DATA -0x0004
43 #define MBEDTLS_ERR_MPI_INVALID_CHARACTER -0x0006
45 #define MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL -0x0008
47 #define MBEDTLS_ERR_MPI_NEGATIVE_VALUE -0x000A
49 #define MBEDTLS_ERR_MPI_DIVISION_BY_ZERO -0x000C
51 #define MBEDTLS_ERR_MPI_NOT_ACCEPTABLE -0x000E
[all …]
Dversion.h4 * \brief Run-time version information
8 * SPDX-License-Identifier: Apache-2.0
14 * http://www.apache.org/licenses/LICENSE-2.0
23 * This set of compile-time defines and run-time variables can be used to
36 * The version number x.y.z is split into three parts.
67 * Get the version string ("x.y.z").
75 * Get the full version string ("mbed TLS x.y.z").
89 * Multi-threading support.
98 * -1 if the feature is not present and
99 * -2 if support for feature checking as a whole was not
/openthread-3.4.0/.github/workflows/
Dbuild.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
49 runs-on: ubuntu-22.04
51 - name: Harden Runner
52 uses: step-security/harden-runner@6b3083af2869dc3314a0257a42f4af696cc79ba3 # v2.3.1
54 egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
56 - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
[all …]
Dsimulation-1.1.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
49 runs-on: ubuntu-20.04
57 - name: Harden Runner
58 uses: step-security/harden-runner@6b3083af2869dc3314a0257a42f4af696cc79ba3 # v2.3.1
60 egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
62 - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
[all …]
Dposix.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
48 expects-linux:
49 runs-on: ubuntu-20.04
51 CFLAGS: -DCLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER=1 -DOPENTHREAD_CONFIG_MLE_MAX_CHILDREN=15
52 CXXFLAGS: -DCLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER=1 -DOPENTHREAD_CONFIG_MLE_MAX_CHILDREN=15
54 - name: Harden Runner
[all …]
/openthread-3.4.0/third_party/mbedtls/repo/tests/include/test/
Dmacros.h9 * SPDX-License-Identifier: Apache-2.0
15 * http://www.apache.org/licenses/LICENSE-2.0
69 * - Mark this test case as failed.
70 * - Print a message identifying the failure.
71 * - Jump to the \c exit label.
93 * \param expr1 An integral-typed expression to evaluate.
94 * \param expr2 Another integral-typed expression to evaluate.
271 * accept all of the parameter values they're supposed to accept - eg
282 * legal values even if this option is disabled - only in that case,
293 mbedtls_fprintf( stderr, "Assertion Failed at %s:%d - %s\n", \
[all …]
/openthread-3.4.0/etc/docker/android-trusty/
DDockerfile36 ENV ANDROID_JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
39 ENV ANDROID_NDK_PATH=/opt/ndk-bundle
43 RUN apt-get -y update && apt-get --no-install-recommends install -y \
44 gcc-multilib \
45 g++-multilib \
52 RUN wget https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip \
53 && unzip android-ndk-r17c-linux-x86_64.zip > /dev/null \
54 && mv android-ndk-r17c $ANDROID_NDK_PATH \
55 && rm android-ndk-r17c-linux-x86_64.zip
58 RUN mkdir build && cd build && git init && git pull --depth 1 https://android.googlesource.com/plat…
[all …]
/openthread-3.4.0/third_party/mbedtls/repo/tests/data_files/
Dtest-ca-alt.key1 -----BEGIN RSA PRIVATE KEY-----
16 Y/pqAw9fluvlYpgAyGyG0k8d3xb0uUnV1u+rvMZiOiJQerNawMc/PoYkhhRPKXkM
22 VMkEU3S72vVvzJFe1jovL6dl85wAOAybsA6QAdHDY+v/j7HHa597RyNRU6lbMc/Y
27 -----END RSA PRIVATE KEY-----
Drsa_pkcs1_4096_aes256.pem1 -----BEGIN RSA PRIVATE KEY-----
2 Proc-Type: 4,ENCRYPTED
3 DEK-Info: AES-256-CBC,52B3A521A4BE45F79E26667FB6F79A81
37 uxxHANzHRImndCsFiWfX5Wm5AuY9Rj5EbW3D5vsGiAT2wm9Ire+OkIgAzOpp+Y+b
48 Ka9q9E6K1Y+Y+4gdDkRnssG0ymLk+F164+6cuCAVALwGwW+VtDyc1e1cc+445siC
54 -----END RSA PRIVATE KEY-----
/openthread-3.4.0/etc/docker/environment/
DDockerfile5 ENV LANG en_US.UTF-8
7 RUN set -x \
8 && apt-get update -y \
9 && apt-get install -y locales \
10 && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
11 && apt-get --no-install-recommends install -fy \
14 ninja-build \
16 python3-pip \
17 python3-setuptools \
18 software-properties-common \
[all …]
/openthread-3.4.0/tests/toranj/
Dstart.sh46 while read -r interface; do
48 done < <(ifconfig 2>/dev/null | grep -o "wpan[0-9]*")
58 if sudo -E "${python_app}" "$1"; then
64 if [ "$counter" -lt 7 ]; then
73 tail -n 40 "${log_file_name}"*.log
81 sudo apt-get --no-install-recommends install -y dbus libdbus-1-dev
82 sudo apt-get --no-install-recommends install -y autoconf-archive
83 sudo apt-get --no-install-recommends install -y libarchive-tools
84 sudo apt-get --no-install-recommends install -y libtool
85 sudo apt-get --no-install-recommends install -y libglib2.0-dev
[all …]

12345