Home
last modified time | relevance | path

Searched refs:DQ (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
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()
Drsa_sign.c53 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()
Drsa_decrypt.c56 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()
Dkey_app.c91 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()
Dgen_key.c183 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()
Dkey_app_writer.c206 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()
Drsa_priv.txt7 DQ = 269CEBE6305DFEE4809377F078C814E37B45AE6677114DFC4F76F5097E1F3031D592567AC55B9B98213B40ECD54A4D…
/mbedtls-3.5.0/programs/fuzz/
Dfuzz_pubkey.c18 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()
Dfuzz_privkey.c45 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/
Drsa_alt_helpers.c239 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()
Drsa_alt_helpers.h144 mbedtls_mpi *DQ, mbedtls_mpi *QP);
214 const mbedtls_mpi *DQ, const mbedtls_mpi *QP);
Drsa.c195 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 …]
Dpkparse.c814 (ret = mbedtls_mpi_copy(&rsa->DQ, &T)) != 0) { in pk_parse_key_pkcs1_der()
/mbedtls-3.5.0/include/mbedtls/
Drsa.h106 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/
Dtest_suite_rsa.function652 TEST_ASSERT(mbedtls_test_read_mpi(&ctx.DQ, input_DQ) == 0);
711 TEST_ASSERT(mbedtls_test_read_mpi(&prv.DQ, input_DQ) == 0);
Dtest_suite_rsa.data304 RSA Check Private key #8 (No DQ)