Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/crypto/caam/caamalg.c, line 630
- drivers/crypto/caam/caamalg_qi.c, line 239
- drivers/crypto/caam/caamhash.c, line 481
- drivers/crypto/caam/key_gen.c, line 126
Smatch caller information:
drivers/crypto/caam/caamalg.c aead_setkey() -> gen_split_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | jrdev | 4096-ptr_max |
| PARAM_VALUE | 0 | jrdev->parent | 4096-ptr_max |
| PARAM_VALUE | 2 | adata | 4096-ptr_max |
| PARAM_VALUE | 3 | key_in | 4096-ptr_max |
| PARAM_VALUE | 4 | keylen | 1-2147483639 |
| PARAM_VALUE | 5 | max_keylen | (-2147483475)-164 |
| BUF_SIZE | 1 | key_out | 164 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 4 | keylen | 1-2147483639[c] |
| UNITS | 4 | keylen | unit_byte |
| UNITS | 5 | max_keylen | unit_byte |
| HALF_LOCKED2 | &con->mutex | ||
| HALF_LOCKED2 | &sdata->sec_mtx | ||
| HALF_LOCKED2 | sk |
drivers/crypto/caam/caamalg_qi.c aead_setkey() -> gen_split_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | jrdev | 4096-ptr_max |
| PARAM_VALUE | 0 | jrdev->parent | 4096-ptr_max |
| PARAM_VALUE | 2 | adata | 4096-ptr_max |
| PARAM_VALUE | 3 | key_in | 4096-ptr_max |
| PARAM_VALUE | 4 | keylen | 1-2147483639 |
| PARAM_VALUE | 5 | max_keylen | (-2147483479)-160 |
| BUF_SIZE | 1 | key_out | 160 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 4 | keylen | 1-2147483639[c] |
| UNITS | 4 | keylen | unit_byte |
| UNITS | 5 | max_keylen | unit_byte |
| HALF_LOCKED2 | &con->mutex | ||
| HALF_LOCKED2 | &sdata->sec_mtx | ||
| HALF_LOCKED2 | sk |
drivers/crypto/caam/caamhash.c ahash_setkey() -> gen_split_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | jrdev | 4096-ptr_max |
| PARAM_VALUE | 0 | jrdev->parent | 4096-ptr_max |
| PARAM_VALUE | 2 | adata | 4096-ptr_max |
| PARAM_VALUE | 5 | max_keylen | 128 |
| BUF_SIZE | 1 | key_out | 128 |
| BUF_SIZE | 3 | key_in | 0-u32max,u64max |
| BUF_SIZE | 3 | key_in | 0-u32max,u64max |
| DATA_SOURCE | 3 | key_in | $1 [m] |
| DATA_SOURCE | 4 | keylen | $2 [m] |
| NOSPEC | 4 | keylen | |
| NOSPEC | 4 | keylen | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | jrdev->driver_data->inpring_avail | 0-4294967295 |
| USER_DATA | 3 | *key_in | 0-255 |
| USER_DATA | 4 | keylen | 0-s32max[c] |
| UNITS | 4 | keylen | unit_byte |
| USER_PTR | 3 | key_in | |
| HALF_LOCKED2 | sk |