/openthread-3.7.0/third_party/mbedtls/repo/programs/pkey/ |
D | rsa_genkey.c | 47 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()
|
D | rsa_sign.c | 42 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()
|
D | rsa_decrypt.c | 44 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()
|
D | key_app.c | 144 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()
|
D | gen_key.c | 234 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()
|
D | key_app_writer.c | 257 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()
|
D | rsa_priv.txt | 8 QP = 97AC5BB885ABCA314375E9E4DB1BA4B2218C90619F61BD474F5785075ECA81750A735199A8C191FE2D3355E7CF601A…
|
/openthread-3.7.0/third_party/mbedtls/repo/programs/fuzz/ |
D | fuzz_pubkey.c | 22 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()
|
D | fuzz_privkey.c | 50 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/ |
D | rsa_alt_helpers.c | 227 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()
|
D | rsa_alt_helpers.h | 130 mbedtls_mpi *DQ, mbedtls_mpi *QP); 200 const mbedtls_mpi *DQ, const mbedtls_mpi *QP);
|
D | rsa.c | 184 (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/ |
D | rsa.h | 101 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/ |
D | test_suite_rsa.function | 663 TEST_ASSERT(mbedtls_test_read_mpi(&ctx.QP, input_QP) == 0); 722 TEST_ASSERT(mbedtls_test_read_mpi(&prv.QP, input_QP) == 0);
|
D | test_suite_rsa.data | 308 RSA Check Private key #9 (No QP)
|