/mbedtls-3.5.0/programs/pkey/ |
D | rsa_genkey.c | 59 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()
|
D | rsa_sign.c | 53 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()
|
D | rsa_decrypt.c | 56 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()
|
D | key_app.c | 91 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()
|
D | gen_key.c | 183 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()
|
D | key_app_writer.c | 206 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()
|
D | rsa_priv.txt | 6 DP = 0D0E21C07BF434B4A83B116472C2147A11D8EB98A33CFBBCF1D275EF19D815941622435AAF3839B6C432CA53CE9E77…
|
/mbedtls-3.5.0/programs/fuzz/ |
D | fuzz_pubkey.c | 18 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()
|
D | fuzz_privkey.c | 45 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/ |
D | rsa_alt_helpers.c | 238 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()
|
D | rsa_alt_helpers.h | 143 const mbedtls_mpi *D, mbedtls_mpi *DP, 213 const mbedtls_mpi *D, const mbedtls_mpi *DP,
|
D | rsa.c | 194 (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 …]
|
D | pkparse.c | 808 (ret = mbedtls_mpi_copy(&rsa->DP, &T)) != 0) { in pk_parse_key_pkcs1_der()
|
/mbedtls-3.5.0/include/mbedtls/ |
D | rsa.h | 105 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/ |
D | test_suite_rsa.function | 649 TEST_ASSERT(mbedtls_test_read_mpi(&ctx.DP, input_DP) == 0); 708 TEST_ASSERT(mbedtls_test_read_mpi(&prv.DP, input_DP) == 0);
|
D | test_suite_rsa.data | 300 RSA Check Private key #7 (No DP)
|