/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() 125 (ret = mbedtls_mpi_write_file("QP = ", &QP, 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() 87 (ret = mbedtls_mpi_read_file(&QP, 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() 111 (ret = mbedtls_mpi_read_file(&QP, 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() 220 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("QP: ", &QP, 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() 363 mbedtls_mpi_write_file("QP: ", &QP, 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() 335 mbedtls_mpi_write_file("QP: ", &QP, 16, NULL); in main() 419 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
|
D | rsa_priv.txt | 8 QP = 97AC5BB885ABCA314375E9E4DB1BA4B2218C90619F61BD474F5785075ECA81750A735199A8C191FE2D3355E7CF601A…
|
/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 258 if (QP != NULL) { in mbedtls_rsa_deduce_crt() 259 MBEDTLS_MPI_CHK(mbedtls_mpi_inv_mod(QP, Q, P)); in mbedtls_rsa_deduce_crt() 386 const mbedtls_mpi *DQ, const mbedtls_mpi *QP) in mbedtls_rsa_validate_crt() argument 429 if (QP != NULL) { in mbedtls_rsa_validate_crt() 435 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&K, QP, Q)); 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 | 215 mbedtls_mpi_cmp_int(&ctx->QP, 0) <= 0) { in rsa_check_context() 241 have_QP = (mbedtls_mpi_cmp_int(&ctx->QP, 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 438 (QP != NULL && (ret = mbedtls_mpi_copy(QP, &ctx->QP)) != 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() 1012 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&TP, &T, &ctx->QP)); in mbedtls_rsa_private() 2302 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->QP, &src->QP)); in mbedtls_rsa_copy() [all …]
|
D | pkparse.c | 820 (ret = mbedtls_mpi_copy(&rsa->QP, &T)) != 0) { in pk_parse_key_pkcs1_der()
|
/mbedtls-3.5.0/include/mbedtls/ |
D | rsa.h | 107 mbedtls_mpi MBEDTLS_PRIVATE(QP); /*!< <code>1 / (Q % P)</code>. */ 433 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP);
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_rsa.function | 655 TEST_ASSERT(mbedtls_test_read_mpi(&ctx.QP, input_QP) == 0); 714 TEST_ASSERT(mbedtls_test_read_mpi(&prv.QP, input_QP) == 0);
|
D | test_suite_rsa.data | 308 RSA Check Private key #9 (No QP)
|