Documented in 1 files:
Defined in 1 files as a function:
Referenced in 8 files:
- crypto/dh.c, line 535
- crypto/testmgr.c
- drivers/char/tpm/tpm2-sessions.c, line 566
- drivers/crypto/atmel-ecc.c, line 159
- drivers/crypto/hisilicon/hpre/hpre_crypto.c
- drivers/crypto/intel/qat/qat_common/qat_asym_algs.c, line 410
- drivers/nvme/common/auth.c, line 474
- net/bluetooth/ecdh_helper.c, line 69
Smatch caller information:
net/bluetooth/ecdh_helper.c compute_ecdh_secret() -> crypto_kpp_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.complete | 1624078799481573376 |
| PARAM_VALUE | 0 | req->base.data | 749204260720947200 |
| PARAM_VALUE | 0 | req->base.flags | 1024 |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| PARAM_VALUE | 0 | req->dst | 129633621795110912 |
| PARAM_VALUE | 0 | req->dst_len | 32 |
| PARAM_VALUE | 0 | req->src | 7496184712634114048 |
| PARAM_VALUE | 0 | req->src_len | 64 |
| BUF_SIZE | 0 | req | 72-s32max |
| BUF_SIZE | 0 | req | 72-s32max |
| DATA_SOURCE | 0 | req | r kpp_request_alloc |
| RX_PATH | |||
| HALF_LOCKED2 | &conn->lock |
drivers/char/tpm/tpm2-sessions.c tpm_buf_append_salt() -> crypto_kpp_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->__ctx->base.flags | 0-4294967295 |
| PARAM_VALUE | 0 | req->__ctx->dst_len | 0-4294967295 |
| PARAM_VALUE | 0 | req->__ctx->src_len | 0-4294967295 |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| PARAM_VALUE | 0 | req->dst | 1861308935135965184 |
| PARAM_VALUE | 0 | req->dst->dma_flags | 0 |
| PARAM_VALUE | 0 | req->dst->dma_length | 0 |
| PARAM_VALUE | 0 | req->dst->offset | 0-4095 |
| PARAM_VALUE | 0 | req->dst_len | 32 |
| PARAM_VALUE | 0 | req->src | 8423067920135573504 |
| PARAM_VALUE | 0 | req->src->dma_flags | 0 |
| PARAM_VALUE | 0 | req->src->dma_length | 0 |
| PARAM_VALUE | 0 | req->src->length | 0 |
| PARAM_VALUE | 0 | req->src->offset | 0 |
| PARAM_VALUE | 0 | req->src_len | 64 |
| PARAM_VALUE | 0 | *req->__ctx->base.data | (-4611686018427387904)-4611686018427387903 |
| BUF_SIZE | 0 | req | 72-s32max |
| BUF_SIZE | 0 | req | 72-s32max |
| DATA_SOURCE | 0 | req | r kpp_request_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->__ctx->base.flags | 0-4294967295 |
| PARAM_VALUE | 0 | req->__ctx->dst_len | 0-4294967295 |
| PARAM_VALUE | 0 | req->__ctx->src_len | 0-4294967295 |
| PARAM_VALUE | 0 | req->base.complete | 1624078799481573376 |
| PARAM_VALUE | 0 | req->base.data | 5242030953232142336 |
| PARAM_VALUE | 0 | req->base.flags | 1024 |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| PARAM_VALUE | 0 | req->dst | 5191678991346839552 |
| PARAM_VALUE | 0 | req->dst_len | 0-4000000 |
| PARAM_VALUE | 0 | req->src | 6117822457268371456 |
| PARAM_VALUE | 0 | req->src_len | 0-u16max |
| PARAM_VALUE | 0 | *req->__ctx->base.data | (-4611686018427387904)-4611686018427387903 |
| BUF_SIZE | 0 | req | 72-s32max |
| BUF_SIZE | 0 | req | 72-s32max |
| DATA_SOURCE | 0 | req | r kpp_request_alloc |
| HALF_LOCKED2 | global &once_lock |
crypto/testmgr.c do_test_kpp() -> crypto_kpp_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->__ctx->base.flags | 0-4294967295 |
| PARAM_VALUE | 0 | req->__ctx->dst_len | 0-4294967295 |
| PARAM_VALUE | 0 | req->__ctx->src_len | 0-4294967295 |
| PARAM_VALUE | 0 | req->base.complete | 1624078799481573376 |
| PARAM_VALUE | 0 | req->base.data | 5242030953232142336 |
| PARAM_VALUE | 0 | req->base.flags | 1024 |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| PARAM_VALUE | 0 | req->dst | 5191678991346839552 |
| PARAM_VALUE | 0 | req->dst_len | 0-4000000 |
| PARAM_VALUE | 0 | req->src | 6117822457268371456 |
| PARAM_VALUE | 0 | req->src_len | 0-u16max |
| PARAM_VALUE | 0 | *req->__ctx->base.data | (-4611686018427387904)-4611686018427387903 |
| BUF_SIZE | 0 | req | 72-s32max |
| BUF_SIZE | 0 | req | 72-s32max |
| DATA_SOURCE | 0 | req | r kpp_request_alloc |
| HALF_LOCKED2 | global &once_lock |
crypto/dh.c dh_safe_prime_compute_shared_secret() -> crypto_kpp_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.complete | 4671538542316716032 |
| PARAM_VALUE | 0 | req->base.data | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.flags | 0-4294967295 |
| PARAM_VALUE | 0 | req->dst_len | 0-4294967295 |
| PARAM_VALUE | 0 | req->src_len | 0-4294967295 |
| BUF_SIZE | 0 | req->base.data | (-1),6-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/atmel-ecc.c atmel_ecdh_compute_shared_secret() -> crypto_kpp_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req->base.data | (-1),6-s32max |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/nvme/common/auth.c nvme_auth_gen_session_key() -> crypto_kpp_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.complete | 1624078799481573376 |
| PARAM_VALUE | 0 | req->base.data | 6344943969125990400 |
| PARAM_VALUE | 0 | req->base.flags | 1024 |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| PARAM_VALUE | 0 | req->dst | 6459784276356268032 |
| PARAM_VALUE | 0 | req->dst_len | 0-4000000 |
| PARAM_VALUE | 0 | req->src | 8370043529119113216 |
| PARAM_VALUE | 0 | req->src_len | 1-u16max |
| BUF_SIZE | 0 | req | 72-s32max |
| BUF_SIZE | 0 | req | 72-s32max |
| DATA_SOURCE | 0 | req | r kpp_request_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| HALF_LOCKED2 | &pool->lock |
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c qat_dh_compute_shared_secret() -> crypto_kpp_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/hisilicon/hpre/hpre_crypto.c hpre_dh_compute_shared_secret() -> crypto_kpp_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.flags | 0-4294967295 |
| PARAM_VALUE | 0 | req->dst_len | 0-4294967295 |
| PARAM_VALUE | 0 | req->src_len | 0-4294967295 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/hisilicon/hpre/hpre_crypto.c hpre_ecdh_compute_shared_secret() -> crypto_kpp_compute_shared_secret()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req->base.data | (-1),6-s32max |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |