Documented in 1 files:
Defined in 1 files as a function:
Referenced in 16 files:
- crypto/ahash.c, line 191
- crypto/asymmetric_keys/verify_pefile.c, line 368
- crypto/cryptd.c, line 571
- crypto/kdf_sp800108.c
- crypto/krb5/rfc3961_simplified.c
- crypto/testmgr.c, line 1423
- drivers/block/drbd/drbd_worker.c
- drivers/crypto/bcm/cipher.c, line 2151
- drivers/crypto/bcm/util.c, line 260
- drivers/md/dm-integrity.c
- drivers/md/dm-verity-target.c, line 144
- fs/ubifs/auth.c
- fs/ubifs/replay.c, line 573
- fs/ubifs/ubifs.h, line 1568
- security/integrity/evm/evm_crypto.c, line 183
- security/integrity/ima/ima_crypto.c
Smatch caller information:
crypto/asymmetric_keys/verify_pefile.c pefile_digest_pe() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->crc | 0-4294967295 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->__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 |
| BUF_SIZE | 0 | desc | 8-4294967303 |
| BUF_SIZE | 0 | desc | 8-4294967303 |
| BUF_SIZE | 0 | desc->tfm | s32min-s32max |
| DATA_SOURCE | 0 | desc | r _kzalloc_noprof |
| PARAM_COMPARE | 0 | desc | < $1 |
| PARAM_COMPARE | 0 | desc | < $1 |
| PARAM_COMPARE | 1 | out | > $0 |
| UNITS | 1 | out | unit_byte |
crypto/krb5/rfc3961_simplified.c rfc3961_get_mic() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->crc | 0-4294967295 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | *desc->__ctx | 0-u32max |
| 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 |
| BUF_SIZE | 0 | desc | 0-u32max |
| BUF_SIZE | 0 | desc | 0-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *desc->__ctx->block | 0-255 |
crypto/krb5/rfc3961_simplified.c rfc3961_verify_mic() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->crc | 0-4294967295 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| 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 | out | 4096-ptr_max |
| BUF_SIZE | 0 | desc | 0-u32max |
| BUF_SIZE | 0 | desc | 0-u32max |
| PARAM_COMPARE | 0 | desc | < $1 |
| PARAM_COMPARE | 1 | out | > $0 |
| PARAM_COMPARE | 1 | out | > $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &call->user_mutex |
security/integrity/evm/evm_crypto.c hmac_add_misc() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->__ctx->crc | 0-4294967295 |
| PARAM_VALUE | 0 | desc->tfm | 1-u64max |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->bitLength | 0-255 |
| PARAM_VALUE | 0 | *desc->__ctx->block | 0-4294967295 |
| BUF_SIZE | 0 | desc | 8-s32max |
| BUF_SIZE | 0 | desc | 8-s32max |
| BUF_SIZE | 1 | out | 20,64 |
| BUF_SIZE | 1 | out | 20,64 |
| DATA_SOURCE | 0 | desc | $0 |
| DATA_SOURCE | 1 | out | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ubifs/replay.c authenticate_sleb_hash() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 5575984826817376256 |
| PARAM_VALUE | 1 | out | 6416935630492573696 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | 64 |
| BUF_SIZE | 1 | out | 64 |
| DATA_SOURCE | 1 | out | $2 |
fs/ubifs/auth.c ubifs_node_calc_hmac() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 3698662527889424384 |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->crc | 0-4294967295 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->__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 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| DATA_SOURCE | 1 | out | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ubifs/auth.c ubifs_prepare_auth_node() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 3357301452763799552 |
| PARAM_VALUE | 0 | *desc->__ctx | 0-255 |
| PARAM_VALUE | 1 | out | 3038830217455452160 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | 64 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &c->write_reserve_mutex | ||
| HALF_LOCKED2 | &wbuf->io_mutex |
crypto/testmgr.c test_shash_vec_cfg() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->crc | 0-4294967295 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | *desc->__ctx->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->bitLength | 0-255 |
| PARAM_VALUE | 0 | *desc->__ctx->h.qword | 72340172838076673 |
| PARAM_VALUE | 0 | *desc->__ctx->hash | 0 |
| PARAM_VALUE | 1 | out | 353400528661729280 |
| BUF_SIZE | 1 | out | 80 |
| DATA_SOURCE | 0 | desc | $3 |
| MEM_ZERO | 0 | desc->__ctx | |
| HALF_LOCKED2 | global &once_lock |
fs/ubifs/lpt.c ubifs_shash_final() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 0,4096-ptr_max |
| BUF_SIZE | 1 | out | 64 |
| BUF_SIZE | 1 | out | 64 |
| DATA_SOURCE | 0 | desc | $1 |
| DATA_SOURCE | 1 | out | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &c->umount_mutex |
drivers/block/drbd/drbd_worker.c drbd_csum_bio() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 661181711961612288 |
| PARAM_VALUE | 0 | desc->tfm | 1-u64max |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | (-1),1-s32max |
| DATA_SOURCE | 1 | out | $2 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &sock->mutex |
drivers/block/drbd/drbd_worker.c drbd_csum_ee() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 3345502110672748544 |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->bitLength | 0-255 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | (-1),1-s32max |
| DATA_SOURCE | 1 | out | $2 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &sock->mutex |
drivers/md/dm-integrity.c integrity_sector_checksum_shash() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 2369885996885516288 |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | desc->tfm | 1-u64max |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->bitLength | 0-255 |
| PARAM_VALUE | 0 | *desc->__ctx->h.qword | 72340172838076673 |
| PARAM_VALUE | 0 | *desc->__ctx->hash | 0 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | (-1)-s32max |
| BUF_SIZE | 1 | out | (-1)-s32max |
| DATA_SOURCE | 1 | out | $5 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/dm-integrity.c section_mac() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 3608397688430272512 |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | desc->tfm | 1-u64max |
| PARAM_VALUE | 0 | *desc->__ctx->h.qword | 72340172838076673 |
| PARAM_VALUE | 0 | *desc->__ctx->hash | 0 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | 64 |
| DATA_SOURCE | 1 | out | $2 |
| HALF_LOCKED2 | &md->suspend_lock |
drivers/md/dm-integrity.c section_mac() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 3608397688430272512 |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | desc->tfm | 1-u64max |
| PARAM_VALUE | 0 | *desc->__ctx->h.qword | 72340172838076673 |
| PARAM_VALUE | 0 | *desc->__ctx->hash | 0 |
| PARAM_VALUE | 1 | out | 4855979980058935296 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | 64 |
| HALF_LOCKED2 | &md->suspend_lock |
crypto/ahash.c shash_ahash_finup() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | desc | 1-s32max |
| BUF_SIZE | 0 | desc | 1-s32max |
| BUF_SIZE | 1 | out | 1-s32max |
| DATA_SOURCE | 0 | desc | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *out | 0-255 |
| UNITS | 1 | out | unit_byte |
| USER_PTR | 1 | out |
security/integrity/ima/ima_crypto.c calc_buffer_shash_tfm() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 3195240584365932544 |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | desc->tfm | 0-ptr_max |
| PARAM_VALUE | 0 | *desc->__ctx->h.qword | 72340172838076673 |
| PARAM_VALUE | 0 | *desc->__ctx->hash | 0 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *desc->__ctx->block | 0-255 |
| HALF_LOCKED2 | &iint->mutex |
security/integrity/ima/ima_crypto.c ima_calc_boot_aggregate_tfm() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 5591254839607943168 |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | desc->tfm | 0-ptr_max |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->bitLength | 0-255 |
| PARAM_VALUE | 0 | *desc->__ctx->h.qword | 72340172838076673 |
| PARAM_VALUE | 0 | *desc->__ctx->hash | 0 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| DATA_SOURCE | 1 | out | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/integrity/ima/ima_crypto.c ima_calc_field_array_hash_tfm() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4302126220131422208 |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | *desc->__ctx->h.qword | 72340172838076673 |
| PARAM_VALUE | 0 | *desc->__ctx->hash | 0 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/integrity/ima/ima_crypto.c ima_calc_file_hash_tfm() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 9050428183044681728 |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | desc->tfm | 0-ptr_max |
| PARAM_VALUE | 0 | *desc->__ctx->h.qword | 72340172838076673 |
| PARAM_VALUE | 0 | *desc->__ctx->hash | 0 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &iint->mutex |
crypto/kdf_sp800108.c crypto_kdf108_ctr_generate() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 5241335243521048576 |
| PARAM_VALUE | 0 | desc->tfm | 1-ptr_max |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->bitLength | 0-255 |
| PARAM_VALUE | 1 | out | 77598830274904064 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | 64 |
crypto/kdf_sp800108.c crypto_kdf108_ctr_generate() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 5241335243521048576 |
| PARAM_VALUE | 0 | desc->tfm | 1-ptr_max |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->bitLength | 0-255 |
| PARAM_VALUE | 1 | out | 16,4096-u64max |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 0 | desc | 377 |
| BUF_SIZE | 1 | out | (-1),16 |
| BUF_SIZE | 1 | out | (-1),16 |
| DATA_SOURCE | 1 | out | $3 |
drivers/md/dm-verity-target.c verity_hash() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->__ctx->byte_count | 0 |
| PARAM_VALUE | 0 | desc->__ctx->crc | 0-4294967295 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.memsize | 0 |
| PARAM_VALUE | 0 | desc->__ctx->xxhstate.total_len | 0 |
| PARAM_VALUE | 0 | *desc->__ctx | 0-4294967295 |
| PARAM_VALUE | 0 | *desc->__ctx->__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 |
| BUF_SIZE | 0 | desc | 8 |
| BUF_SIZE | 1 | out | 64 |
| BUF_SIZE | 1 | out | 64 |
| DATA_SOURCE | 1 | out | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
crypto/cryptd.c cryptd_hash_final() -> crypto_shash_final()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| BUF_SIZE | 0 | desc | 8 |
| BUF_SIZE | 1 | out | 1-s32max |
| DATA_SOURCE | 0 | desc | r cryptd_hash_prepare |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | out | unit_byte |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | bh |