Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

crypto/aes.c crypto_aes_ccm_setkey() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 3 authtag_len 0-u32max
BUF_SIZE 1 in_key (-1)-s32max
BUF_SIZE 1 in_key (-1)-s32max
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]
USER_DATA 3 authtag_len 8[c]
BYTE_COUNT 1 ==in_key2 8050
USER_PTR 1 in_key
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

lib/crypto/aes.c aes_ccm_fips_test() -> aes_ccm_preparekey()

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

lib/crypto/tests/aes_ccm_kunit.c aead_alloc_random_key() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 16,4096-ptr_max
PARAM_VALUE 1 in_key 67422984984252416
PARAM_VALUE 2 key_len 16,24,32
PARAM_VALUE 3 authtag_len 4,6,8,10,12,14,16
BUF_SIZE 0 key 264
BUF_SIZE 1 in_key 32
CAPPED_DATA 2 key_len 1
CAPPED_DATA 2 key_len 1
DATA_SOURCE 0 key r alloc_buf

lib/crypto/tests/aes_ccm_kunit.c aead_do_basic_checks() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 1 in_key 4096-ptr_max
PARAM_VALUE 2 key_len 16,24,32
PARAM_VALUE 3 authtag_len 4,6,8,10,12,14,16
CAPPED_DATA 2 key_len 1
CAPPED_DATA 2 key_len 1
CAPPED_DATA 3 authtag_len 1
CAPPED_DATA 3 authtag_len 1
DATA_SOURCE 2 key_len $2
DATA_SOURCE 3 authtag_len $4

lib/crypto/tests/aes_ccm_kunit.c aead_irq_test_func() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 16
BUF_SIZE 1 in_key 32
RX_PATH
TASK_NOT_RUNNING
UNITS 2 key_len unit_byte

lib/crypto/tests/aes_ccm_kunit.c aead_verify_invalid_key_len() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 0 key->aes.len 0
PARAM_VALUE 0 key->aes.nrounds 0
PARAM_VALUE 0 key->authtag_len 0
PARAM_VALUE 1 in_key 1-u64max
PARAM_VALUE 2 key_len 0-33,64,u32max,u64max
PARAM_VALUE 3 authtag_len 16
DATA_SOURCE 2 key_len $2
FUZZY_MAX 2 key_len 32
HARD_MAX 2 key_len u64max
MEM_ZERO 0 key

lib/crypto/tests/aes_ccm_kunit.c aead_verify_invalid_nonce_len() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 1 in_key 2587740715706814464
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 16
BUF_SIZE 1 in_key 32
UNITS 2 key_len unit_byte

lib/crypto/tests/aes_ccm_kunit.c aead_verify_invalid_tag_len() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 0 key->aes.len 0
PARAM_VALUE 0 key->aes.nrounds 0
PARAM_VALUE 0 key->authtag_len 0
PARAM_VALUE 1 in_key 441410274080755712
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 0-17,32,u32max,u64max
BUF_SIZE 1 in_key 32
DATA_SOURCE 3 authtag_len $2
FUZZY_MAX 3 authtag_len 16
HARD_MAX 3 authtag_len u64max
MEM_ZERO 0 key
UNITS 2 key_len unit_byte

lib/crypto/tests/aes_ccm_kunit.c benchmark_aead() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 16,4096-ptr_max
PARAM_VALUE 1 in_key 16,4096-ptr_max
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 16
BUF_SIZE 0 key 264
BUF_SIZE 1 in_key s32min-s32max
DATA_SOURCE 0 key r alloc_buf
DATA_SOURCE 1 in_key r aead_alloc_random_data

lib/crypto/tests/aes_ccm_kunit.c test_aead_alignment_consistency() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 16,4096-ptr_max
PARAM_VALUE 1 in_key 4096-ptr_max
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 16
BUF_SIZE 0 key 264
DATA_SOURCE 0 key r alloc_buf

lib/crypto/tests/aes_ccm_kunit.c test_aead_alignment_consistency() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 0 key->aes.k->rndkeys 0-255
PARAM_VALUE 0 key->aes.len 32
PARAM_VALUE 0 key->aes.nrounds 10,12,14
PARAM_VALUE 0 key->authtag_len 16
PARAM_VALUE 1 in_key 4096-ptr_max
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 16
BUF_SIZE 0 key 264
DATA_SOURCE 0 key r alloc_buf

lib/crypto/tests/aes_ccm_kunit.c test_aead_alignment_consistency() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 0 key->aes.k->rndkeys 0-255
PARAM_VALUE 0 key->aes.len 32
PARAM_VALUE 0 key->aes.nrounds 10,12,14
PARAM_VALUE 0 key->authtag_len 16
PARAM_VALUE 1 in_key 4096-ptr_max
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 16
BUF_SIZE 0 key 264
DATA_SOURCE 0 key r alloc_buf

lib/crypto/tests/aes_ccm_kunit.c test_aead_alignment_consistency() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 0 key->aes.k->rndkeys 0-255
PARAM_VALUE 0 key->aes.len 32
PARAM_VALUE 0 key->aes.nrounds 10,12,14
PARAM_VALUE 0 key->authtag_len 16
PARAM_VALUE 1 in_key 4096-ptr_max
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 16
BUF_SIZE 0 key 264
DATA_SOURCE 0 key r alloc_buf

lib/crypto/tests/aes_ccm_kunit.c test_aead_interrupt_context() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 1 in_key 4096-ptr_max
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 16
BUF_SIZE 1 in_key 32
UNITS 2 key_len unit_byte

lib/crypto/tests/aes_ccm_kunit.c test_aead_monte_carlo() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 16,4096-ptr_max
PARAM_VALUE 1 in_key 4430073935619788800
PARAM_VALUE 2 key_len 16,24,32
PARAM_VALUE 3 authtag_len 4,6,8,10,12,14,16
BUF_SIZE 0 key 264
BUF_SIZE 1 in_key 32
CAPPED_DATA 2 key_len 1
CAPPED_DATA 2 key_len 1
DATA_SOURCE 0 key r alloc_buf

lib/crypto/tests/aes_ccm_kunit.c test_aes_ccm_data_len_too_large() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 16,4096-ptr_max
PARAM_VALUE 1 in_key 3546057822271881216
PARAM_VALUE 2 key_len 32
PARAM_VALUE 3 authtag_len 16
BUF_SIZE 0 key 264
BUF_SIZE 1 in_key 32
DATA_SOURCE 0 key r alloc_buf
UNITS 2 key_len unit_byte

lib/crypto/tests/aes_ccm_kunit.c test_aes_ccm_one_test_vector() -> aes_ccm_preparekey()

Type Parameter Key Value
PARAM_VALUE 0 key 6403024508372566016
PARAM_VALUE 2 key_len 16
PARAM_VALUE 3 authtag_len 4,6,8,10,14
BUF_SIZE 1 in_key 16
NO_OVERFLOW_SIMPLE 2 key_len