Function esp_idf_svc::sys::esp_aes_setkey
source ยท pub unsafe extern "C" fn esp_aes_setkey(
ctx: *mut esp_aes_context,
key: *const u8,
keybits: u32,
) -> i32
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