Function esp_idf_hal::sys::mbedtls_pk_decrypt
source ยท pub unsafe extern "C" fn mbedtls_pk_decrypt(
ctx: *mut mbedtls_pk_context,
input: *const u8,
ilen: usize,
output: *mut u8,
olen: *mut usize,
osize: usize,
f_rng: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: usize) -> i32>,
p_rng: *mut c_void,
) -> i32
Expand description
\brief Decrypt message (including padding if relevant).
\param ctx The PK context to use. It must have been set up with a private key. \param input Input to decrypt \param ilen Input size \param output Decrypted output \param olen Decrypted message length \param osize Size of the output buffer \param f_rng RNG function, must not be \c NULL. \param p_rng RNG parameter
\note For RSA keys, the default padding type is PKCS#1 v1.5.
\return 0 on success, or a specific error code.