mbedtls_aes_setkey_dec() function
This function sets the decryption key.
Arguments
ctx
The AES context to which the key should be bound. It must be initialized.
key
The decryption key. This must be a readable buffer of size \p keybits bits.
keybits
The size of data passed. Valid options are: 128 bits 192 bits 256 bits
Return value
\c 0 on success. #MBEDTLS_ERR_AES_INVALID_KEY_LENGTH on failure.