Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

net/mptcp/crypto.c mptcp_crypto_hmac_sha() -> hmac_sha256_usingrawkey()

Type Parameter Key Value
PARAM_VALUE 0 $ 4096-ptr_max
PARAM_VALUE 1 $ 16
PARAM_VALUE 2 $ 4096-ptr_max
PARAM_VALUE 3 $ 3-19
PARAM_VALUE 4 $ 2004121588910194688,2605476454673084416,2877230935503818752,5879949375110701056,6737374599337492480,8652389618569773056
BUF_SIZE 0 $ 16
BUF_SIZE 2 $ 8,19
BUF_SIZE 2 $ 8,19
BUF_SIZE 4 $ 32
BUF_SIZE 4 $ 32
DATA_SOURCE 2 $ $2
DATA_SOURCE 3 $ $3
DATA_SOURCE 4 $ $4
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 $ unit_byte

security/keys/encrypted-keys/encrypted.c datablob_hmac_append() -> hmac_sha256_usingrawkey()

Type Parameter Key Value
PARAM_VALUE 0 $ 6093768750801133568
PARAM_VALUE 1 $ 32
PARAM_VALUE 4 $ 4096-ptr_max
BUF_SIZE 0 $ 32
PARAM_COMPARE 2 $ <= $4
PARAM_COMPARE 3 $ <= $4
NOCHECK_CALL
UNITS 1 $ unit_byte
UNITS 2 $ unit_byte
UNITS 3 $ unit_byte
UNITS 4 $ unit_byte
LOCK2 &key->sem
TYPE_LOCK (struct key)->sem

security/keys/encrypted-keys/encrypted.c datablob_hmac_verify() -> hmac_sha256_usingrawkey()

Type Parameter Key Value
PARAM_VALUE 0 $ 4955411994388361216
PARAM_VALUE 1 $ 32
PARAM_VALUE 2 $ 4096-ptr_max
BUF_SIZE 0 $ 32
BUF_SIZE 4 $ 32
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 $ unit_byte
UNITS 2 $ unit_byte
UNITS 3 $ unit_byte
LOCK2 global &key_construction_mutex
HALF_LOCKED2 &keyring->sem
HALF_LOCKED2 global &key_types_sem

drivers/thunderbolt/domain.c tb_domain_challenge_switch_key() -> hmac_sha256_usingrawkey()

Type Parameter Key Value
PARAM_VALUE 0 $ 1-u64max
PARAM_VALUE 1 $ 32
PARAM_VALUE 2 $ 5063833637352321024
PARAM_VALUE 3 $ 32
BUF_SIZE 0 $ 32
BUF_SIZE 2 $ 32
BUF_SIZE 4 $ 32
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 $ unit_byte
LOCK2 &of->mutex
LOCK2 &sw->tb->lock
LOCK2 &tb->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct tb)->lock

lib/crypto/tests/sha256_kunit.c test_hmac() -> hmac_sha256_usingrawkey()

Type Parameter Key Value
PARAM_VALUE 0 $ 4096-ptr_max
PARAM_VALUE 1 $ 0-292
PARAM_VALUE 2 $ 4096-ptr_max
PARAM_VALUE 3 $ 0-4096
PARAM_VALUE 4 $ 8710468194433556480
BUF_SIZE 4 $ 32
DATA_SOURCE 0 $ r alloc_guarded_buf
DATA_SOURCE 2 $ r alloc_guarded_buf
FUZZY_MAX 1 $ 292
FUZZY_MAX 3 $ 4096
HARD_MAX 1 $ 292
HARD_MAX 3 $ 4096
NOCHECK_CALL

net/ipv4/tcp_ao.c tcp_ao_calc_traffic_key() -> hmac_sha256_usingrawkey()

Type Parameter Key Value
PARAM_VALUE 2 $ 1876489687401967616,7589437942706016256
PARAM_VALUE 3 $ 29,53
BUF_SIZE 0 $ 80
BUF_SIZE 2 $ 29,53
DATA_SOURCE 2 $ $2
DATA_SOURCE 3 $ $3
DATA_SOURCE 4 $ $1
HARD_MAX 3 $ 53
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 $ 0-80
UNITS 3 $ unit_byte

net/sctp/auth.c sctp_auth_calculate_hmac() -> hmac_sha256_usingrawkey()

Type Parameter Key Value
PARAM_VALUE 1 $ 0-3999992
PARAM_VALUE 2 $ 4096-ptr_max
PARAM_VALUE 3 $ 0-9223372036854771712,9223372036854779904-u64max
BUF_SIZE 4 $ 0
DATA_SOURCE 2 $ $2
PARAM_COMPARE 2 &$->auth_hdr < $4
BIT_INFO 3 $ 0x0,0x7fffffffffffffff
BIT_INFO 3 $ 0x0,0x7fffffffffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 $ 0-393210[c]
UNITS 1 $ unit_byte
UNITS 2 $ unit_byte
UNITS 3 $ unit_byte