[][src]Function hactool_sys::mbedtls_cipher_set_padding_mode

pub unsafe extern "C" fn mbedtls_cipher_set_padding_mode(
    ctx: *mut mbedtls_cipher_context_t,
    mode: mbedtls_cipher_padding_t
) -> c_int

\brief Set padding mode, for cipher modes that use padding. (Default: PKCS7 padding.)

\param ctx generic cipher context \param mode padding mode

\returns 0 on success, MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE if selected padding mode is not supported, or MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA if the cipher mode does not support padding.