Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/crypto/hisilicon/sec2/sec_crypto.c sec_aead_setkey() -> sec_aead_fallback_setkey()

Type Parameter Key Value
PARAM_VALUE 0 a_ctx 4096-ptr_max
PARAM_VALUE 1 tfm->base.__crt_ctx->qps 0
BUF_SIZE 0 a_ctx 40
BUF_SIZE 1 tfm (-1),1-s32max
BUF_SIZE 1 tfm (-1),1-s32max
BUF_SIZE 2 key (-1)-s32max
BUF_SIZE 2 key (-1)-s32max
DATA_SOURCE 1 tfm $0
DATA_SOURCE 2 key $1
DATA_SOURCE 3 keylen $2
PARAM_COMPARE 2 key == $3
NOSPEC 3 keylen
NOSPEC 3 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 tfm->authsize 8[c]
USER_DATA 2 *key 0-255
USER_DATA 3 keylen 0-s32max[c]
BYTE_COUNT 2 ==key3 8050
USER_PTR 2 key
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

drivers/crypto/hisilicon/sec2/sec_crypto.c sec_aead_setkey() -> sec_aead_fallback_setkey()

Type Parameter Key Value
PARAM_VALUE 0 a_ctx 4096-ptr_max
PARAM_VALUE 1 tfm->base.__crt_ctx->a_ctx.a_alg 0,16-17,21
PARAM_VALUE 1 tfm->base.__crt_ctx->c_ctx.c_alg 2-3
PARAM_VALUE 1 tfm->base.__crt_ctx->c_ctx.c_key_len 0-2
PARAM_VALUE 1 tfm->base.__crt_ctx->c_ctx.fallback 1
PARAM_VALUE 1 tfm->base.__crt_ctx->qps 1-u64max
PARAM_VALUE 3 keylen 16,24,32,48,64
BUF_SIZE 0 a_ctx 40
BUF_SIZE 1 tfm (-1),1-s32max
BUF_SIZE 1 tfm (-1),1-s32max
BUF_SIZE 2 key (-1)-s32max
BUF_SIZE 2 key (-1)-s32max
DATA_SOURCE 1 tfm $0
DATA_SOURCE 2 key $1
DATA_SOURCE 3 keylen $2
PARAM_COMPARE 2 key == $3
NOSPEC 3 keylen
NOSPEC 3 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 tfm->authsize 8[c]
USER_DATA 2 *key 0-255
USER_DATA 3 keylen 16,24,32,48,64[c]
USER_PTR 2 key
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

drivers/crypto/hisilicon/sec2/sec_crypto.c sec_aead_setkey() -> sec_aead_fallback_setkey()

Type Parameter Key Value
PARAM_VALUE 0 a_ctx 4096-ptr_max
PARAM_VALUE 1 tfm->base.__crt_ctx->a_ctx.a_alg 0,16-17,21
PARAM_VALUE 1 tfm->base.__crt_ctx->c_ctx.c_alg 2-3
PARAM_VALUE 1 tfm->base.__crt_ctx->c_ctx.c_key_len 0-2
PARAM_VALUE 1 tfm->base.__crt_ctx->qps 1-u64max
PARAM_VALUE 3 keylen 4-u32max
BUF_SIZE 0 a_ctx 40
BUF_SIZE 1 tfm (-1),1-s32max
BUF_SIZE 1 tfm (-1),1-s32max
BUF_SIZE 2 key (-1)-s32max
BUF_SIZE 2 key (-1)-s32max
CAPPED_DATA 3 keylen 1
DATA_SOURCE 1 tfm $0
DATA_SOURCE 2 key $1
DATA_SOURCE 3 keylen $2
PARAM_COMPARE 2 key == $3
NOSPEC 3 keylen
NOSPEC 3 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 tfm->authsize 8[c]
USER_DATA 2 *key 0-255
USER_DATA 3 keylen 4-s32max[c]
UNITS 3 keylen unit_byte
BYTE_COUNT 2 ==key3 8050
USER_PTR 2 key
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk