Function esp_idf_svc::sys::mbedtls_cipher_set_padding_mode
source ยท pub unsafe extern "C" fn mbedtls_cipher_set_padding_mode(
ctx: *mut mbedtls_cipher_context_t,
mode: u32,
) -> i32
Expand description
\brief This function sets the padding mode, for cipher modes that use padding.
\param ctx The generic cipher context. This must be initialized and bound to a cipher information structure. \param mode The padding mode.
\return \c 0 on success. \return #MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE if the selected padding mode is not supported. \return #MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA if the cipher mode does not support padding.