Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 16 files:

Smatch caller information:

crypto/krb5enc.c krb5enc_setkey() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 1 key 4096-ptr_max
PARAM_VALUE 2 keylen 1-2147483639
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 keylen 1-2147483639[c]
UNITS 2 keylen unit_byte
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

drivers/crypto/starfive/jh7110-hash.c starfive_hash_setkey() -> crypto_ahash_setkey()

Type Parameter Key Value
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
PARAM_COMPARE 1 key == $2
NOSPEC 2 keylen
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 0-s32max[c]
BYTE_COUNT 1 ==key2 8050
USER_PTR 1 key
HALF_LOCKED2 sk

crypto/authenc.c crypto_authenc_setkey() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 1 key 4096-ptr_max
PARAM_VALUE 2 keylen 1-2147483639
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 keylen 1-2147483639[c]
UNITS 2 keylen unit_byte
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

crypto/authencesn.c crypto_authenc_esn_setkey() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 1 key 4096-ptr_max
PARAM_VALUE 2 keylen 1-2147483639
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 keylen 1-2147483639[c]
UNITS 2 keylen unit_byte
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

crypto/testmgr.c generate_random_hash_testvec() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 4096-ptr_max
PARAM_VALUE 1 key 16,4096-ptr_max
BUF_SIZE 1 key 1-u16max
CAPPED_DATA 2 keylen 1
HALF_LOCKED2 global &once_lock

crypto/testmgr.c test_ahash_vec_cfg() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 4096-ptr_max
PARAM_VALUE 1 *key 0-255
PARAM_VALUE 2 keylen 1-u16max
DATA_SOURCE 0 tfm r crypto_ahash_reqtfm
HALF_LOCKED2 global &once_lock

drivers/crypto/inside-secure/safexcel_hash.c safexcel_sha3_fbcheck() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 1 key 7151578206294495232
BUF_SIZE 1 key 144
RX_PATH
TASK_NOT_RUNNING

drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c sun8i_ss_hmac_setkey() -> crypto_ahash_setkey()

Type Parameter Key Value
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
CAPPED_DATA 2 keylen 1
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
PARAM_COMPARE 1 key == $2
NOSPEC 2 keylen
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 0-s32max[c]
USER_PTR 1 key
HALF_LOCKED2 sk

drivers/md/dm-integrity.c get_mac() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
PARAM_VALUE 1 key 1-u64max
BUF_SIZE 1 key 1-s32max
DATA_SOURCE 0 tfm r crypto_alloc_ahash

crypto/tcrypt.c test_ahash_speed_common() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 4096-ptr_max
PARAM_VALUE 2 keylen 1-u32max
BUF_SIZE 0 tfm s32min-s32max
DATA_SOURCE 0 tfm r crypto_alloc_ahash

drivers/crypto/atmel-sha.c atmel_sha_authenc_setkey() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 1 key 4096-ptr_max
PARAM_VALUE 2 keylen 1-2147483639
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 keylen 1-2147483639[c]
UNITS 2 keylen unit_byte
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

crypto/ahash.c crypto_ahash_setkey() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 4096-ptr_max
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 0-s32max[c]
UNITS 1 key unit_byte
UNITS 2 keylen unit_byte
BYTE_COUNT 1 ==key2 8050
USER_PTR 1 key
HALF_LOCKED2 sk

drivers/crypto/tegra/tegra-se-hash.c tegra_hmac_fallback_setkey() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-u64max
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
PARAM_COMPARE 1 key == $2
NOSPEC 2 keylen
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *key 0-255
USER_DATA 2 keylen 0-s32max[c]
BYTE_COUNT 1 ==key2 8050
USER_PTR 1 key
HALF_LOCKED2 sk

crypto/ccm.c crypto_ccm_setkey() -> crypto_ahash_setkey()

Type Parameter Key Value
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
CAPPED_DATA 2 keylen 1
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2
NOSPEC 2 keylen
NOSPEC 2 keylen
RX_PATH
TASK_NOT_RUNNING
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/algif_hash.c hash_setkey() -> crypto_ahash_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 (-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
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
HALF_LOCKED2 &smc->clcsock_release_lock

net/ipv4/ah4.c ah_init_state() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
BUF_SIZE 0 tfm s32min-s32max
DATA_SOURCE 0 tfm r crypto_alloc_ahash
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex

net/ipv6/ah6.c ah6_init_state() -> crypto_ahash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
BUF_SIZE 0 tfm s32min-s32max
DATA_SOURCE 0 tfm r crypto_alloc_ahash
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex