Home
last modified time | relevance | path

Searched refs:DP (Results 1 – 16 of 16) sorted by relevance

/mbedtls-3.5.0/programs/pkey/
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()
94 (ret = mbedtls_rsa_export_crt(&rsa, &DP, &DQ, &QP)) != 0) { in main()
123 (ret = mbedtls_mpi_write_file("DP = ", &DP, 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()
85 (ret = mbedtls_mpi_read_file(&DP, 16, f)) != 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()
109 (ret = mbedtls_mpi_read_file(&DP, 16, f)) != 0 || in main()
179 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); 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()
208 (ret = mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP)) != 0) { in main()
218 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("DP: ", &DP, 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()
351 (ret = mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP)) != 0) { in main()
361 mbedtls_mpi_write_file("DP: ", &DP, 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()
323 (ret = mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP)) != 0) { in main()
333 mbedtls_mpi_write_file("DP: ", &DP, 16, NULL); in main()
418 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in main()
Drsa_priv.txt6 DP = 0D0E21C07BF434B4A83B116472C2147A11D8EB98A33CFBBCF1D275EF19D815941622435AAF3839B6C432CA53CE9E77…
/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()
32 if (mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP) != 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()
56 if (mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP) != 0) { in LLVMFuzzerTestOneInput()
61 mbedtls_mpi_free(&D); mbedtls_mpi_free(&E); mbedtls_mpi_free(&DP); in LLVMFuzzerTestOneInput()
/mbedtls-3.5.0/library/
Drsa_alt_helpers.c238 const mbedtls_mpi *D, mbedtls_mpi *DP, in mbedtls_rsa_deduce_crt() argument
246 if (DP != NULL) { in mbedtls_rsa_deduce_crt()
248 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(DP, D, &K)); in mbedtls_rsa_deduce_crt()
385 const mbedtls_mpi *D, const mbedtls_mpi *DP, in mbedtls_rsa_validate_crt() argument
395 if (DP != NULL) { in mbedtls_rsa_validate_crt()
402 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&L, DP, D)); in mbedtls_rsa_validate_crt()
Drsa_alt_helpers.h143 const mbedtls_mpi *D, mbedtls_mpi *DP,
213 const mbedtls_mpi *D, const mbedtls_mpi *DP,
Drsa.c194 (mbedtls_mpi_cmp_int(&ctx->DP, 0) <= 0 || in rsa_check_context()
239 have_DP = (mbedtls_mpi_cmp_int(&ctx->DP, 0) != 0); in mbedtls_rsa_complete()
307 &ctx->DP, &ctx->DQ, &ctx->QP); in mbedtls_rsa_complete()
417 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP) in mbedtls_rsa_export_crt() argument
436 if ((DP != NULL && (ret = mbedtls_mpi_copy(DP, &ctx->DP)) != 0) || in mbedtls_rsa_export_crt()
443 DP, DQ, QP)) != 0) { in mbedtls_rsa_export_crt()
629 &ctx->DP, &ctx->DQ, &ctx->QP)); in mbedtls_rsa_gen_key()
694 &ctx->DP, &ctx->DQ, &ctx->QP) != 0) { in mbedtls_rsa_check_privkey()
885 mbedtls_mpi *DP = &ctx->DP; in mbedtls_rsa_private() local
979 &ctx->DP)); in mbedtls_rsa_private()
[all …]
Dpkparse.c808 (ret = mbedtls_mpi_copy(&rsa->DP, &T)) != 0) { in pk_parse_key_pkcs1_der()
/mbedtls-3.5.0/include/mbedtls/
Drsa.h105 mbedtls_mpi MBEDTLS_PRIVATE(DP); /*!< <code>D % (P - 1)</code>. */
433 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP);
/mbedtls-3.5.0/tests/suites/
Dtest_suite_rsa.function649 TEST_ASSERT(mbedtls_test_read_mpi(&ctx.DP, input_DP) == 0);
708 TEST_ASSERT(mbedtls_test_read_mpi(&prv.DP, input_DP) == 0);
Dtest_suite_rsa.data300 RSA Check Private key #7 (No DP)