/openthread-3.7.0/third_party/mbedtls/repo/library/ |
D | rsa_alt_helpers.c | 62 mbedtls_mpi K; /* Temporary holding the current candidate */ in mbedtls_rsa_deduce_primes() local 91 mbedtls_mpi_init(&K); in mbedtls_rsa_deduce_primes() 117 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&K, primes[attempt])); in mbedtls_rsa_deduce_primes() 120 MBEDTLS_MPI_CHK(mbedtls_mpi_gcd(P, &K, N)); in mbedtls_rsa_deduce_primes() 127 MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&K, &K, &T, N, in mbedtls_rsa_deduce_primes() 134 if (mbedtls_mpi_cmp_int(&K, 1) == 0) { in mbedtls_rsa_deduce_primes() 138 MBEDTLS_MPI_CHK(mbedtls_mpi_add_int(&K, &K, 1)); in mbedtls_rsa_deduce_primes() 139 MBEDTLS_MPI_CHK(mbedtls_mpi_gcd(P, &K, N)); in mbedtls_rsa_deduce_primes() 152 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&K, &K, 1)); in mbedtls_rsa_deduce_primes() 153 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&K, &K, &K)); in mbedtls_rsa_deduce_primes() [all …]
|
D | sha256.c | 295 static const uint32_t K[] = variable 357 tmp = vaddq_u32(sched0, vld1q_u32(&K[0])); in mbedtls_internal_sha256_process_many_a64_crypto() 363 tmp = vaddq_u32(sched1, vld1q_u32(&K[4])); in mbedtls_internal_sha256_process_many_a64_crypto() 369 tmp = vaddq_u32(sched2, vld1q_u32(&K[8])); in mbedtls_internal_sha256_process_many_a64_crypto() 375 tmp = vaddq_u32(sched3, vld1q_u32(&K[12])); in mbedtls_internal_sha256_process_many_a64_crypto() 383 tmp = vaddq_u32(sched0, vld1q_u32(&K[t])); in mbedtls_internal_sha256_process_many_a64_crypto() 390 tmp = vaddq_u32(sched1, vld1q_u32(&K[t + 4])); in mbedtls_internal_sha256_process_many_a64_crypto() 397 tmp = vaddq_u32(sched2, vld1q_u32(&K[t + 8])); in mbedtls_internal_sha256_process_many_a64_crypto() 404 tmp = vaddq_u32(sched3, vld1q_u32(&K[t + 12])); in mbedtls_internal_sha256_process_many_a64_crypto() 473 #define P(a, b, c, d, e, f, g, h, x, K) \ argument [all …]
|
D | sha512.c | 299 static const uint64_t K[80] = variable 424 initial_sum = vaddq_u64(s0, vld1q_u64(&K[0])); in mbedtls_internal_sha512_process_many_a64_crypto() 431 initial_sum = vaddq_u64(s1, vld1q_u64(&K[2])); in mbedtls_internal_sha512_process_many_a64_crypto() 438 initial_sum = vaddq_u64(s2, vld1q_u64(&K[4])); in mbedtls_internal_sha512_process_many_a64_crypto() 445 initial_sum = vaddq_u64(s3, vld1q_u64(&K[6])); in mbedtls_internal_sha512_process_many_a64_crypto() 452 initial_sum = vaddq_u64(s4, vld1q_u64(&K[8])); in mbedtls_internal_sha512_process_many_a64_crypto() 459 initial_sum = vaddq_u64(s5, vld1q_u64(&K[10])); in mbedtls_internal_sha512_process_many_a64_crypto() 466 initial_sum = vaddq_u64(s6, vld1q_u64(&K[12])); in mbedtls_internal_sha512_process_many_a64_crypto() 473 initial_sum = vaddq_u64(s7, vld1q_u64(&K[14])); in mbedtls_internal_sha512_process_many_a64_crypto() 482 initial_sum = vaddq_u64(s0, vld1q_u64(&K[t])); in mbedtls_internal_sha512_process_many_a64_crypto() [all …]
|
D | dhm.c | 135 src = &ctx->K; in mbedtls_dhm_get_value() 433 MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&ctx->K, &GYb, &ctx->X, in mbedtls_dhm_calc_secret() 437 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&ctx->K, &ctx->K, &ctx->Vf)); in mbedtls_dhm_calc_secret() 438 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->K, &ctx->K, &ctx->P)); in mbedtls_dhm_calc_secret() 442 *olen = mbedtls_mpi_size(&ctx->K); in mbedtls_dhm_calc_secret() 443 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->K, output, *olen)); in mbedtls_dhm_calc_secret() 468 mbedtls_mpi_free(&ctx->K); in mbedtls_dhm_free()
|
D | psa_crypto_ffdh.c | 269 mbedtls_mpi P, G, X, GY, K; in mbedtls_psa_ffdh_key_agreement() local 283 mbedtls_mpi_init(&K); in mbedtls_psa_ffdh_key_agreement() 299 MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&K, &GY, &X, &P, NULL)); in mbedtls_psa_ffdh_key_agreement() 301 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K, shared_secret, in mbedtls_psa_ffdh_key_agreement() 311 mbedtls_mpi_free(&K); in mbedtls_psa_ffdh_key_agreement()
|
D | ecjpake.c | 727 mbedtls_ecp_point *K, in mbedtls_ecjpake_derive_k() argument 746 MBEDTLS_MPI_CHK(mbedtls_ecp_muladd(&ctx->grp, K, in mbedtls_ecjpake_derive_k() 749 MBEDTLS_MPI_CHK(mbedtls_ecp_mul(&ctx->grp, K, &ctx->xm2, K, in mbedtls_ecjpake_derive_k() 765 mbedtls_ecp_point K; in mbedtls_ecjpake_derive_secret() local 774 mbedtls_ecp_point_init(&K); in mbedtls_ecjpake_derive_secret() 776 ret = mbedtls_ecjpake_derive_k(ctx, &K, f_rng, p_rng); in mbedtls_ecjpake_derive_secret() 783 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K.X, kx, x_bytes)); in mbedtls_ecjpake_derive_secret() 788 mbedtls_ecp_point_free(&K); in mbedtls_ecjpake_derive_secret() 799 mbedtls_ecp_point K; in mbedtls_ecjpake_write_shared_key() local 801 mbedtls_ecp_point_init(&K); in mbedtls_ecjpake_write_shared_key() [all …]
|
D | ripemd160.c | 118 P((a), (b), (c), (d), (e), (r), (s), F, K); \ in mbedtls_internal_ripemd160_process() 124 #define K 0x00000000 in mbedtls_internal_ripemd160_process() macro 144 #undef K in mbedtls_internal_ripemd160_process() 149 #define K 0x5A827999 in mbedtls_internal_ripemd160_process() macro 169 #undef K in mbedtls_internal_ripemd160_process() 174 #define K 0x6ED9EBA1 in mbedtls_internal_ripemd160_process() macro 194 #undef K in mbedtls_internal_ripemd160_process() 199 #define K 0x8F1BBCDC in mbedtls_internal_ripemd160_process() macro 219 #undef K in mbedtls_internal_ripemd160_process() 224 #define K 0xA953FD4E in mbedtls_internal_ripemd160_process() macro [all …]
|
D | hmac_drbg.c | 50 unsigned char K[MBEDTLS_MD_MAX_SIZE]; in mbedtls_hmac_drbg_update() local 72 if ((ret = mbedtls_md_hmac_finish(&ctx->md_ctx, K)) != 0) { in mbedtls_hmac_drbg_update() 77 if ((ret = mbedtls_md_hmac_starts(&ctx->md_ctx, K, md_len)) != 0) { in mbedtls_hmac_drbg_update() 90 mbedtls_platform_zeroize(K, sizeof(K)); in mbedtls_hmac_drbg_update()
|
D | sha1.c | 103 (e) += S((a), 5) + F((b), (c), (d)) + K + (x); \ in mbedtls_internal_sha1_process() 114 #define K 0x5A827999 in mbedtls_internal_sha1_process() macro 137 #undef K in mbedtls_internal_sha1_process() 141 #define K 0x6ED9EBA1 in mbedtls_internal_sha1_process() macro 164 #undef K in mbedtls_internal_sha1_process() 168 #define K 0x8F1BBCDC in mbedtls_internal_sha1_process() macro 191 #undef K in mbedtls_internal_sha1_process() 195 #define K 0xCA62C1D6 in mbedtls_internal_sha1_process() macro 218 #undef K in mbedtls_internal_sha1_process()
|
D | rsa.c | 2929 mbedtls_mpi K; in mbedtls_rsa_self_test() local 2931 mbedtls_mpi_init(&K); in mbedtls_rsa_self_test() 2934 MBEDTLS_MPI_CHK(mbedtls_mpi_read_string(&K, 16, RSA_N)); in mbedtls_rsa_self_test() 2935 MBEDTLS_MPI_CHK(mbedtls_rsa_import(&rsa, &K, NULL, NULL, NULL, NULL)); in mbedtls_rsa_self_test() 2936 MBEDTLS_MPI_CHK(mbedtls_mpi_read_string(&K, 16, RSA_P)); in mbedtls_rsa_self_test() 2937 MBEDTLS_MPI_CHK(mbedtls_rsa_import(&rsa, NULL, &K, NULL, NULL, NULL)); in mbedtls_rsa_self_test() 2938 MBEDTLS_MPI_CHK(mbedtls_mpi_read_string(&K, 16, RSA_Q)); in mbedtls_rsa_self_test() 2939 MBEDTLS_MPI_CHK(mbedtls_rsa_import(&rsa, NULL, NULL, &K, NULL, NULL)); in mbedtls_rsa_self_test() 2940 MBEDTLS_MPI_CHK(mbedtls_mpi_read_string(&K, 16, RSA_D)); in mbedtls_rsa_self_test() 2941 MBEDTLS_MPI_CHK(mbedtls_rsa_import(&rsa, NULL, NULL, NULL, &K, NULL)); in mbedtls_rsa_self_test() [all …]
|
D | ssl_tls12_client.c | 2745 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: K ", &ssl->handshake->dhm_ctx.K); in ssl_write_client_key_exchange() 3103 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: K ", &ssl->handshake->dhm_ctx.K); in ssl_write_client_key_exchange()
|
D | ssl_tls12_server.c | 3718 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: K ", &ssl->handshake->dhm_ctx.K); in ssl_parse_client_key_exchange() 3903 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: K ", &ssl->handshake->dhm_ctx.K); in ssl_parse_client_key_exchange()
|
D | ssl_tls.c | 7465 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: K ", &ssl->handshake->dhm_ctx.K); in mbedtls_ssl_psk_derive_premaster()
|
/openthread-3.7.0/third_party/mbedtls/repo/tests/data_files/ |
D | rsa_pkcs8_pbes2_pbkdf2_2048_3des.pem | 14 aaiIGd/a2YxB5yW0oAIBBFnm5koTWeKW/K+LDWOE67S2qSxIfr1goFxIDbe1Y2Mv 27 u5n0Ocu6UrKxLdlpv9hLHTMbvUZMiLOef7IK+K+Bxc5dXttPe7rtBNhzJp00by8q
|
D | pkcs7-rsa-sha256-2.key | 8 NqwCKUJLAgMBAAECgf8TtKi4/K/+YYckvnzIuLMJymz684FhqwtxRhVPhB8VaR3B
|
D | pkcs7-rsa-sha256-2.pem | 28 NqwCKUJLAgMBAAECgf8TtKi4/K/+YYckvnzIuLMJymz684FhqwtxRhVPhB8VaR3B
|
D | rsa_pkcs1_4096_aes128.pem | 43 Daq5gnCBeTwNwiSkoM5WjjlGGl3K1ubm8t1dEbjgL0tUHEv/A+cD94SkqwdPiL+K
|
D | rsa_pkcs1_4096_3des.pem | 19 4zMFpLuhxLAI6IJlqjM8TQhRmP79oGxolF/rNyOR+3K+HFjEFaBW/Cm6WZVKYV6N
|
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_pem.data | 69 …7\x6f\x72\x6c\x64\x01\x02\x03\x04\x05" | openssl aes-128-cbc -e -base64 -p -K "bbb0ddff1b944b3cc68… 76 …7\x6f\x72\x6c\x64\x11\x11\x11\x11\x11" | openssl aes-128-cbc -e -base64 -p -K "bbb0ddff1b944b3cc68… 83 # echo -n -e "\x68\x65\x6c\x6c\x6f\x09\x09\x09" | openssl des-cbc -e -base64 -p -K "bbb0ddff1b944…
|
D | test_suite_dhm.function | 173 TEST_ASSERT(check_get_value(&ctx_cli, MBEDTLS_DHM_PARAM_K, &ctx_srv.K)); 176 TEST_ASSERT(check_get_value(&ctx_srv, MBEDTLS_DHM_PARAM_K, &ctx_cli.K));
|
D | test_suite_psa_crypto.data | 2764 PSA symmetric encrypt validation: ChaCha20, K=0 N=0 2768 PSA symmetric encrypt validation: ChaCha20, K=rand N=rand 2772 PSA symmetric encrypt multipart: ChaCha20, K=0 N=0 2776 PSA symmetric encrypt multipart: ChaCha20, K=rand N=rand 2790 PSA symmetric decrypt multipart: ChaCha20, K=rand N=rand
|
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/ |
D | dhm.h | 107 mbedtls_mpi MBEDTLS_PRIVATE(K); /*!< The shared secret = \c G^(XY) mod \c P. */
|
/openthread-3.7.0/third_party/mbedtls/repo/docs/architecture/ |
D | alternative-implementations.md | 50 …_DEBUG_C` is enabled, `mbedtls_dhm_context` must have the fields `P`, `Q`, `G`, `GX`, `GY` and `K`.
|
/openthread-3.7.0/third_party/mbedtls/repo/tests/ |
D | ssl-opt.sh | 552 *\ MBEDTLS_KEY_EXCHANGE_PS[^K]*) PSK_ONLY="NO";;
|
/openthread-3.7.0/third_party/mbedtls/repo/ |
D | ChangeLog | 4814 * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan). 4816 interpret semicolons as comment delimiters (found by Barry K. Nathan). 4861 (found by Barry K. Nathan) 5290 * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan). 5292 interpret semicolons as comment delimiters (found by Barry K. Nathan).
|