/mbedtls-3.5.0/programs/pkey/ |
D | rsa_genkey.c | 59 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 68 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main() 94 (ret = mbedtls_rsa_export_crt(&rsa, &DP, &DQ, &QP)) != 0) { in main() 124 (ret = mbedtls_mpi_write_file("DQ = ", &DQ, 16, fpriv)) != 0 || in main() 145 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
|
D | rsa_sign.c | 53 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 59 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main() 86 (ret = mbedtls_mpi_read_file(&DQ, 16, f)) != 0 || in main() 161 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
|
D | rsa_decrypt.c | 56 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 84 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main() 110 (ret = mbedtls_mpi_read_file(&DQ, 16, f)) != 0 || in main() 180 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
|
D | key_app.c | 91 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 104 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main() 208 (ret = mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP)) != 0) { in main() 219 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("DQ: ", &DQ, 16, NULL)); in main() 312 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
|
D | gen_key.c | 183 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 197 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main() 351 (ret = mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP)) != 0) { in main() 362 mbedtls_mpi_write_file("DQ: ", &DQ, 16, NULL); in main() 405 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
|
D | key_app_writer.c | 206 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 221 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main() 323 (ret = mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP)) != 0) { in main() 334 mbedtls_mpi_write_file("DQ: ", &DQ, 16, NULL); in main() 419 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
|
D | rsa_priv.txt | 7 DQ = 269CEBE6305DFEE4809377F078C814E37B45AE6677114DFC4F76F5097E1F3031D592567AC55B9B98213B40ECD54A4D…
|
/mbedtls-3.5.0/programs/fuzz/ |
D | fuzz_pubkey.c | 18 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in LLVMFuzzerTestOneInput() local 23 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in LLVMFuzzerTestOneInput() 32 if (mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP) != MBEDTLS_ERR_RSA_BAD_INPUT_DATA) { in LLVMFuzzerTestOneInput() 38 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in LLVMFuzzerTestOneInput()
|
D | fuzz_privkey.c | 45 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in LLVMFuzzerTestOneInput() local 50 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in LLVMFuzzerTestOneInput() 56 if (mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP) != 0) { in LLVMFuzzerTestOneInput() 62 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in LLVMFuzzerTestOneInput()
|
/mbedtls-3.5.0/library/ |
D | rsa_alt_helpers.c | 239 mbedtls_mpi *DQ, mbedtls_mpi *QP) in mbedtls_rsa_deduce_crt() argument 252 if (DQ != NULL) { in mbedtls_rsa_deduce_crt() 254 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(DQ, D, &K)); in mbedtls_rsa_deduce_crt() 386 const mbedtls_mpi *DQ, const mbedtls_mpi *QP) in mbedtls_rsa_validate_crt() argument 412 if (DQ != NULL) { in mbedtls_rsa_validate_crt() 419 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&L, DQ, D)); in mbedtls_rsa_validate_crt()
|
D | rsa_alt_helpers.h | 144 mbedtls_mpi *DQ, mbedtls_mpi *QP); 214 const mbedtls_mpi *DQ, const mbedtls_mpi *QP);
|
D | rsa.c | 195 mbedtls_mpi_cmp_int(&ctx->DQ, 0) <= 0)) { in rsa_check_context() 240 have_DQ = (mbedtls_mpi_cmp_int(&ctx->DQ, 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 437 (DQ != NULL && (ret = mbedtls_mpi_copy(DQ, &ctx->DQ)) != 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() 886 mbedtls_mpi *DQ = &ctx->DQ; in mbedtls_rsa_private() local 990 &ctx->DQ)); in mbedtls_rsa_private() [all …]
|
D | pkparse.c | 814 (ret = mbedtls_mpi_copy(&rsa->DQ, &T)) != 0) { in pk_parse_key_pkcs1_der()
|
/mbedtls-3.5.0/include/mbedtls/ |
D | rsa.h | 106 mbedtls_mpi MBEDTLS_PRIVATE(DQ); /*!< <code>D % (Q - 1)</code>. */ 433 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP);
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_rsa.function | 652 TEST_ASSERT(mbedtls_test_read_mpi(&ctx.DQ, input_DQ) == 0); 711 TEST_ASSERT(mbedtls_test_read_mpi(&prv.DQ, input_DQ) == 0);
|
D | test_suite_rsa.data | 304 RSA Check Private key #8 (No DQ)
|