36 #include "cx_errors.h"
57 WARN_UNUSED_RESULT cx_err_t cx_aes_init_key_no_throw(
const uint8_t *rawkey,
65 DEPRECATED
static inline size_t cx_aes_init_key(
const unsigned char *rawkey,
69 CX_THROW(cx_aes_init_key_no_throw(rawkey, key_len, key));
117 WARN_UNUSED_RESULT cx_err_t cx_aes_iv_no_throw(
const cx_aes_key_t *key,
130 DEPRECATED
static inline size_t cx_aes_iv(
const cx_aes_key_t *key,
134 const unsigned char *in,
137 unsigned int out_len)
139 size_t out_len_ = out_len;
140 CX_THROW(cx_aes_iv_no_throw(key, mode, iv, iv_len, in, in_len, out, &out_len_));
184 WARN_UNUSED_RESULT cx_err_t cx_aes_no_throw(
const cx_aes_key_t *key,
195 DEPRECATED
static inline size_t cx_aes(
const cx_aes_key_t *key,
197 const unsigned char *in,
200 unsigned int out_len)
202 size_t out_len_ = out_len;
203 CX_THROW(cx_aes_no_throw(key, mode, in, in_len, out, &out_len_));
221 WARN_UNUSED_RESULT cx_err_t cx_aes_enc_block(
const cx_aes_key_t *key,
239 WARN_UNUSED_RESULT cx_err_t cx_aes_dec_block(
const cx_aes_key_t *key,