Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 3 files as a member:
- drivers/crypto/chelsio/chcr_algo.c, line 288 (as a member)
- include/linux/nvme-auth.h, line 30 (as a member)
- samples/tsm-mr/tsm_mr_sample.c, line 38 (as a member)
Defined in 1 files as a function:
Referenced in 9 files:
- crypto/rsassa-pkcs1.c, line 103
- crypto/sha512.c, line 102
- drivers/char/tpm/tpm-sysfs.c, line 490
- drivers/crypto/chelsio/chcr_algo.c
- drivers/crypto/chelsio/chcr_algo.h
- drivers/nvme/common/auth.c
- lib/crypto/sha512.c
- lib/crypto/tests/sha384_kunit.c, line 8
- samples/tsm-mr/tsm_mr_sample.c
Smatch caller information:
lib/crypto/sha512.c __hmac_sha512_preparekey() -> sha384()
| 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/sha384_kunit.c benchmark_hash() -> sha384()
| 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 | 48 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| MEM_ZERO | 0 | data | |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c benchmark_hash() -> sha384()
| 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 | 48 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| MEM_ZERO | 0 | data | |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c hash_irq_test1_func() -> sha384()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 256 |
| BUF_SIZE | 2 | out | 48 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_alignment_consistency() -> sha384()
| 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/sha384_kunit.c test_hash_alignment_consistency() -> sha384()
| 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/sha384_kunit.c test_hash_all_lens_up_to_4096() -> sha384()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 16,4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-4096 |
| PARAM_VALUE | 2 | out | 4146621847972225024 |
| BUF_SIZE | 0 | data | 4096 |
| BUF_SIZE | 0 | data | 4096 |
| BUF_SIZE | 2 | out | 48 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| FUZZY_MAX | 1 | len | 4096 |
| HARD_MAX | 1 | len | 4096 |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_buffer_overruns() -> sha384()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 0-16176 |
| BUF_SIZE | 2 | out | 48 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_buffer_overruns() -> sha384()
| 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/sha384_kunit.c test_hash_incremental_updates() -> sha384()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16384 |
| BUF_SIZE | 2 | out | 48 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_interrupt_context_1() -> sha384()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 256 |
| BUF_SIZE | 2 | out | 48 |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_interrupt_context_2() -> sha384()
| 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 | 48 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_overlaps() -> sha384()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16336 |
| PARAM_VALUE | 2 | out | 8587564225230331904 |
| BUF_SIZE | 2 | out | 48 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_overlaps() -> sha384()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16336 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_overlaps() -> sha384()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16336 |
| PARAM_VALUE | 2 | out | 8587564225230331904 |
| BUF_SIZE | 2 | out | 48 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_overlaps() -> sha384()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-16336 |
| PARAM_VALUE | 2 | out | 8587564225230331904 |
| BUF_SIZE | 2 | out | 48 |
| CAPPED_DATA | 1 | len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 1 | len | r rand_length |
| NOCHECK_CALL |
lib/crypto/tests/sha384_kunit.c test_hash_test_vectors() -> sha384()
| 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 | 48 |
| DATA_SOURCE | 0 | data | r alloc_buf |
| NOCHECK_CALL |
drivers/nvme/common/auth.c nvme_auth_hash() -> sha384()
| 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_sha384_digest() -> sha384()
| 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 |