Lines Matching refs:D

94                         const mbedtls_mpi *D, const mbedtls_mpi *E )  in mbedtls_rsa_import()  argument
102 ( D != NULL && ( ret = mbedtls_mpi_copy( &ctx->D, D ) ) != 0 ) || in mbedtls_rsa_import()
118 unsigned char const *D, size_t D_len, in mbedtls_rsa_import_raw() argument
136 if( D != NULL ) in mbedtls_rsa_import_raw()
137 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->D, D, D_len ) ); in mbedtls_rsa_import_raw()
207 if( is_priv && mbedtls_mpi_cmp_int( &ctx->D, 0 ) <= 0 ) in rsa_check_context()
257 have_D = ( mbedtls_mpi_cmp_int( &ctx->D, 0 ) != 0 ); in mbedtls_rsa_complete()
308 ret = mbedtls_rsa_deduce_primes( &ctx->N, &ctx->E, &ctx->D, in mbedtls_rsa_complete()
319 &ctx->D ) ) != 0 ) in mbedtls_rsa_complete()
333 ret = mbedtls_rsa_deduce_crt( &ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_complete()
351 unsigned char *D, size_t D_len, in mbedtls_rsa_export_raw() argument
363 mbedtls_mpi_cmp_int( &ctx->D, 0 ) != 0 && in mbedtls_rsa_export_raw()
370 if( P != NULL || Q != NULL || D != NULL ) in mbedtls_rsa_export_raw()
384 if( D != NULL ) in mbedtls_rsa_export_raw()
385 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &ctx->D, D, D_len ) ); in mbedtls_rsa_export_raw()
397 mbedtls_mpi *D, mbedtls_mpi *E ) in mbedtls_rsa_export() argument
408 mbedtls_mpi_cmp_int( &ctx->D, 0 ) != 0 && in mbedtls_rsa_export()
415 if( P != NULL || Q != NULL || D != NULL ) in mbedtls_rsa_export()
425 ( D != NULL && ( ret = mbedtls_mpi_copy( D, &ctx->D ) ) != 0 ) || in mbedtls_rsa_export()
452 mbedtls_mpi_cmp_int( &ctx->D, 0 ) != 0 && in mbedtls_rsa_export_crt()
467 if( ( ret = mbedtls_rsa_deduce_crt( &ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_export_crt()
599 MBEDTLS_MPI_CHK( mbedtls_mpi_inv_mod( &ctx->D, &ctx->E, &L ) ); in mbedtls_rsa_gen_key()
601 … if( mbedtls_mpi_bitlen( &ctx->D ) <= ( ( nbits + 1 ) / 2 ) ) // (FIPS 186-4 §B.3.1 criterion 3(a)) in mbedtls_rsa_gen_key()
622 MBEDTLS_MPI_CHK( mbedtls_rsa_deduce_crt( &ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_gen_key()
688 &ctx->D, &ctx->E, NULL, NULL ) != 0 ) in mbedtls_rsa_check_privkey()
694 else if( mbedtls_rsa_validate_crt( &ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_check_privkey()
901 mbedtls_mpi *D = &ctx->D; in mbedtls_rsa_private() local
982 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &D_blind, &D_blind, &ctx->D ) ); in mbedtls_rsa_private()
984 D = &D_blind; in mbedtls_rsa_private()
1011 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &T, &T, D, &ctx->N, &ctx->RN ) ); in mbedtls_rsa_private()
2551 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->D, &src->D ) ); in mbedtls_rsa_copy()
2589 mbedtls_mpi_free( &ctx->D ); in mbedtls_rsa_free()