Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/nvme/common/auth.c, line 563
- drivers/nvme/common/tests/auth_kunit.c, line 61
- drivers/nvme/host/auth.c, line 679
- drivers/nvme/target/auth.c, line 483
Smatch caller information:
drivers/nvme/host/auth.c nvme_auth_secure_concat() -> nvme_auth_generate_psk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hmac_id | 1-3 |
| PARAM_VALUE | 1 | skey | 1-u64max |
| PARAM_VALUE | 2 | skey_len | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 5 | hash_len | 0-255 |
| PARAM_VALUE | 6 | ret_psk | 1338397643333492736 |
| PARAM_VALUE | 7 | ret_len | 3123221264792465408 |
| BUF_SIZE | 1 | skey | 1-255 |
| BUF_SIZE | 3 | c1 | 64 |
| BUF_SIZE | 4 | c2 | 64 |
| CAPPED_DATA | 5 | hash_len | 1 |
| CAPPED_DATA | 5 | hash_len | 1 |
| UNITS | 0 | hmac_id | unit_array_size |
| UNITS | 2 | skey_len | unit_byte |
| UNITS | 5 | hash_len | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/auth.c nvmet_auth_insert_psk() -> nvme_auth_generate_psk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | skey_len | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 5 | hash_len | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 6 | ret_psk | 5841290679553490944 |
| PARAM_VALUE | 7 | ret_len | 3201981812023619584 |
| BUF_SIZE | 1 | skey | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | c1 | 1-255 |
| DATA_SOURCE | 5 | hash_len | r nvme_auth_hmac_hash_len |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hmac_id | unit_array_size |
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/common/tests/auth_kunit.c test_nvme_auth_derive_tls_psk() -> nvme_auth_generate_psk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hmac_id | 1-3 |
| PARAM_VALUE | 1 | skey | 4096-ptr_max |
| PARAM_VALUE | 2 | skey_len | 32,48,64 |
| PARAM_VALUE | 3 | c1 | 4096-ptr_max |
| PARAM_VALUE | 4 | c2 | 4096-ptr_max |
| PARAM_VALUE | 5 | hash_len | 32,48,64 |
| PARAM_VALUE | 6 | ret_psk | 7279366402544320512 |
| PARAM_VALUE | 6 | *ret_psk | 0 |
| PARAM_VALUE | 6 | *(*ret_psk) | 0 |
| PARAM_VALUE | 7 | ret_len | 5729966186039558144 |
| BUF_SIZE | 1 | skey | 64 |
| BUF_SIZE | 3 | c1 | 64 |
| BUF_SIZE | 4 | c2 | 64 |
| PARAM_COMPARE | 2 | skey_len | == $5 |
| PARAM_COMPARE | 5 | hash_len | == $2 |
| PARAM_COMPARE | 5 | hash_len | == $2 |