Documented in 1 files:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

net/bluetooth/ecdh_helper.c set_ecdh_privkey() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 1 buffer 4096-ptr_max
PARAM_VALUE 2 len 6-65541
BUF_SIZE 1 buffer 6-65541
CAPPED_DATA 2 len 1
DATA_SOURCE 0 tfm $0
DATA_SOURCE 1 buffer r _kmalloc_noprof
DATA_SOURCE 2 len r crypto_ecdh_key_len
RX_PATH
TASK_NOT_RUNNING
BYTE_COUNT 1 ==buffer2 8050
HALF_LOCKED2 &conn->lock
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 global &mgmt_chan_list_lock

security/keys/dh.c __keyctl_dh_compute() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
PARAM_VALUE 1 buffer 16,4096-ptr_max
PARAM_VALUE 2 len 1-4000000
BUF_SIZE 0 tfm s32min-s32max
BUF_SIZE 1 buffer 0-s32max,18446744071562067968-u64max
DATA_SOURCE 0 tfm r crypto_alloc_kpp
DATA_SOURCE 1 buffer r _kmalloc_noprof
DATA_SOURCE 2 len r crypto_dh_key_len
BYTE_COUNT 1 ==buffer2 8050

drivers/char/tpm/tpm2-sessions.c tpm_buf_append_salt() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 0 tfm 1-ptr_max
PARAM_VALUE 1 buffer 3571032079196250112
PARAM_VALUE 2 len 6-32
BUF_SIZE 0 tfm s32min-s32max
BUF_SIZE 1 buffer 32
CAPPED_DATA 2 len 1
DATA_SOURCE 0 tfm r crypto_alloc_kpp
DATA_SOURCE 2 len r crypto_ecdh_key_len
FUZZY_MAX 2 len 32
HARD_MAX 2 len 32
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

crypto/testmgr.c do_test_kpp() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 0 tfm 4096-ptr_max
DATA_SOURCE 0 tfm $0
HALF_LOCKED2 global &once_lock

crypto/testmgr.c do_test_kpp() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 0 tfm 4096-ptr_max
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->bus_lock.dep_map->name 0-255
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.driver_data->adev->pm.bus_locked 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.driver_data->mutex->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->devt 0-4294967295
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->dma_uses_io_tlb 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->id 0-4294967295
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->kobj.kref.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->kobj.release.cpu s32min-s32max
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->kobj.release.timer.flags 0-4294967295
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->kobj.state_add_uevent_sent 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->kobj.state_in_sysfs 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->kobj.state_initialized 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->kobj.state_remove_uevent_sent 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->kobj.uevent_suppress 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->links.status 0-4294967295
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->numa_node s32min-s32max
PARAM_VALUE 0 tfm->base.__crt_ctx->client->adapter->dev.parent->removable 0-4294967295
PARAM_VALUE 0 tfm->base.__crt_ctx->client->dev.driver_data->lock.dep_map->name 0-255
PARAM_VALUE 0 tfm->base.__crt_ctx->client->dev.driver_data->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 tfm->base.__crt_ctx->client->dev.driver_data->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 tfm->base.__crt_ctx->client->dev.driver_data->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 tfm->base.__crt_ctx->crt_g2_mode 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 tfm->base.__crt_ctx->dev->cma_area->alloc_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 tfm->base.__crt_ctx->dev->cma_area->alloc_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 tfm->base.__crt_ctx->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 tfm->base.__crt_ctx->dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->do_fallback 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->fallback 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->g->alloced 0-256
PARAM_VALUE 0 tfm->base.__crt_ctx->g->nlimbs 0-256
PARAM_VALUE 0 tfm->base.__crt_ctx->g2 0-1
PARAM_VALUE 0 tfm->base.__crt_ctx->key_sz 0,32,48
PARAM_VALUE 0 tfm->base.__crt_ctx->p->alloced 0-256
PARAM_VALUE 0 tfm->base.__crt_ctx->p->nlimbs 0-256
PARAM_VALUE 0 tfm->base.__crt_ctx->p_size 0
PARAM_VALUE 0 tfm->base.__crt_ctx->xa->alloced 0-256
PARAM_VALUE 0 tfm->base.__crt_ctx->xa->nlimbs 0-256
PARAM_VALUE 0 *tfm->base.__crt_ctx->dh.g 0-255
PARAM_VALUE 0 *tfm->base.__crt_ctx->dh.xa_p 0-255
PARAM_VALUE 0 *tfm->base.__crt_ctx->ecdh.g 0-255
PARAM_VALUE 0 *tfm->base.__crt_ctx->ecdh.p 0-255
PARAM_VALUE 0 *tfm->base.__crt_ctx->g 0-255
PARAM_VALUE 0 *tfm->base.__crt_ctx->g->d 0,144
PARAM_VALUE 0 *tfm->base.__crt_ctx->p 0-255
PARAM_VALUE 0 *tfm->base.__crt_ctx->p->d 0,144
PARAM_VALUE 0 *tfm->base.__crt_ctx->public_key 0-255
PARAM_VALUE 0 *tfm->base.__crt_ctx->xa 0-255
PARAM_VALUE 0 *tfm->base.__crt_ctx->xa->d 0,144
DATA_SOURCE 0 tfm $0
HALF_LOCKED2 global &once_lock

