Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 26 files:

Smatch caller information:

drivers/crypto/xilinx/zynqmp-sha.c zynqmp_sha_init() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 5014473207992291328
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING

crypto/asymmetric_keys/verify_pefile.c pefile_digest_pe() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
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

crypto/krb5/rfc3961_simplified.c rfc3961_calc_H() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 0 desc->tfm 1-ptr_max
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
RX_PATH
TASK_NOT_RUNNING

crypto/krb5/rfc3961_simplified.c rfc3961_get_mic() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
BUF_SIZE 0 desc 0-u32max
BUF_SIZE 0 desc 0-u32max
RX_PATH
TASK_NOT_RUNNING

crypto/krb5/rfc3961_simplified.c rfc3961_verify_mic() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
BUF_SIZE 0 desc 0-u32max
BUF_SIZE 0 desc 0-u32max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &call->user_mutex

crypto/essiv.c essiv_aead_setkey() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 5144466881921507328
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

drivers/crypto/sa2ul.c sa_prepare_iopads() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 3896890187704467456
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/crypto/sa2ul.c sa_prepare_iopads() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 3896890187704467456
PARAM_VALUE 0 desc->__ctx->crc 0-4294967295
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 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

security/integrity/evm/evm_crypto.c init_desc() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 0 desc->tfm 1-u64max
BUF_SIZE 0 desc 8-4294967303
BUF_SIZE 0 desc 8-4294967303
BUF_SIZE 0 desc->tfm s32min-s32max
DATA_SOURCE 0 desc r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

fs/ubifs/replay.c ubifs_shash_init() -> crypto_shash_init()

Type Parameter Key Value
DATA_SOURCE 0 desc $1

fs/ubifs/auth.c ubifs_get_desc() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
BUF_SIZE 0 desc 8-4294967303
BUF_SIZE 0 desc 8-4294967303
DATA_SOURCE 0 desc r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &c->commit_sem
HALF_LOCKED2 &c->lp_mutex
HALF_LOCKED2 &c->umount_mutex
HALF_LOCKED2 &c->write_reserve_mutex
HALF_LOCKED2 &keyring_key->sem

fs/ubifs/auth.c ubifs_node_calc_hmac() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 3698662527889424384
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING

crypto/testmgr.c test_shash_vec_cfg() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
DATA_SOURCE 0 desc $3
MEM_ZERO 0 desc->__ctx
HALF_LOCKED2 global &once_lock

drivers/target/iscsi/iscsi_target_auth.c chap_server_compute_hash() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 0 desc->tfm 1-ptr_max
BUF_SIZE 0 desc 8-4294967303
BUF_SIZE 0 desc 8-4294967303
BUF_SIZE 0 desc->tfm s32min-s32max
DATA_SOURCE 0 desc r _kmalloc_noprof
HALF_LOCKED2 &pool->lock

drivers/target/iscsi/iscsi_target_auth.c chap_server_compute_hash() -> crypto_shash_init()

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->tfm 1-ptr_max
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 _kmalloc_noprof
HALF_LOCKED2 &pool->lock

crypto/krb5/rfc8009_aes2.c rfc8009_calc_KDF_HMAC_SHA2() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 0 desc->tfm 1-ptr_max
BUF_SIZE 0 desc 0-u32max
BUF_SIZE 0 desc 0-u32max
BUF_SIZE 0 desc->tfm s32min-s32max
RX_PATH
TASK_NOT_RUNNING

drivers/block/drbd/drbd_worker.c drbd_csum_bio() -> crypto_shash_init()

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
NOCHECK_CALL
HALF_LOCKED2 &sock->mutex

drivers/block/drbd/drbd_worker.c drbd_csum_ee() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 3345502110672748544
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
NOCHECK_CALL
HALF_LOCKED2 &sock->mutex

drivers/md/dm-integrity.c integrity_sector_checksum_shash() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 2369885996885516288
PARAM_VALUE 0 desc->tfm 1-u64max
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-integrity.c section_mac() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 3608397688430272512
PARAM_VALUE 0 desc->tfm 1-u64max
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
HALF_LOCKED2 &md->suspend_lock

fs/ubifs/log.c ubifs_shash_init() -> crypto_shash_init()

Type Parameter Key Value
DATA_SOURCE 0 desc $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &c->commit_sem
HALF_LOCKED2 &c->umount_mutex
HALF_LOCKED2 &c->write_reserve_mutex
TYPE_LOCK (struct ubifs_info)->commit_sem

drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c aead_hmac_init() -> crypto_shash_init()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c aead_hmac_init() -> crypto_shash_init()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

crypto/ahash.c crypto_ahash_init() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
BUF_SIZE 0 desc 1-s32max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 sk

crypto/ahash.c shash_ahash_digest() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
BUF_SIZE 0 desc 1-s32max
BUF_SIZE 0 desc 1-s32max
DATA_SOURCE 0 desc $1
RX_PATH
TASK_NOT_RUNNING

crypto/krb5/rfc6803_camellia.c rfc6803_calc_KDF_FEEDBACK_CMAC() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 0 desc->tfm 1-ptr_max
BUF_SIZE 0 desc 0-u32max
BUF_SIZE 0 desc 0-u32max
BUF_SIZE 0 desc->tfm s32min-s32max
RX_PATH
TASK_NOT_RUNNING

crypto/krb5/rfc6803_camellia.c rfc6803_calc_PRF() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 0 desc->tfm 1-ptr_max
BUF_SIZE 0 desc 0-u32max
BUF_SIZE 0 desc 0-u32max
BUF_SIZE 0 desc->tfm s32min-s32max
RX_PATH
TASK_NOT_RUNNING

drivers/crypto/marvell/octeontx/otx_cptvf_algs.c aead_hmac_init() -> crypto_shash_init()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

drivers/crypto/marvell/octeontx/otx_cptvf_algs.c aead_hmac_init() -> crypto_shash_init()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &sdata->sec_mtx
HALF_LOCKED2 sk

security/integrity/ima/ima_crypto.c calc_buffer_shash_tfm() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 3195240584365932544
PARAM_VALUE 0 desc->tfm 0-ptr_max
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &iint->mutex

security/integrity/ima/ima_crypto.c ima_calc_boot_aggregate_tfm() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 5591254839607943168
PARAM_VALUE 0 desc->tfm 0-ptr_max
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING

security/integrity/ima/ima_crypto.c ima_calc_field_array_hash_tfm() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4302126220131422208
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING

security/integrity/ima/ima_crypto.c ima_calc_file_hash_tfm() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 9050428183044681728
PARAM_VALUE 0 desc->tfm 0-ptr_max
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_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 5241335243521048576
PARAM_VALUE 0 desc->tfm 1-ptr_max
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377

drivers/md/dm-verity-target.c verity_hash() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
BUF_SIZE 0 desc 8
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-verity-target.c verity_setup_salt_and_hashstate() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 5603240207338659840
PARAM_VALUE 0 desc->tfm 1-ptr_max
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
HALF_LOCKED2 &md->type_lock

crypto/hmac.c hmac_setkey() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 1125316017451040768
BUF_SIZE 0 desc 377
BUF_SIZE 0 desc 377
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 *desc->__ctx 0-255
USER_DATA 0 *desc->__ctx->__ctx 0-255
USER_DATA 0 *desc->__ctx->block 0-255
HALF_LOCKED2 &keyring_key->sem
HALF_LOCKED2 global &mutex

crypto/hmac.c hmac_setkey() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 1125316017451040768
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
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 *desc->__ctx->block 0-255
HALF_LOCKED2 &keyring_key->sem
HALF_LOCKED2 global &mutex

crypto/cryptd.c cryptd_hash_init() -> crypto_shash_init()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
BUF_SIZE 0 desc 8
DATA_SOURCE 0 desc r cryptd_hash_prepare
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock
HALF_LOCKED2 bh