Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 17 files:

Smatch caller information:

crypto/krb5/krb5_api.c krb5_prepare_checksum() -> crypto_shash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
PARAM_VALUE 1 key 16,4096-ptr_max
PARAM_VALUE 2 keylen 0-1010100
BUF_SIZE 0 tfm s32min-s32max
BUF_SIZE 1 key 1-s32max
DATA_SOURCE 0 tfm r crypto_alloc_shash
RX_PATH
TASK_NOT_RUNNING
UNITS 1 key unit_byte
UNITS 2 keylen unit_byte

security/integrity/evm/evm_crypto.c init_desc() -> crypto_shash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
PARAM_VALUE 1 key 4375289809229402112
PARAM_VALUE 2 keylen 128
BUF_SIZE 0 tfm s32min-s32max
BUF_SIZE 1 key 128
DATA_SOURCE 0 tfm r crypto_alloc_shash
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &mutex
HALF_LOCKED2 &inode->i_rwsem

fs/ubifs/auth.c ubifs_init_authentication() -> crypto_shash_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_shash
UNITS 2 keylen unit_byte
LOCK2 &keyring_key->sem
TYPE_LOCK (struct key)->sem

crypto/testmgr.c test_shash_vec_cfg() -> crypto_shash_setkey()

Type Parameter Key Value
PARAM_VALUE 1 *key 0-255
PARAM_VALUE 2 keylen 1-u16max
HALF_LOCKED2 global &once_lock

crypto/krb5/rfc8009_aes2.c rfc8009_calc_KDF_HMAC_SHA2() -> crypto_shash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
BUF_SIZE 0 tfm s32min-s32max
BUF_SIZE 1 key (-1)-u16max
DATA_SOURCE 0 tfm r crypto_alloc_shash
RX_PATH
TASK_NOT_RUNNING
UNITS 1 key unit_byte
UNITS 2 keylen unit_byte

drivers/md/dm-integrity.c get_mac() -> crypto_shash_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_shash

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

Type Parameter Key Value
BUF_SIZE 1 key (-1)-s32max
BUF_SIZE 1 key (-1)-s32max
DATA_SOURCE 0 tfm r ahash_to_shash
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

crypto/krb5/rfc6803_camellia.c rfc6803_calc_KDF_FEEDBACK_CMAC() -> crypto_shash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
BUF_SIZE 0 tfm s32min-s32max
BUF_SIZE 1 key (-1)-u16max
DATA_SOURCE 0 tfm r crypto_alloc_shash
RX_PATH
TASK_NOT_RUNNING
UNITS 1 key unit_byte
UNITS 2 keylen unit_byte

crypto/krb5/rfc6803_camellia.c rfc6803_calc_PRF() -> crypto_shash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
PARAM_VALUE 2 keylen 0-u16max
BUF_SIZE 0 tfm s32min-s32max
BUF_SIZE 1 key 1-s32max
CAPPED_DATA 2 keylen 1
DATA_SOURCE 0 tfm r crypto_alloc_shash
RX_PATH
TASK_NOT_RUNNING
UNITS 1 key unit_byte
UNITS 2 keylen unit_byte

crypto/kdf_sp800108.c crypto_kdf108_setkey() -> crypto_shash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
DATA_SOURCE 0 tfm $0
DATA_SOURCE 1 key $1
DATA_SOURCE 2 keylen $2

drivers/crypto/tegra/tegra-se-aes.c tegra_cmac_setkey() -> crypto_shash_setkey()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-u64max
PARAM_VALUE 2 keylen 16,24,32
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 16,24,32[c]
BYTE_COUNT 1 ==key2 8050
USER_PTR 1 key
HALF_LOCKED2 sk

crypto/cryptd.c cryptd_hash_setkey() -> crypto_shash_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
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