Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 11 files:
- crypto/ahash.c
- crypto/asymmetric_keys/pkcs7_verify.c
- crypto/asymmetric_keys/x509_public_key.c, line 89
- crypto/hmac.c, line 56
- crypto/shash.c
- crypto/testmgr.c, line 1342
- drivers/block/drbd/drbd_receiver.c
- drivers/crypto/inside-secure/safexcel_hash.c, line 2684
- drivers/crypto/marvell/octeontx/otx_cptvf_algs.c, line 761
- drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c, line 850
- drivers/md/dm-integrity.c
Smatch caller information:
crypto/shash.c crypto_shash_tfm_digest() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 2032202077645512704 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | data | (-1)-s32max |
| BUF_SIZE | 1 | data | (-1)-s32max |
| BUF_SIZE | 3 | out | (-1),1-s32max |
| BUF_SIZE | 3 | out | (-1),1-s32max |
| DATA_SOURCE | 1 | data | $1 |
| DATA_SOURCE | 2 | len | $2 |
| DATA_SOURCE | 3 | out | $3 |
| STR_LEN | 0 | desc->tfm | (-1),5 |
| NOSPEC | 2 | len | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *data | 0-255 |
| USER_DATA | 2 | len | 0-s32max[c] |
| USER_DATA | 3 | *out | 0-255 |
| UNITS | 1 | data | unit_byte |
| UNITS | 2 | len | unit_byte |
| UNITS | 3 | out | unit_byte |
| BYTE_COUNT | 1 | ==data2 | 8050 |
| USER_PTR | 1 | data | |
| USER_PTR | 3 | out | |
| HALF_LOCKED2 | &c->umount_mutex |
crypto/testmgr.c test_shash_vec_cfg() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 3 | out | 353400528661729280 |
| BUF_SIZE | 3 | out | 80 |
| DATA_SOURCE | 0 | desc | $3 |
| MEM_ZERO | 0 | desc->__ctx | |
| HALF_LOCKED2 | global &once_lock |
drivers/crypto/inside-secure/safexcel_hash.c safexcel_hmac_sha3_setkey() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | len | 1-u32max |
| PARAM_VALUE | 3 | out | 0-255 |
| BUF_SIZE | 1 | data | (-1)-s32max |
| BUF_SIZE | 1 | data | (-1)-s32max |
| BUF_SIZE | 3 | out | 72 |
| DATA_SOURCE | 1 | data | $1 |
| DATA_SOURCE | 2 | len | $2 |
| PARAM_COMPARE | 1 | data | == $2 |
| NOSPEC | 2 | len | |
| NOSPEC | 2 | len | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *data | 0-255 |
| USER_DATA | 2 | len | 1-s32max[c] |
| BYTE_COUNT | 1 | ==data2 | 8050 |
| USER_PTR | 1 | data | |
| HALF_LOCKED2 | sk |
crypto/asymmetric_keys/x509_public_key.c x509_get_sig_params() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->tfm | 1-ptr_max |
| PARAM_VALUE | 3 | out | 16,4096-ptr_max |
| BUF_SIZE | 0 | desc | 8-4294967303 |
| BUF_SIZE | 0 | desc | 8-4294967303 |
| BUF_SIZE | 0 | desc->tfm | s32min-s32max |
| BUF_SIZE | 3 | out | 0-u32max |
| BUF_SIZE | 3 | out | 0-u32max |
| DATA_SOURCE | 0 | desc | r _kzalloc_noprof |
| DATA_SOURCE | 3 | out | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | data | unit_byte |
| UNITS | 3 | out | unit_byte |
| HALF_LOCKED2 | global &asymmetric_key_parsers_sem |
drivers/md/dm-integrity.c sb_mac() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 1775086088853086208 |
| PARAM_VALUE | 0 | desc->tfm | 1-u64max |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| HALF_LOCKED2 | &md->suspend_lock |
drivers/md/dm-integrity.c sb_mac() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 1775086088853086208 |
| PARAM_VALUE | 0 | desc->tfm | 1-u64max |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| PARAM_VALUE | 3 | out | 1095842360366960640 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 3 | out | 64 |
| HALF_LOCKED2 | &md->suspend_lock |
drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c aead_hmac_init() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 1-2147483639 |
| BUF_SIZE | 3 | out | 96 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | len | 2-2147483639[c] |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &con->mutex | ||
| HALF_LOCKED2 | &sdata->sec_mtx | ||
| HALF_LOCKED2 | sk |
crypto/ahash.c shash_ahash_digest() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| BUF_SIZE | 0 | desc | 1-s32max |
| BUF_SIZE | 0 | desc | 1-s32max |
| BUF_SIZE | 1 | data | 1-s32max |
| BUF_SIZE | 1 | data | 1-s32max |
| BUF_SIZE | 3 | out | 1-s32max |
| DATA_SOURCE | 0 | desc | $1 |
| NOSPEC | 2 | len | |
| NOSPEC | 2 | len | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | len | 0-4350,4294963202-u32max[c] |
| USER_DATA | 1 | *data | 0-255 |
| USER_DATA | 2 | len | 0-u32max |
| USER_DATA | 3 | *out | 0-255 |
| UNITS | 1 | data | unit_byte |
| UNITS | 2 | len | unit_byte |
| UNITS | 3 | out | unit_byte |
| USER_PTR | 1 | data | |
| USER_PTR | 3 | out |
crypto/ahash.c shash_ahash_digest() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 1-u32max |
| BUF_SIZE | 0 | desc | 1-s32max |
| BUF_SIZE | 0 | desc | 1-s32max |
| BUF_SIZE | 3 | out | 1-s32max |
| CAPPED_DATA | 2 | len | 1 |
| DATA_SOURCE | 0 | desc | $1 |
| NOSPEC | 2 | len | |
| NOSPEC | 2 | len | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | len | 1-4350,4294963202-u32max[c] |
| USER_DATA | 2 | len | 1-u32max |
| USER_DATA | 3 | *out | 0-255 |
| UNITS | 1 | data | unit_byte |
| UNITS | 2 | len | unit_byte |
| UNITS | 3 | out | unit_byte |
| USER_PTR | 3 | out |
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c aead_hmac_init() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 1-2147483639 |
| BUF_SIZE | 3 | out | 96 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | len | 2-2147483639[c] |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &con->mutex | ||
| HALF_LOCKED2 | &sdata->sec_mtx | ||
| HALF_LOCKED2 | sk |
crypto/asymmetric_keys/pkcs7_verify.c pkcs7_digest() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->tfm | 1-ptr_max |
| PARAM_VALUE | 3 | out | 16,4096-ptr_max |
| BUF_SIZE | 0 | desc | 8-4294967303 |
| BUF_SIZE | 0 | desc | 8-4294967303 |
| BUF_SIZE | 0 | desc->tfm | s32min-s32max |
| BUF_SIZE | 1 | data | 1-s32max |
| BUF_SIZE | 3 | out | 0-u32max |
| BUF_SIZE | 3 | out | 0-u32max |
| DATA_SOURCE | 0 | desc | r _kzalloc_noprof |
| DATA_SOURCE | 3 | out | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | data | unit_byte |
| UNITS | 2 | len | unit_byte |
| UNITS | 3 | out | unit_byte |
crypto/asymmetric_keys/pkcs7_verify.c pkcs7_digest() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->__ctx->crc | 0-4294967295 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0-4294967295 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | desc->tfm | 1-ptr_max |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->bitLength | 0-255 |
| PARAM_VALUE | 0 | *desc->__ctx->block | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->h.qword | 72340172838076673 |
| PARAM_VALUE | 0 | *desc->__ctx->hash | 0 |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-u32max |
| PARAM_VALUE | 3 | out | 4096-ptr_max |
| BUF_SIZE | 0 | desc | 8-4294967303 |
| BUF_SIZE | 0 | desc | 8-4294967303 |
| BUF_SIZE | 0 | desc->tfm | s32min-s32max |
| BUF_SIZE | 1 | data | 0-u32max |
| BUF_SIZE | 1 | data | 0-u32max |
| BUF_SIZE | 3 | out | 0-u32max |
| BUF_SIZE | 3 | out | 0-u32max |
| DATA_SOURCE | 0 | desc | r _kzalloc_noprof |
| DATA_SOURCE | 1 | data | r _kmalloc_noprof |
| DATA_SOURCE | 3 | out | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | data | unit_byte |
| UNITS | 3 | out | unit_byte |
crypto/hmac.c hmac_setkey() -> crypto_shash_digest()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 1125316017451040768 |
| PARAM_VALUE | 2 | len | 1-u32max |
| PARAM_VALUE | 3 | out | 4096-ptr_max |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | data | (-1)-s32max |
| BUF_SIZE | 1 | data | (-1)-s32max |
| DATA_SOURCE | 1 | data | $1 |
| DATA_SOURCE | 2 | len | $2 |
| PARAM_COMPARE | 1 | data | == $2 |
| NOSPEC | 2 | len | |
| NOSPEC | 2 | len | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *data | 0-255 |
| USER_DATA | 2 | len | 1-s32max[c] |
| BYTE_COUNT | 1 | ==data2 | 8050 |
| USER_PTR | 1 | data | |
| HALF_LOCKED2 | &keyring_key->sem | ||
| HALF_LOCKED2 | global &mutex |