esp_idf_sys

Function esp_aes_setkey

Source
pub unsafe extern "C" fn esp_aes_setkey(
    ctx: *mut esp_aes_context,
    key: *const c_uchar,
    keybits: c_uint,
) -> c_int
Expand description

\brief AES set key schedule (encryption or decryption)

\param ctx AES context to be initialized \param key encryption key \param keybits must be 128, 192 or 256

\return 0 if successful, or ERR_AES_INVALID_KEY_LENGTH