Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 7 files as a member:
- arch/s390/crypto/hmac_s390.c, line 112 (as a member)
- arch/s390/crypto/phmac_s390.c, line 214 (as a member)
- drivers/crypto/chelsio/chcr_algo.c, line 289 (as a member)
- drivers/crypto/nx/nx_csbcpb.h, line 131 (as a member)
- fs/verity/fsverity_private.h, line 36 (as a member)
- include/linux/nvme-auth.h, line 31 (as a member)
- samples/tsm-mr/tsm_mr_sample.c, line 39 (as a member)
Defined in 1 files as a function:
Referenced in 13 files:
- crypto/rsassa-pkcs1.c, line 104
- crypto/sha512.c, line 164
- drivers/char/tpm/tpm-sysfs.c, line 491
- drivers/crypto/chelsio/chcr_algo.c
- drivers/crypto/chelsio/chcr_algo.h
- drivers/crypto/marvell/octeontx/otx_cptvf_algs.c
- drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c
- drivers/crypto/nx/nx-sha512.c
- drivers/nvme/common/auth.c
- fs/verity/hash_algs.c
- lib/crypto/sha512.c
- lib/crypto/tests/sha512_kunit.c, line 8
- samples/tsm-mr/tsm_mr_sample.c
Smatch caller information:
lib/crypto/sha512.c __hmac_sha512_preparekey() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 129-u64max |
| BUF_SIZE | 0 | data | s32min-s32max |
| BUF_SIZE | 2 | out | 128 |
| DATA_SOURCE | 0 | data | $2 |
| DATA_SOURCE | 1 | len | $3 |
| FUZZY_MAX | 1 | len | 129 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | *data | 0-255 |
| USER_DATA | 1 | len | 129-s32max[c] |
| UNITS | 1 | len | unit_byte |
| BYTE_COUNT | 0 | ==data1 | 8050 |
| USER_PTR | 0 | data |
lib/crypto/tests/sha512_kunit.c benchmark_hash() -> sha512()
| 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 | 64 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| MEM_ZERO | 0 | data | |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c benchmark_hash() -> sha512()
| 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 | 64 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| MEM_ZERO | 0 | data | |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c hash_irq_test1_func() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 256 |
| BUF_SIZE | 2 | out | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_alignment_consistency() -> sha512()
| 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/sha512_kunit.c test_hash_alignment_consistency() -> sha512()
| 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/sha512_kunit.c test_hash_all_lens_up_to_4096() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 16,4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-4096 |
| PARAM_VALUE | 2 | out | 4325383252655865856 |
| BUF_SIZE | 0 | data | 4096 |
| BUF_SIZE | 0 | data | 4096 |
| BUF_SIZE | 2 | out | 64 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| FUZZY_MAX | 1 | len | 4096 |
| HARD_MAX | 1 | len | 4096 |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_buffer_overruns() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 0-16176 |
| BUF_SIZE | 2 | out | 64 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_buffer_overruns() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16176 |
| 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/sha512_kunit.c test_hash_incremental_updates() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16384 |
| BUF_SIZE | 2 | out | 64 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_interrupt_context_1() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 256 |
| BUF_SIZE | 2 | out | 64 |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_interrupt_context_2() -> sha512()
| 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 | 64 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_overlaps() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16320 |
| PARAM_VALUE | 2 | out | 4941232390526214144 |
| BUF_SIZE | 2 | out | 64 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_overlaps() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16320 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_overlaps() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16320 |
| PARAM_VALUE | 2 | out | 4941232390526214144 |
| BUF_SIZE | 2 | out | 64 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_overlaps() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16320 |
| PARAM_VALUE | 2 | out | 4941232390526214144 |
| BUF_SIZE | 2 | out | 64 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha512_kunit.c test_hash_test_vectors() -> sha512()
| 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 | 64 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| NOCHECK_CALL |
drivers/nvme/common/auth.c nvme_auth_hash() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 16,4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-4000000 |
| PARAM_VALUE | 2 | out | 16,4096-ptr_max |
| BUF_SIZE | 0 | data | 0-s32max |
| BUF_SIZE | 0 | data | 0-s32max |
| BUF_SIZE | 2 | out | (-1)-255 |
| BUF_SIZE | 2 | out | (-1)-255 |
| CAPPED_DATA | 0 | data | 1 |
| DATA_SOURCE | 0 | data | $1 |
| DATA_SOURCE | 1 | len | $2 |
| DATA_SOURCE | 2 | out | $3 |
| BIT_INFO | 1 | len | 0x0,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
crypto/sha512.c crypto_sha512_digest() -> sha512()
| 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 |
fs/verity/hash_algs.c fsverity_hash_buffer() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | data | (-1),64,256-16384 |
| BUF_SIZE | 2 | out | (-1),64 |
| BUF_SIZE | 2 | out | (-1),64 |
| DATA_SOURCE | 0 | data | $1 |
| DATA_SOURCE | 1 | len | $2 |
| DATA_SOURCE | 2 | out | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
samples/tsm-mr/tsm_mr_sample.c sample_report_refresh() -> sha512()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 97022286954102784 |
| PARAM_VALUE | 1 | len | 192 |
| BUF_SIZE | 0 | data | 256 |
| BUF_SIZE | 2 | out | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ctx->rwsem | ||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct tm_context)->rwsem |