Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- crypto/ecdh_helper.c, line 54
- drivers/char/tpm/tpm2-sessions.c, line 538
- net/bluetooth/ecdh_helper.c, line 121
Smatch caller information:
net/bluetooth/ecdh_helper.c set_ecdh_privkey() -> crypto_ecdh_encode_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 6-65541 |
| PARAM_VALUE | 2 | params | 5546524292993175552 |
| PARAM_VALUE | 2 | params->key | 0,4096-ptr_max |
| PARAM_VALUE | 2 | params->key_size | 0,32 |
| BUF_SIZE | 0 | buf | 6-65541 |
| BUF_SIZE | 0 | buf | 6-65541 |
| DATA_SOURCE | 0 | buf | r _kmalloc_noprof |
| DATA_SOURCE | 1 | len | r crypto_ecdh_key_len |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| BYTE_COUNT | 0 | ==buf1 | 8050 |
| HALF_LOCKED2 | &conn->lock | ||
| HALF_LOCKED2 | &hdev->lock | ||
| HALF_LOCKED2 | global &mgmt_chan_list_lock |
drivers/char/tpm/tpm2-sessions.c tpm_buf_append_salt() -> crypto_ecdh_encode_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3571032079196250112 |
| PARAM_VALUE | 1 | len | 6-32 |
| PARAM_VALUE | 2 | params | 4189547555399610368 |
| PARAM_VALUE | 2 | params->key | 0 |
| PARAM_VALUE | 2 | params->key_size | 0 |
| BUF_SIZE | 0 | buf | 32 |
| DATA_SOURCE | 1 | len | r crypto_ecdh_key_len |
| FUZZY_MAX | 1 | len | 32 |
| HARD_MAX | 1 | len | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | 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 |