Defined in 6 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/crypto/caam/caamalg.c des3_aead_setkey() -> aead_setkey()

Type Parameter Key Value
PARAM_VALUE 2 keylen 4-u32max
BUF_SIZE 0 tfm (-1),1-s32max
BUF_SIZE 0 tfm (-1),1-s32max
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
CAPPED_DATA 2 keylen 1
DATA_SOURCE 0 tfm $0
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
NOSPEC 2 keylen
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tfm->authsize 8[c]
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 4-s32max[c]
UNITS 2 keylen unit_byte
BYTE_COUNT 1 ==key2 8050
USER_PTR 1 key
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

drivers/crypto/caam/caamalg_qi2.c des3_aead_setkey() -> aead_setkey()

Type Parameter Key Value
PARAM_VALUE 2 keylen 4-u32max
BUF_SIZE 0 tfm (-1),1-s32max
BUF_SIZE 0 tfm (-1),1-s32max
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
CAPPED_DATA 2 keylen 1
DATA_SOURCE 0 tfm $0
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
NOSPEC 2 keylen
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tfm->authsize 8[c]
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 4-s32max[c]
UNITS 2 keylen unit_byte
BYTE_COUNT 1 ==key2 8050
USER_PTR 1 key
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

drivers/crypto/caam/caamalg_qi.c des3_aead_setkey() -> aead_setkey()

Type Parameter Key Value
PARAM_VALUE 2 keylen 4-u32max
BUF_SIZE 0 tfm (-1),1-s32max
BUF_SIZE 0 tfm (-1),1-s32max
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
CAPPED_DATA 2 keylen 1
DATA_SOURCE 0 tfm $0
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
NOSPEC 2 keylen
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tfm->authsize 8[c]
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 4-s32max[c]
UNITS 2 keylen unit_byte
BYTE_COUNT 1 ==key2 8050
USER_PTR 1 key
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

crypto/af_alg.c alg_setkey() -> (struct af_alg_type)->setkey()

Type Parameter Key Value
PARAM_VALUE 1 key 16,4096-ptr_max
PARAM_VALUE 2 keylen 0-4000000
BUF_SIZE 0 tfm 1-s32max
BUF_SIZE 1 key 0-u32max
BUF_SIZE 1 key 0-u32max
CAPPED_DATA 2 keylen 1
DATA_SOURCE 1 key r sock_kmalloc
DATA_SOURCE 2 keylen $2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 0-4000000[c]
BYTE_COUNT 1 ==key2 8050
USER_PTR 1 key
LOCK2 sk

crypto/af_alg.c alg_setkey_by_key_serial() -> (struct af_alg_type)->setkey()

Type Parameter Key Value
PARAM_VALUE 1 key 16,4096-ptr_max
PARAM_VALUE 2 keylen 0-4000000
BUF_SIZE 0 tfm 1-s32max
BUF_SIZE 1 key s32min-s32max
CAPPED_DATA 2 keylen 1
DATA_SOURCE 1 key r sock_kmemdup
CONTAINER 0 *(-16-1496+1504) $(-1)
RX_PATH
TASK_NOT_RUNNING
LOCK2 sk

crypto/aead.c crypto_aead_setkey() -> (struct aead_alg)->setkey()

Type Parameter Key Value
BUF_SIZE 0 tfm (-1),1-s32max
BUF_SIZE 0 tfm (-1),1-s32max
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
DATA_SOURCE 0 tfm $0
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tfm->authsize 8[c]
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 0-s32max[c]
BYTE_COUNT 1 ==key2 8050
USER_PTR 1 key
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

crypto/aead.c setkey_unaligned() -> (struct aead_alg)->setkey()

Type Parameter Key Value
PARAM_VALUE 1 key 0-4294967311
PARAM_VALUE 2 keylen 0-u32max
BUF_SIZE 0 tfm (-1),1-s32max
BUF_SIZE 0 tfm (-1),1-s32max
DATA_SOURCE 0 tfm $0
DATA_SOURCE 2 keylen $2
NOSPEC 2 keylen
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tfm->authsize 8[c]
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 0-s32max[c]
USER_PTR 1 key
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk