Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

crypto/aes.c crypto_aes_setkey() -> aes_preparekey()

Type Parameter Key Value
BUF_SIZE 1 in_key (-1)-s32max
BUF_SIZE 1 in_key (-1)-s32max
CAPPED_DATA 2 key_len 1
DATA_SOURCE 1 in_key $1
DATA_SOURCE 2 key_len $2
NOSPEC 2 key_len
NOSPEC 2 key_len
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *in_key 0-255
USER_DATA 2 key_len 0-s32max[c]
BYTE_COUNT 1 ==in_key2 8050
USER_PTR 1 in_key

crypto/aes.c crypto_aes_skcipher_setkey() -> aes_preparekey()

Type Parameter Key Value
BUF_SIZE 1 in_key (-1)-s32max
BUF_SIZE 1 in_key (-1)-s32max
CAPPED_DATA 2 key_len 1
DATA_SOURCE 1 in_key $1
DATA_SOURCE 2 key_len $2
NOSPEC 2 key_len
NOSPEC 2 key_len
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *in_key 0-255
USER_DATA 2 key_len 0-s32max[c]
BYTE_COUNT 1 ==in_key2 8050
USER_PTR 1 in_key
HALF_LOCKED2 &ac->mutex
HALF_LOCKED2 &crypt_stat->cs_mutex
HALF_LOCKED2 &crypt_stat->cs_tfm_mutex
HALF_LOCKED2 &crypt_stat->keysig_list_mutex
HALF_LOCKED2 &mkey->sem
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 &walker->global_auth_tok_key->sem
HALF_LOCKED2 global &key_tfm_list_mutex
HALF_LOCKED2 s->tfm_mutex
HALF_LOCKED2 sk
HALF_LOCKED2 tfm_mutex

lib/crypto/aes.c aes_cbc_cts_fips_test() -> aes_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 6586644598607241216
PARAM_VALUE 1 in_key 5418888213823639552
PARAM_VALUE 2 key_len 16
BUF_SIZE 1 in_key 16
UNITS 2 key_len unit_byte

lib/crypto/aes.c aes_cbc_fips_test() -> aes_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 5915347854033514496
PARAM_VALUE 1 in_key 5418888213823639552
PARAM_VALUE 2 key_len 16
BUF_SIZE 1 in_key 16
UNITS 2 key_len unit_byte

lib/crypto/aes.c aes_ecb_fips_test() -> aes_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 2036837397744717824
PARAM_VALUE 1 in_key 5418888213823639552
PARAM_VALUE 2 key_len 16
BUF_SIZE 1 in_key 16
UNITS 2 key_len unit_byte

lib/crypto/aes.c aes_fips_test() -> aes_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 260112785993285632
PARAM_VALUE 1 in_key 5418888213823639552
PARAM_VALUE 2 key_len 16
BUF_SIZE 1 in_key 16
UNITS 2 key_len unit_byte

lib/crypto/aes.c aes_xts_preparekey() -> aes_preparekey()

Type Parameter Key Value
BUF_SIZE 1 in_key (-1)-s32max
BUF_SIZE 1 in_key (-1)-s32max
CAPPED_DATA 2 key_len 1
DATA_SOURCE 1 in_key $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *in_key 0-255
USER_DATA 2 key_len 0-1073741823[c]
USER_PTR 1 in_key

drivers/crypto/chelsio/chcr_algo.c chcr_update_tweak() -> aes_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 5684449423667286016
PARAM_VALUE 1 in_key 4096-ptr_max
PARAM_VALUE 2 key_len 0-u32max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

drivers/crypto/chelsio/chcr_algo.c chcr_update_tweak() -> aes_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 5684449423667286016
PARAM_VALUE 1 in_key 4096-ptr_max
PARAM_COMPARE 1 in_key >= $2
PARAM_COMPARE 1 in_key >= $2
PARAM_COMPARE 2 key_len <= $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read