crypto/dh.c dh_safe_prime_set_secret() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 1 buffer 16,4096-ptr_max
PARAM_VALUE 1 *buffer 0-255
PARAM_VALUE 2 len 1-4000000
BUF_SIZE 1 buffer 0-u32max
BUF_SIZE 1 buffer 0-u32max
DATA_SOURCE 1 buffer r _kmalloc_noprof
DATA_SOURCE 2 len r crypto_dh_key_len
RX_PATH
TASK_NOT_RUNNING
BYTE_COUNT 1 ==buffer2 8050
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

drivers/crypto/atmel-ecc.c atmel_ecdh_set_secret() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 1 buffer 1-u64max
PARAM_VALUE 1 *buffer 0-255
PARAM_VALUE 2 len 6-u32max
BUF_SIZE 1 buffer (-1)-s32max
BUF_SIZE 1 buffer (-1)-s32max
DATA_SOURCE 1 buffer $1
DATA_SOURCE 2 len $2
FUZZY_MAX 2 len 32
RX_PATH
TASK_NOT_RUNNING
UNITS 2 len unit_byte
BYTE_COUNT 1 ==buffer2 8050
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

drivers/nvme/common/auth.c nvme_auth_gen_privkey() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 0 tfm 0-18446744073709551604,(-10)-(-1)
PARAM_VALUE 1 buffer 0
PARAM_VALUE 2 len 0
DATA_SOURCE 0 tfm $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &nvmet_config_sem

drivers/crypto/intel/qat/qat_common/qat_asym_algs.c qat_dh_set_secret() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 1 buffer 1-u64max
PARAM_VALUE 1 *buffer 0-255
PARAM_VALUE 2 len 16-u32max
BUF_SIZE 1 buffer (-1)-s32max
BUF_SIZE 1 buffer (-1)-s32max
DATA_SOURCE 1 buffer $1
DATA_SOURCE 2 len $2
FUZZY_MAX 2 len 32
RX_PATH
TASK_NOT_RUNNING
UNITS 2 len unit_byte
BYTE_COUNT 1 ==buffer2 8050
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

drivers/crypto/hisilicon/hpre/hpre_crypto.c hpre_dh_set_secret() -> crypto_kpp_set_secret()

Type Parameter Key Value
PARAM_VALUE 1 buffer 1-u64max
PARAM_VALUE 1 *buffer 0-255
PARAM_VALUE 2 len 16-u32max
BUF_SIZE 1 buffer (-1)-s32max
BUF_SIZE 1 buffer (-1)-s32max
DATA_SOURCE 1 buffer $1
DATA_SOURCE 2 len $2
FUZZY_MAX 2 len 32
RX_PATH
TASK_NOT_RUNNING
UNITS 2 len unit_byte
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

drivers/crypto/hisilicon/hpre/hpre_crypto.c hpre_ecdh_set_secret() -> crypto_kpp_set_secret()

Type Parameter Key Value
BUF_SIZE 1 buffer (-1)-s32max
BUF_SIZE 1 buffer (-1)-s32max
DATA_SOURCE 1 buffer $1
DATA_SOURCE 2 len $2
RX_PATH
TASK_NOT_RUNNING
BYTE_COUNT 1 ==buffer2 8050
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex