Home
last modified time | relevance | path

Searched refs:QP (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()
125 (ret = mbedtls_mpi_write_file("QP = ", &QP, 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()
87 (ret = mbedtls_mpi_read_file(&QP, 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()
111 (ret = mbedtls_mpi_read_file(&QP, 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()
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()
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()
363 mbedtls_mpi_write_file("QP: ", &QP, 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()
335 mbedtls_mpi_write_file("QP: ", &QP, 16, NULL); in main()
419 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
Drsa_priv.txt8 QP = 97AC5BB885ABCA314375E9E4DB1BA4B2218C90619F61BD474F5785075ECA81750A735199A8C191FE2D3355E7CF601A…
/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
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()
Drsa_alt_helpers.h144 mbedtls_mpi *DQ, mbedtls_mpi *QP);
214 const mbedtls_mpi *DQ, const mbedtls_mpi *QP);
Drsa.c215 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 …]
Dpkparse.c820 (ret = mbedtls_mpi_copy(&rsa->QP, &T)) != 0) { in pk_parse_key_pkcs1_der()
/mbedtls-3.5.0/include/mbedtls/
Drsa.h107 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/
Dtest_suite_rsa.function655 TEST_ASSERT(mbedtls_test_read_mpi(&ctx.QP, input_QP) == 0);
714 TEST_ASSERT(mbedtls_test_read_mpi(&prv.QP, input_QP) == 0);
Dtest_suite_rsa.data308 RSA Check Private key #9 (No QP)