Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 4 files as a member:
- drivers/crypto/chelsio/chcr_algo.c, line 285 (as a member)
- drivers/crypto/sa2ul.c, line 442 (as a member)
- drivers/net/wireless/intel/iwlwifi/iwl-drv.c, line 1304 (as a member)
- include/net/seg6_hmac.h, line 37 (as a member)
Defined in 1 files as a function:
Referenced in 21 files:
- crypto/rsassa-pkcs1.c, line 100
- crypto/sha1.c, line 95
- drivers/char/tpm/tpm-sysfs.c, line 488
- drivers/crypto/chelsio/chcr_algo.c
- drivers/crypto/marvell/octeontx/otx_cptvf_algs.c
- drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c
- drivers/crypto/padlock-sha.c
- drivers/crypto/sa2ul.c
- drivers/gpu/drm/bridge/ite-it6505.c
- drivers/net/wireless/intel/iwlwifi/fw/pnvm.c
- drivers/net/wireless/intel/iwlwifi/iwl-drv.c, line 1311
- drivers/nfc/s3fwrn5/firmware.c, line 419
- lib/crypto/arm/sha1-ce-core.S
- lib/crypto/arm64/sha1-ce-core.S
- lib/crypto/sha1.c
- lib/crypto/tests/sha1_kunit.c, line 8
- net/ipv6/seg6_hmac.c
- security/integrity/evm/evm_crypto.c, line 395
- security/integrity/ima/ima_appraise.c, line 100
- security/integrity/integrity.h, line 61
- security/keys/trusted-keys/trusted_tpm1.c, line 462
Smatch caller information:
lib/crypto/tests/sha1_kunit.c benchmark_hash() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 16,4096-ptr_max |
| PARAM_VALUE | 1 | len | 16384 |
| BUF_SIZE | 0 | data | 16384 |
| BUF_SIZE | 0 | data | 16384 |
| BUF_SIZE | 2 | out | 20 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| MEM_ZERO | 0 | data | |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c benchmark_hash() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 16,4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16384 |
| BUF_SIZE | 0 | data | 16384 |
| BUF_SIZE | 0 | data | 16384 |
| BUF_SIZE | 2 | out | 20 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| MEM_ZERO | 0 | data | |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c hash_irq_test1_func() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 256 |
| BUF_SIZE | 2 | out | 20 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_alignment_consistency() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16384 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_alignment_consistency() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16384 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_all_lens_up_to_4096() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 16,4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-4096 |
| PARAM_VALUE | 2 | out | 6704360190265524224 |
| BUF_SIZE | 0 | data | 4096 |
| BUF_SIZE | 0 | data | 4096 |
| BUF_SIZE | 2 | out | 20 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| FUZZY_MAX | 1 | len | 4096 |
| HARD_MAX | 1 | len | 4096 |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_buffer_overruns() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 0-16288 |
| BUF_SIZE | 2 | out | 20 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_buffer_overruns() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16288 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 0 | data | r alloc_guarded_buf |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_incremental_updates() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16384 |
| BUF_SIZE | 2 | out | 20 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_interrupt_context_1() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 256 |
| BUF_SIZE | 2 | out | 20 |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_interrupt_context_2() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 16384 |
| BUF_SIZE | 0 | data | 16384 |
| BUF_SIZE | 0 | data | 16384 |
| BUF_SIZE | 2 | out | 20 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_overlaps() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16364 |
| PARAM_VALUE | 2 | out | 2218034377866981376 |
| BUF_SIZE | 2 | out | 20 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_overlaps() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16364 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_overlaps() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16364 |
| PARAM_VALUE | 2 | out | 2218034377866981376 |
| BUF_SIZE | 2 | out | 20 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_overlaps() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16364 |
| PARAM_VALUE | 2 | out | 2218034377866981376 |
| BUF_SIZE | 2 | out | 20 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha1_kunit.c test_hash_test_vectors() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 16,4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-3,16,32,48-49,63-65,127-129,256,511,513,1000,3333,4096,4128 |
| BUF_SIZE | 0 | data | 16384 |
| BUF_SIZE | 0 | data | 16384 |
| BUF_SIZE | 2 | out | 20 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| NOCHECK_CALL |
drivers/nfc/s3fwrn5/firmware.c s3fwrn5_fw_download() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16711425 |
| BUF_SIZE | 2 | out | 20 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | data | unit_byte |
| LOCK2 | &ndev->req_lock | ||
| LOCK2 | &nfc_dev->dev.mutex | ||
| HALF_LOCKED2 | &dev->ethtool->rss_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 device)->mutex | ||
| TYPE_LOCK | (struct nci_dev)->req_lock |
crypto/sha1.c crypto_sha1_digest() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | data | (-1)-s32max |
| BUF_SIZE | 0 | data | (-1)-s32max |
| BUF_SIZE | 2 | out | (-1)-s32max |
| BUF_SIZE | 2 | out | (-1)-s32max |
| DATA_SOURCE | 0 | data | $1 |
| DATA_SOURCE | 1 | len | $2 |
| DATA_SOURCE | 2 | out | $3 |
| PARAM_COMPARE | 0 | data | == $1 |
| NOSPEC | 0 | *data | |
| NOSPEC | 1 | len | |
| NOSPEC | 1 | len | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | data | 4096-ptr_max[c] |
| HOST_DATA | 1 | len | 0-4605,4294962946-u32max[c] |
| USER_DATA | 0 | data | 4096-ptr_max[c][u] |
| USER_DATA | 0 | *data | 0-255 |
| USER_DATA | 1 | len | 0-u32max |
| USER_DATA | 2 | *out | 0-255 |
| NO_OVERFLOW_SIMPLE | 0 | data->compr_size | |
| NO_OVERFLOW_SIMPLE | 0 | data->ino | |
| NO_OVERFLOW_SIMPLE | 0 | data->jhead | |
| UNITS | 0 | data | unit_byte |
| UNITS | 1 | len | unit_byte |
| UNITS | 2 | out | unit_byte |
| BYTE_COUNT | 0 | ==data1 | 8050 |
| USER_PTR | 0 | data | |
| USER_PTR | 2 | out |
drivers/gpu/drm/bridge/ite-it6505.c it6505_hdcp_part2_ksvlist_check() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 15-645 |
| BUF_SIZE | 0 | data | 645 |
| BUF_SIZE | 2 | out | 20 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r it6505_setup_sha1_input |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
security/keys/trusted-keys/trusted_tpm1.c tpm_seal() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 40 |
| BUF_SIZE | 0 | data | 40 |
| BUF_SIZE | 2 | out | 20 |
| NOCHECK_CALL |
lib/crypto/sha1.c __hmac_sha1_preparekey() -> sha1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 65-u64max |
| BUF_SIZE | 0 | data | (-1)-s32max |
| BUF_SIZE | 0 | data | (-1)-s32max |
| BUF_SIZE | 2 | out | 64 |
| DATA_SOURCE | 0 | data | $2 |
| DATA_SOURCE | 1 | len | $3 |
| FUZZY_MAX | 1 | len | 65 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | *data | 0-255 |
| USER_DATA | 1 | len | 65-s32max[c] |
| UNITS | 1 | len | unit_byte |
| BYTE_COUNT | 0 | ==data1 | 8050 |
| USER_PTR | 0 | data |