Home
last modified time | relevance | path

Searched refs:QP (Results 1 – 15 of 15) sorted by relevance

/openthread-3.7.0/third_party/mbedtls/repo/programs/pkey/
Drsa_genkey.c47 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
56 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main()
82 (ret = mbedtls_rsa_export_crt(&rsa, &DP, &DQ, &QP)) != 0) { in main()
113 (ret = mbedtls_mpi_write_file("QP = ", &QP, 16, fpriv)) != 0) { in main()
133 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
Drsa_sign.c42 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
48 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main()
76 (ret = mbedtls_mpi_read_file(&QP, 16, f)) != 0) { in main()
150 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
Drsa_decrypt.c44 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
72 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main()
99 (ret = mbedtls_mpi_read_file(&QP, 16, f)) != 0) { in main()
168 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
Dkey_app.c144 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
166 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main()
270 (ret = mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP)) != 0) { in main()
282 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("QP: ", &QP, 16, NULL)); in main()
363 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
Dgen_key.c234 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
249 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main()
413 (ret = mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP)) != 0) { in main()
425 mbedtls_mpi_write_file("QP: ", &QP, 16, NULL); in main()
466 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
Dkey_app_writer.c257 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local
283 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in main()
386 (ret = mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP)) != 0) { in main()
398 mbedtls_mpi_write_file("QP: ", &QP, 16, NULL); in main()
482 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in main()
Drsa_priv.txt8 QP = 97AC5BB885ABCA314375E9E4DB1BA4B2218C90619F61BD474F5785075ECA81750A735199A8C191FE2D3355E7CF601A…
/openthread-3.7.0/third_party/mbedtls/repo/programs/fuzz/
Dfuzz_pubkey.c22 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in LLVMFuzzerTestOneInput() local
27 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in LLVMFuzzerTestOneInput()
36 if (mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP) != MBEDTLS_ERR_RSA_BAD_INPUT_DATA) { in LLVMFuzzerTestOneInput()
42 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in LLVMFuzzerTestOneInput()
Dfuzz_privkey.c50 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in LLVMFuzzerTestOneInput() local
55 mbedtls_mpi_init(&DQ); mbedtls_mpi_init(&QP); in LLVMFuzzerTestOneInput()
61 if (mbedtls_rsa_export_crt(rsa, &DP, &DQ, &QP) != 0) { in LLVMFuzzerTestOneInput()
67 mbedtls_mpi_free(&DQ); mbedtls_mpi_free(&QP); in LLVMFuzzerTestOneInput()
/openthread-3.7.0/third_party/mbedtls/repo/library/
Drsa_alt_helpers.c227 mbedtls_mpi *DQ, mbedtls_mpi *QP) in mbedtls_rsa_deduce_crt() argument
246 if (QP != NULL) { in mbedtls_rsa_deduce_crt()
247 MBEDTLS_MPI_CHK(mbedtls_mpi_inv_mod(QP, Q, P)); in mbedtls_rsa_deduce_crt()
374 const mbedtls_mpi *DQ, const mbedtls_mpi *QP) in mbedtls_rsa_validate_crt() argument
417 if (QP != NULL) { in mbedtls_rsa_validate_crt()
423 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&K, QP, Q)); in mbedtls_rsa_validate_crt()
Drsa_alt_helpers.h130 mbedtls_mpi *DQ, mbedtls_mpi *QP);
200 const mbedtls_mpi *DQ, const mbedtls_mpi *QP);
Drsa.c184 (ret = mbedtls_mpi_copy(&rsa->QP, &T)) != 0) { in mbedtls_rsa_parse_key()
713 mbedtls_mpi_cmp_int(&ctx->QP, 0) <= 0) { in rsa_check_context()
739 have_QP = (mbedtls_mpi_cmp_int(&ctx->QP, 0) != 0); in mbedtls_rsa_complete()
805 &ctx->DP, &ctx->DQ, &ctx->QP); in mbedtls_rsa_complete()
915 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP) in mbedtls_rsa_export_crt() argument
936 (QP != NULL && (ret = mbedtls_mpi_copy(QP, &ctx->QP)) != 0)) { in mbedtls_rsa_export_crt()
941 DP, DQ, QP)) != 0) { in mbedtls_rsa_export_crt()
1139 &ctx->DP, &ctx->DQ, &ctx->QP)); in mbedtls_rsa_gen_key()
1204 &ctx->DP, &ctx->DQ, &ctx->QP) != 0) { in mbedtls_rsa_check_privkey()
1546 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&TP, &T, &ctx->QP)); in mbedtls_rsa_private()
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/
Drsa.h101 mbedtls_mpi MBEDTLS_PRIVATE(QP); /*!< <code>1 / (Q % P)</code>. */
427 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP);
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_rsa.function663 TEST_ASSERT(mbedtls_test_read_mpi(&ctx.QP, input_QP) == 0);
722 TEST_ASSERT(mbedtls_test_read_mpi(&prv.QP, input_QP) == 0);
Dtest_suite_rsa.data308 RSA Check Private key #9 (No QP)