Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- crypto/sha256.c, line 257
- drivers/crypto/chelsio/chcr_algo.c, line 308
- drivers/crypto/intel/qat/qat_common/qat_algs.c, line 115
- lib/crypto/sha256.c, line 375
- lib/crypto/tests/sha256_kunit.c, line 18
- net/ceph/crypto.c, line 87
- net/ceph/messenger_v2.c, line 724
- net/ipv6/seg6_hmac.c, line 246
- net/sctp/endpointola.c, line 43
Smatch caller information:
net/ceph/messenger_v2.c setup_crypto() -> hmac_sha256_preparekey()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | $ | 4096-ptr_max |
| PARAM_VALUE | 1 | $ | 6815096385052200960 |
| PARAM_VALUE | 2 | $ | 1-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | $ | 32 |
| BUF_SIZE | 1 | $ | 32 |
| DATA_SOURCE | 1 | $ | $1 |
| DATA_SOURCE | 2 | $ | $2 |
| NOCHECK_CALL | |||
| LOCK2 | &con->mutex | ||
| TYPE_LOCK | (struct ceph_connection)->mutex |
drivers/crypto/intel/qat/qat_common/qat_algs.c qat_alg_do_precomputes() -> hmac_sha256_preparekey()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | $ | 6351887693599416320 |
| PARAM_VALUE | 1 | $ | 4096-ptr_max |
| PARAM_VALUE | 2 | $ | 1-2147483639 |
| DATA_SOURCE | 1 | $ | $2 |
| DATA_SOURCE | 2 | $ | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | $ | 1-2147483639[c] |
| UNITS | 2 | $ | unit_byte |
| HALF_LOCKED2 | &con->mutex | ||
| HALF_LOCKED2 | &sdata->sec_mtx | ||
| HALF_LOCKED2 | sk |
net/ipv6/seg6_hmac.c seg6_hmac_info_add() -> hmac_sha256_preparekey()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | $ | 1-64 |
| BUF_SIZE | 1 | $ | 64 |
| CAPPED_DATA | 2 | $ | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | *$ | 0-255[u] |
| USER_PTR | 1 | $ | |
| LOCK2 | &sdata->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct seg6_pernet_data)->lock |
lib/crypto/tests/sha256_kunit.c test_hmac() -> hmac_sha256_preparekey()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | $ | 3538583531127074816 |
| PARAM_VALUE | 1 | $ | 4096-ptr_max |
| PARAM_VALUE | 2 | $ | 32 |
| DATA_SOURCE | 1 | $ | r alloc_guarded_buf |
| NOCHECK_CALL |
lib/crypto/tests/sha256_kunit.c test_hmac() -> hmac_sha256_preparekey()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | $ | 3538583531127074816 |
| PARAM_VALUE | 1 | $ | 4096-ptr_max |
| PARAM_VALUE | 2 | $ | 0-292 |
| DATA_SOURCE | 1 | $ | r alloc_guarded_buf |
| FUZZY_MAX | 2 | $ | 292 |
| HARD_MAX | 2 | $ | 292 |
| NOCHECK_CALL |
crypto/sha256.c crypto_hmac_sha256_setkey() -> hmac_sha256_preparekey()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | $ | (-1)-s32max |
| BUF_SIZE | 1 | $ | (-1)-s32max |
| DATA_SOURCE | 1 | $ | $1 |
| DATA_SOURCE | 2 | $ | $2 |
| PARAM_COMPARE | 1 | $ | == $2 |
| NOSPEC | 2 | $ | |
| NOSPEC | 2 | $ | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | *$ | 0-255 |
| USER_DATA | 2 | $ | 0-s32max[c] |
| BYTE_COUNT | 1 | ==$2 | 8050 |
| USER_PTR | 1 | $ | |
| HALF_LOCKED2 | &keyring_key->sem | ||
| HALF_LOCKED2 | global &mutex |
net/sctp/endpointola.c gen_cookie_auth_key() -> hmac_sha256_preparekey()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | $ | 4096-ptr_max |
| PARAM_VALUE | 1 | $ | 978739690873970688 |
| PARAM_VALUE | 2 | $ | 32 |
| BUF_SIZE | 1 | $ | 32 |
| DATA_SOURCE | 0 | $ | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | $ | unit_byte |
| HALF_LOCKED2 | sk |
net/ceph/crypto.c ceph_crypto_key_prepare() -> hmac_sha256_preparekey()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | $ | 1-u64max |
| PARAM_VALUE | 2 | $ | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | $ | 1-32 |
| NOCHECK_CALL | |||
| LOCK2 | &ac->mutex | ||
| HALF_LOCKED2 | &monc->mutex | ||
| TYPE_LOCK | (struct ceph_auth_client)->mutex |
drivers/crypto/chelsio/chcr_algo.c chcr_prepare_hmac_key() -> hmac_sha256_preparekey()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | $ | (-1)-s32max |
| BUF_SIZE | 1 | $ | (-1)-s32max |
| DATA_SOURCE | 1 | $ | $0 |
| DATA_SOURCE | 2 | $ | $1 |
| NOSPEC | 2 | $ | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | *$ | 0-255 |
| USER_DATA | 2 | $ | 0-s32max[c] |
| UNITS | 2 | $ | unit_byte |
| BYTE_COUNT | 1 | ==$2 | 8050 |
| USER_PTR | 1 | $ | |
| HALF_LOCKED2 | sk |