Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/nvme/host/auth.c nvme_auth_dhchap_setup_ctrl_response() -> nvme_auth_hmac_init()

Type Parameter Key Value
PARAM_VALUE 0 hmac 7668018217179533312
PARAM_VALUE 1 hmac_id 1-3
NO_OVERFLOW_SIMPLE 3 key_len
UNITS 1 hmac_id unit_array_size
LOCK2 &ctrl->dhchap_auth_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct nvme_ctrl)->dhchap_auth_mutex

drivers/nvme/host/auth.c nvme_auth_dhchap_setup_host_response() -> nvme_auth_hmac_init()

Type Parameter Key Value
PARAM_VALUE 0 hmac 9115359025577537536
PARAM_VALUE 1 hmac_id 0-3
NO_OVERFLOW_SIMPLE 3 key_len
UNITS 1 hmac_id unit_array_size
LOCK2 &ctrl->dhchap_auth_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct nvme_ctrl)->dhchap_auth_mutex

drivers/nvme/target/auth.c nvmet_auth_ctrl_hash() -> nvme_auth_hmac_init()

Type Parameter Key Value
PARAM_VALUE 0 hmac 3604497333532909568
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 3 key_len
UNITS 1 hmac_id unit_array_size
HALF_LOCKED2 &pool->lock

drivers/nvme/target/auth.c nvmet_auth_host_hash() -> nvme_auth_hmac_init()

Type Parameter Key Value
PARAM_VALUE 0 hmac 127935298153615360
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 3 key_len
UNITS 1 hmac_id unit_array_size
HALF_LOCKED2 &pool->lock

drivers/nvme/common/auth.c nvme_auth_generate_digest() -> nvme_auth_hmac_init()

Type Parameter Key Value
PARAM_VALUE 0 hmac 3072893217506639872
PARAM_VALUE 1 hmac_id 1-3
PARAM_VALUE 2 key 16,4096-ptr_max
PARAM_VALUE 3 key_len 0-4000000
DATA_SOURCE 1 hmac_id $0
DATA_SOURCE 2 key $1
DATA_SOURCE 3 key_len $2
STR_LEN 0 hmac (-1),9
STR_LEN 1 hmac_id (-1),7
STR_LEN 2 key (-1),7
RX_PATH
TASK_NOT_RUNNING
UNITS 1 hmac_id unit_array_size

drivers/nvme/common/auth.c nvme_auth_generate_psk() -> nvme_auth_hmac_init()

Type Parameter Key Value
PARAM_VALUE 0 hmac 6704038849412792320
PARAM_VALUE 3 key_len 0-s32max,18446744071562067968-u64max
BUF_SIZE 2 key s32min-(-2),1-s32max
BUF_SIZE 2 key s32min-(-2),1-s32max
DATA_SOURCE 1 hmac_id $0
DATA_SOURCE 2 key $1
DATA_SOURCE 3 key_len $2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 hmac_id unit_array_size
UNITS 3 key_len unit_byte

drivers/nvme/common/auth.c nvme_auth_hmac() -> nvme_auth_hmac_init()

Type Parameter Key Value
PARAM_VALUE 0 hmac 7066776844439191552
PARAM_VALUE 1 hmac_id 1-3
PARAM_VALUE 3 key_len 0-s32max,18446744071562067968-u64max
BUF_SIZE 2 key s32min-(-2),1-s32max
BUF_SIZE 2 key s32min-(-2),1-s32max
CAPPED_DATA 3 key_len 1
CAPPED_DATA 3 key_len 1
DATA_SOURCE 1 hmac_id $0
DATA_SOURCE 2 key $1
DATA_SOURCE 3 key_len $2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 hmac_id unit_array_size
UNITS 3 key_len unit_byte

drivers/nvme/common/auth.c nvme_auth_transform_key() -> nvme_auth_hmac_init()

Type Parameter Key Value
PARAM_VALUE 0 hmac 2174205601444700160
PARAM_VALUE 1 hmac_id 1-255
RX_PATH
TASK_NOT_RUNNING
UNITS 1 hmac_id unit_array_size
HALF_LOCKED2 &ctrl->dhchap_auth_mutex
HALF_LOCKED2 &pool->lock