Home
last modified time | relevance | path

Searched refs:D (Results 1 – 25 of 54) sorted by relevance

123

/mbedtls-3.5.0/library/
Dmd5.c80 uint32_t X[16], A, B, C, D; in mbedtls_internal_md5_process() member
113 local.D = ctx->state[3]; in mbedtls_internal_md5_process()
117 P(local.A, local.B, local.C, local.D, 0, 7, 0xD76AA478); in mbedtls_internal_md5_process()
118 P(local.D, local.A, local.B, local.C, 1, 12, 0xE8C7B756); in mbedtls_internal_md5_process()
119 P(local.C, local.D, local.A, local.B, 2, 17, 0x242070DB); in mbedtls_internal_md5_process()
120 P(local.B, local.C, local.D, local.A, 3, 22, 0xC1BDCEEE); in mbedtls_internal_md5_process()
121 P(local.A, local.B, local.C, local.D, 4, 7, 0xF57C0FAF); in mbedtls_internal_md5_process()
122 P(local.D, local.A, local.B, local.C, 5, 12, 0x4787C62A); in mbedtls_internal_md5_process()
123 P(local.C, local.D, local.A, local.B, 6, 17, 0xA8304613); in mbedtls_internal_md5_process()
124 P(local.B, local.C, local.D, local.A, 7, 22, 0xFD469501); in mbedtls_internal_md5_process()
[all …]
Dripemd160.c85 uint32_t A, B, C, D, E, Ap, Bp, Cp, Dp, Ep, X[16]; in mbedtls_internal_ripemd160_process() member
108 local.D = local.Dp = ctx->state[3]; in mbedtls_internal_ripemd160_process()
139 P2(local.A, local.B, local.C, local.D, local.E, 0, 11, 5, 8); in mbedtls_internal_ripemd160_process()
140 P2(local.E, local.A, local.B, local.C, local.D, 1, 14, 14, 9); in mbedtls_internal_ripemd160_process()
141 P2(local.D, local.E, local.A, local.B, local.C, 2, 15, 7, 9); in mbedtls_internal_ripemd160_process()
142 P2(local.C, local.D, local.E, local.A, local.B, 3, 12, 0, 11); in mbedtls_internal_ripemd160_process()
143 P2(local.B, local.C, local.D, local.E, local.A, 4, 5, 9, 13); in mbedtls_internal_ripemd160_process()
144 P2(local.A, local.B, local.C, local.D, local.E, 5, 8, 2, 15); in mbedtls_internal_ripemd160_process()
145 P2(local.E, local.A, local.B, local.C, local.D, 6, 7, 11, 15); in mbedtls_internal_ripemd160_process()
146 P2(local.D, local.E, local.A, local.B, local.C, 7, 9, 4, 5); in mbedtls_internal_ripemd160_process()
[all …]
Dsha1.c81 uint32_t temp, W[16], A, B, C, D, E; in mbedtls_internal_sha1_process() member
122 local.D = ctx->state[3]; in mbedtls_internal_sha1_process()
128 P(local.A, local.B, local.C, local.D, local.E, local.W[0]); in mbedtls_internal_sha1_process()
129 P(local.E, local.A, local.B, local.C, local.D, local.W[1]); in mbedtls_internal_sha1_process()
130 P(local.D, local.E, local.A, local.B, local.C, local.W[2]); in mbedtls_internal_sha1_process()
131 P(local.C, local.D, local.E, local.A, local.B, local.W[3]); in mbedtls_internal_sha1_process()
132 P(local.B, local.C, local.D, local.E, local.A, local.W[4]); in mbedtls_internal_sha1_process()
133 P(local.A, local.B, local.C, local.D, local.E, local.W[5]); in mbedtls_internal_sha1_process()
134 P(local.E, local.A, local.B, local.C, local.D, local.W[6]); in mbedtls_internal_sha1_process()
135 P(local.D, local.E, local.A, local.B, local.C, local.W[7]); in mbedtls_internal_sha1_process()
[all …]
Drsa_alt_helpers.c63 mbedtls_mpi const *E, mbedtls_mpi const *D, in mbedtls_rsa_deduce_primes() argument
92 mbedtls_mpi_cmp_int(D, 1) <= 0 || in mbedtls_rsa_deduce_primes()
93 mbedtls_mpi_cmp_mpi(D, N) >= 0 || in mbedtls_rsa_deduce_primes()
107 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&T, D, E)); in mbedtls_rsa_deduce_primes()
197 mbedtls_mpi *D) in mbedtls_rsa_deduce_private_exponent() argument
202 if (D == NULL || mbedtls_mpi_cmp_int(D, 0) != 0) { in mbedtls_rsa_deduce_private_exponent()
220 MBEDTLS_MPI_CHK(mbedtls_mpi_gcd(D, &K, &L)); in mbedtls_rsa_deduce_private_exponent()
224 MBEDTLS_MPI_CHK(mbedtls_mpi_div_mpi(&K, NULL, &K, D)); in mbedtls_rsa_deduce_private_exponent()
227 MBEDTLS_MPI_CHK(mbedtls_mpi_inv_mod(D, E, &K)); in mbedtls_rsa_deduce_private_exponent()
238 const mbedtls_mpi *D, mbedtls_mpi *DP, in mbedtls_rsa_deduce_crt() argument
[all …]
Daes.c99 V(A5, 63, 63, C6), V(84, 7C, 7C, F8), V(99, 77, 77, EE), V(8D, 7B, 7B, F6), \
100 V(0D, F2, F2, FF), V(BD, 6B, 6B, D6), V(B1, 6F, 6F, DE), V(54, C5, C5, 91), \
101 V(50, 30, 30, 60), V(03, 01, 01, 02), V(A9, 67, 67, CE), V(7D, 2B, 2B, 56), \
102 V(19, FE, FE, E7), V(62, D7, D7, B5), V(E6, AB, AB, 4D), V(9A, 76, 76, EC), \
103 V(45, CA, CA, 8F), V(9D, 82, 82, 1F), V(40, C9, C9, 89), V(87, 7D, 7D, FA), \
107 V(C2, B7, B7, 75), V(1C, FD, FD, E1), V(AE, 93, 93, 3D), V(6A, 26, 26, 4C), \
111 V(0C, 04, 04, 08), V(52, C7, C7, 95), V(65, 23, 23, 46), V(5E, C3, C3, 9D), \
113 V(09, 07, 07, 0E), V(36, 12, 12, 24), V(9B, 80, 80, 1B), V(3D, E2, E2, DF), \
115 V(1B, 09, 09, 12), V(9E, 83, 83, 1D), V(74, 2C, 2C, 58), V(2E, 1A, 1A, 34), \
116 V(2D, 1B, 1B, 36), V(B2, 6E, 6E, DC), V(EE, 5A, 5A, B4), V(FB, A0, A0, 5B), \
[all …]
Drsa_alt_helpers.h92 mbedtls_mpi const *D,
119 mbedtls_mpi *D);
143 const mbedtls_mpi *D, mbedtls_mpi *DP,
178 const mbedtls_mpi *Q, const mbedtls_mpi *D,
213 const mbedtls_mpi *D, const mbedtls_mpi *DP,
Drsa.c76 const mbedtls_mpi *D, const mbedtls_mpi *E) in mbedtls_rsa_import() argument
83 (D != NULL && (ret = mbedtls_mpi_copy(&ctx->D, D)) != 0) || in mbedtls_rsa_import()
99 unsigned char const *D, size_t D_len, in mbedtls_rsa_import_raw() argument
117 if (D != NULL) { in mbedtls_rsa_import_raw()
118 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(&ctx->D, D, D_len)); in mbedtls_rsa_import_raw()
189 if (is_priv && mbedtls_mpi_cmp_int(&ctx->D, 0) <= 0) { in rsa_check_context()
235 have_D = (mbedtls_mpi_cmp_int(&ctx->D, 0) != 0); in mbedtls_rsa_complete()
284 ret = mbedtls_rsa_deduce_primes(&ctx->N, &ctx->E, &ctx->D, in mbedtls_rsa_complete()
294 &ctx->D)) != 0) { in mbedtls_rsa_complete()
306 ret = mbedtls_rsa_deduce_crt(&ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_complete()
[all …]
/mbedtls-3.5.0/scripts/data_files/
Dvs6-main-template.dsp43 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
44 # ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /YX /F…
66 # ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
67 # ADD CPP /nologo /W3 /GX /Z7 /Od /I "../../include" /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /Y…
Dvs6-app-template.dsp43 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
44 # ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
66 # ADD BASE CPP /nologo /W3 /Gm /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD …
67 # ADD CPP /nologo /W3 /Gm /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ …
/mbedtls-3.5.0/programs/pkey/
Dmpi_demo.c43 mbedtls_mpi E, P, Q, N, H, D, X, Y, Z; in main() local
46 mbedtls_mpi_init(&H); mbedtls_mpi_init(&D); mbedtls_mpi_init(&X); mbedtls_mpi_init(&Y); in main()
66 MBEDTLS_MPI_CHK(mbedtls_mpi_inv_mod(&D, &E, &H)); in main()
69 &D, 10, NULL); in main()
75 MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&Z, &Y, &D, &N, NULL)); in main()
87 mbedtls_mpi_free(&H); mbedtls_mpi_free(&D); mbedtls_mpi_free(&X); mbedtls_mpi_free(&Y); in main()
Drsa_genkey.c59 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
67 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E); mbedtls_mpi_init(&DP); in main()
93 if ((ret = mbedtls_rsa_export(&rsa, &N, &P, &Q, &D, &E)) != 0 || in main()
120 (ret = mbedtls_mpi_write_file("D = ", &D, 16, fpriv)) != 0 || in main()
144 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in main()
Drsa_sign.c53 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
58 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E); mbedtls_mpi_init(&DP); in main()
82 (ret = mbedtls_mpi_read_file(&D, 16, f)) != 0 || in main()
94 if ((ret = mbedtls_rsa_import(&rsa, &N, &P, &Q, &D, &E)) != 0) { in main()
160 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in main()
Drsa_decrypt.c56 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
83 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E); mbedtls_mpi_init(&DP); in main()
106 (ret = mbedtls_mpi_read_file(&D, 16, f)) != 0 || in main()
119 if ((ret = mbedtls_rsa_import(&rsa, &N, &P, &Q, &D, &E)) != 0) { in main()
179 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in main()
Ddh_server.c80 mbedtls_mpi N, P, Q, D, E; in main() local
89 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E); in main()
121 (ret = mbedtls_mpi_read_file(&D, 16, f)) != 0 || in main()
131 if ((ret = mbedtls_rsa_import(&rsa, &N, &P, &Q, &D, &E)) != 0) { in main()
291 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); in main()
Dkey_app.c91 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
103 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E); mbedtls_mpi_init(&DP); in main()
207 if ((ret = mbedtls_rsa_export(rsa, &N, &P, &Q, &D, &E)) != 0 || in main()
215 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("D: ", &D, 16, NULL)); in main()
311 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in main()
Dgen_key.c183 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
196 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E); mbedtls_mpi_init(&DP); in main()
350 if ((ret = mbedtls_rsa_export(rsa, &N, &P, &Q, &D, &E)) != 0 || in main()
358 mbedtls_mpi_write_file("D: ", &D, 16, NULL); in main()
404 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in main()
Dkey_app_writer.c206 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
220 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E); mbedtls_mpi_init(&DP); in main()
322 if ((ret = mbedtls_rsa_export(rsa, &N, &P, &Q, &D, &E)) != 0 || in main()
330 mbedtls_mpi_write_file("D: ", &D, 16, NULL); in main()
418 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in main()
Drsa_priv.txt3 D = 589552BB4F2F023ADDDD5586D0C8FD857512D82080436678D07F984A29D892D31F1F7000FC5A39A0F73E27D885E4724…
/mbedtls-3.5.0/tests/suites/
Dtest_suite_rsa.function645 TEST_ASSERT(mbedtls_test_read_mpi(&ctx.D, input_D) == 0);
704 TEST_ASSERT(mbedtls_test_read_mpi(&prv.D, input_D) == 0);
758 mbedtls_mpi N, P, Pp, Q, Qp, D, E;
763 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E);
766 TEST_ASSERT(mbedtls_test_read_mpi(&D, input_D) == 0);
772 TEST_ASSERT(mbedtls_mpi_add_int(&D, &D, 2) == 0);
775 /* Try to deduce P, Q from N, D, E only. */
776 TEST_ASSERT(mbedtls_rsa_deduce_primes(&N, &D, &E, &P, &Q) == result);
788 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E);
799 mbedtls_mpi P, Q, D, Dp, E, R, Rp;
[all …]
Dtest_suite_rsa.data297 RSA Check Private key #6 (No D)
464 RSA Import (N,P,Q,D,E)
467 RSA Import (N,P,Q,D,E), inconsistent
470 RSA Import (N,P,Q,D,E), successive
473 RSA Import (N,P,Q,D,E), successive, inconsistent
476 RSA Import (-,P,Q,D,E)
479 RSA Import (-,P,Q,D,E), successive
482 RSA Import (N,-,-,D,E)
485 RSA Import (N,-,-,D,E), successive
518 RSA Import Raw (N,P,Q,D,E), complete private key
[all …]
/mbedtls-3.5.0/visualc/VS2013/
DmbedTLS.sln43 …0-8D11-00A0C91BC942}") = "dh_server", "dh_server.vcxproj", "{8D91B804-E2CE-142D-8E06-FBB037ED1F65}"
73 …1D0-8D11-00A0C91BC942}") = "mpi_demo", "mpi_demo.vcxproj", "{A59FAA0B-9C34-1F99-794D-A365A3AA8CCE}"
148 …A0C91BC942}") = "key_ladder_demo", "key_ladder_demo.vcxproj", "{778777A0-393D-45E8-83C1-EAF487236F…
158 …11-00A0C91BC942}") = "gen_entropy", "gen_entropy.vcxproj", "{DE695064-13C3-18B0-378D-8B22672BF3F4}"
178 …-8D11-00A0C91BC942}") = "mini_client", "mini_client.vcxproj", "{C4FE29EA-266D-5295-4840-976B9B5B38…
183 …11-00A0C91BC942}") = "ssl_client1", "ssl_client1.vcxproj", "{487A2F80-3CA3-678D-88D5-82194872CF08}"
198 …A0C91BC942}") = "ssl_fork_server", "ssl_fork_server.vcxproj", "{918CD402-047D-8467-E11C-E1132053F9…
360 {8D91B804-E2CE-142D-8E06-FBB037ED1F65}.Debug|Win32.ActiveCfg = Debug|Win32
361 {8D91B804-E2CE-142D-8E06-FBB037ED1F65}.Debug|Win32.Build.0 = Debug|Win32
362 {8D91B804-E2CE-142D-8E06-FBB037ED1F65}.Debug|x64.ActiveCfg = Debug|x64
[all …]
/mbedtls-3.5.0/programs/fuzz/
Dfuzz_pubkey.c18 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in LLVMFuzzerTestOneInput() local
22 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E); mbedtls_mpi_init(&DP); in LLVMFuzzerTestOneInput()
29 if (mbedtls_rsa_export(rsa, &N, &P, &Q, &D, &E) != MBEDTLS_ERR_RSA_BAD_INPUT_DATA) { in LLVMFuzzerTestOneInput()
37 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in LLVMFuzzerTestOneInput()
Dfuzz_privkey.c45 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in LLVMFuzzerTestOneInput() local
49 mbedtls_mpi_init(&D); mbedtls_mpi_init(&E); mbedtls_mpi_init(&DP); in LLVMFuzzerTestOneInput()
53 if (mbedtls_rsa_export(rsa, &N, &P, &Q, &D, &E) != 0) { in LLVMFuzzerTestOneInput()
61 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in LLVMFuzzerTestOneInput()
/mbedtls-3.5.0/include/mbedtls/
Drsa.h101 mbedtls_mpi MBEDTLS_PRIVATE(D); /*!< The private exponent. */
238 const mbedtls_mpi *D, const mbedtls_mpi *E);
278 unsigned char const *D, size_t D_len,
357 mbedtls_mpi *D, mbedtls_mpi *E);
410 unsigned char *D, size_t D_len,
/mbedtls-3.5.0/tests/data_files/
Dtest-int-ca2.crt10 D+s+vMf9/6E/pD0wOzELMAkGA1UEBhMCTkwxETAPBgNVBAoTCFBvbGFyU1NMMRkw

123