/mbedtls-development/programs/fuzz/ |
A D | fuzz_privkey.c | 29 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in LLVMFuzzerTestOneInput() local 33 mbedtls_mpi_init( &D ); mbedtls_mpi_init( &E ); mbedtls_mpi_init( &DP ); in LLVMFuzzerTestOneInput() 40 if ( mbedtls_rsa_export_crt( rsa, &DP, &DQ, &QP ) != 0 ) { in LLVMFuzzerTestOneInput() 45 mbedtls_mpi_free( &D ); mbedtls_mpi_free( &E ); mbedtls_mpi_free( &DP ); in LLVMFuzzerTestOneInput()
|
A D | fuzz_pubkey.c | 18 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in LLVMFuzzerTestOneInput() local 22 mbedtls_mpi_init( &D ); mbedtls_mpi_init( &E ); mbedtls_mpi_init( &DP ); in LLVMFuzzerTestOneInput() 32 if ( mbedtls_rsa_export_crt( rsa, &DP, &DQ, &QP ) != MBEDTLS_ERR_RSA_BAD_INPUT_DATA ) { in LLVMFuzzerTestOneInput() 37 mbedtls_mpi_free( &D ); mbedtls_mpi_free( &E ); mbedtls_mpi_free( &DP ); in LLVMFuzzerTestOneInput()
|
/mbedtls-development/programs/pkey/ |
A D | rsa_genkey.c | 68 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 76 mbedtls_mpi_init( &D ); mbedtls_mpi_init( &E ); mbedtls_mpi_init( &DP ); in main() 105 ( ret = mbedtls_rsa_export_crt( &rsa, &DP, &DQ, &QP ) ) != 0 ) in main() 138 ( ret = mbedtls_mpi_write_file( "DP = ", &DP, 16, fpriv ) ) != 0 || in main() 158 mbedtls_mpi_free( &D ); mbedtls_mpi_free( &E ); mbedtls_mpi_free( &DP ); in main()
|
A D | rsa_sign.c | 64 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 69 mbedtls_mpi_init( &D ); mbedtls_mpi_init( &E ); mbedtls_mpi_init( &DP ); in main() 98 ( ret = mbedtls_mpi_read_file( &DP , 16, f ) ) != 0 || in main() 177 mbedtls_mpi_free( &D ); mbedtls_mpi_free( &E ); mbedtls_mpi_free( &DP ); in main()
|
A D | rsa_decrypt.c | 65 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 93 mbedtls_mpi_init( &D ); mbedtls_mpi_init( &E ); mbedtls_mpi_init( &DP ); in main() 121 ( ret = mbedtls_mpi_read_file( &DP , 16, f ) ) != 0 || in main() 196 mbedtls_mpi_free( &D ); mbedtls_mpi_free( &E ); mbedtls_mpi_free( &DP ); in main()
|
A D | key_app.c | 101 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 113 mbedtls_mpi_init( &D ); mbedtls_mpi_init( &E ); mbedtls_mpi_init( &DP ); in main() 221 ( ret = mbedtls_rsa_export_crt( rsa, &DP, &DQ, &QP ) ) != 0 ) in main() 232 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "DP: ", &DP, 16, NULL ) ); in main() 324 mbedtls_mpi_free( &D ); mbedtls_mpi_free( &E ); mbedtls_mpi_free( &DP ); in main()
|
A D | gen_key.c | 195 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 208 mbedtls_mpi_init( &D ); mbedtls_mpi_init( &E ); mbedtls_mpi_init( &DP ); in main() 372 ( ret = mbedtls_rsa_export_crt( rsa, &DP, &DQ, &QP ) ) != 0 ) in main() 383 mbedtls_mpi_write_file( "DP: ", &DP, 16, NULL ); in main() 431 mbedtls_mpi_free( &D ); mbedtls_mpi_free( &E ); mbedtls_mpi_free( &DP ); in main()
|
A D | key_app_writer.c | 216 mbedtls_mpi N, P, Q, D, E, DP, DQ, QP; in main() local 230 mbedtls_mpi_init( &D ); mbedtls_mpi_init( &E ); mbedtls_mpi_init( &DP ); in main() 340 ( ret = mbedtls_rsa_export_crt( rsa, &DP, &DQ, &QP ) ) != 0 ) in main() 351 mbedtls_mpi_write_file( "DP: ", &DP, 16, NULL ); in main() 449 mbedtls_mpi_free( &D ); mbedtls_mpi_free( &E ); mbedtls_mpi_free( &DP ); in main()
|
A D | rsa_priv.txt | 6 DP = 0D0E21C07BF434B4A83B116472C2147A11D8EB98A33CFBBCF1D275EF19D815941622435AAF3839B6C432CA53CE9E77…
|
/mbedtls-development/library/ |
A D | rsa_alt_helpers.c | 241 const mbedtls_mpi *D, mbedtls_mpi *DP, in mbedtls_rsa_deduce_crt() argument 249 if( DP != NULL ) in mbedtls_rsa_deduce_crt() 252 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( DP, D, &K ) ); in mbedtls_rsa_deduce_crt() 402 const mbedtls_mpi *D, const mbedtls_mpi *DP, in mbedtls_rsa_validate_crt() argument 412 if( DP != NULL ) in mbedtls_rsa_validate_crt() 421 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &L, DP, D ) ); in mbedtls_rsa_validate_crt()
|
A D | rsa_alt_helpers.h | 143 const mbedtls_mpi *D, mbedtls_mpi *DP, 213 const mbedtls_mpi *D, const mbedtls_mpi *DP,
|
A D | rsa.c | 211 ( mbedtls_mpi_cmp_int( &ctx->DP, 0 ) <= 0 || in rsa_check_context() 261 have_DP = ( mbedtls_mpi_cmp_int( &ctx->DP, 0 ) != 0 ); in mbedtls_rsa_complete() 334 &ctx->DP, &ctx->DQ, &ctx->QP ); in mbedtls_rsa_complete() 460 if( ( DP != NULL && ( ret = mbedtls_mpi_copy( DP, &ctx->DP ) ) != 0 ) || in mbedtls_rsa_export_crt() 468 DP, DQ, QP ) ) != 0 ) in mbedtls_rsa_export_crt() 715 &ctx->DP, &ctx->DQ, &ctx->QP ) != 0 ) in mbedtls_rsa_check_privkey() 913 mbedtls_mpi *DP = &ctx->DP; in mbedtls_rsa_private() local 1011 &ctx->DP ) ); in mbedtls_rsa_private() 1013 DP = &DP_blind; in mbedtls_rsa_private() 2453 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->DP, &src->DP ) ); in mbedtls_rsa_copy() [all …]
|
A D | pkparse.c | 797 ( ret = mbedtls_mpi_copy( &rsa->DP, &T ) ) != 0 ) in pk_parse_key_pkcs1_der()
|
/mbedtls-development/include/mbedtls/ |
A D | rsa.h | 106 mbedtls_mpi MBEDTLS_PRIVATE(DP); /*!< <code>D % (P - 1)</code>. */ 412 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP );
|
/mbedtls-development/tests/suites/ |
A D | test_suite_rsa.function | 603 TEST_ASSERT( mbedtls_test_read_mpi( &ctx.DP, radix_DP, input_DP ) == 0 ); 676 TEST_ASSERT( mbedtls_test_read_mpi( &prv.DP, radix_DP, input_DP ) == 0 );
|
A D | test_suite_rsa.data | 300 RSA Check Private key #7 (No DP)
|