Function esp_idf_hal::sys::mbedtls_rsa_export_crt
source ยท pub unsafe extern "C" fn mbedtls_rsa_export_crt(
ctx: *const mbedtls_rsa_context,
DP: *mut mbedtls_mpi,
DQ: *mut mbedtls_mpi,
QP: *mut mbedtls_mpi,
) -> i32
Expand description
\brief This function exports CRT parameters of a private RSA key.
\note Alternative RSA implementations not using CRT-parameters internally can implement this function based on mbedtls_rsa_deduce_opt().
\param ctx The initialized RSA context.
\param DP The MPI to hold \c D modulo P-1
,
or \c NULL if it need not be exported.
\param DQ The MPI to hold \c D modulo Q-1
,
or \c NULL if it need not be exported.
\param QP The MPI to hold modular inverse of \c Q modulo \c P,
or \c NULL if it need not be exported.
\return \c 0 on success. \return A non-zero error code on failure.