Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/crypto/sa2ul.c sa_aead_setkey() -> sa_init_sc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 2 | enc_key | 4096-ptr_max |
| PARAM_VALUE | 4 | auth_key | 4096-ptr_max |
| PARAM_VALUE | 6 | ad | 2586638096149565440,4455427055664914432 |
| PARAM_VALUE | 6 | ad->aalg_id | 17,19 |
| PARAM_VALUE | 6 | ad->auth_ctrl | 2,4 |
| PARAM_VALUE | 6 | ad->auth_eng.eng_id | 4 |
| PARAM_VALUE | 6 | ad->auth_eng.sc_size | 96 |
| PARAM_VALUE | 6 | ad->ctx | 4096-ptr_max |
| PARAM_VALUE | 6 | ad->ealg_id | 4 |
| PARAM_VALUE | 6 | ad->enc_eng.eng_id | 2 |
| PARAM_VALUE | 6 | ad->enc_eng.sc_size | 64 |
| PARAM_VALUE | 6 | ad->hash_size | 20,32 |
| PARAM_VALUE | 6 | ad->inv_key | 1 |
| PARAM_VALUE | 6 | ad->iv_idx | 0 |
| PARAM_VALUE | 6 | ad->iv_out_size | 0 |
| PARAM_VALUE | 6 | ad->keyed_mac | 1 |
| PARAM_VALUE | 6 | ad->prep_iopad | 7922168093398548480 |
| PARAM_VALUE | 7 | enc | 1 |
| PARAM_VALUE | 8 | swinfo | 4096-ptr_max |
| BUF_SIZE | 6 | ad->mci_dec | 27 |
| BUF_SIZE | 6 | ad->mci_enc | 27 |
| BUF_SIZE | 8 | swinfo | 12 |
| DATA_SOURCE | 6 | ad | $3 |
| HARD_MAX | 6 | ad->aalg_id | 19 |
| HARD_MAX | 6 | ad->auth_ctrl | 4 |
| HARD_MAX | 6 | ad->hash_size | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 5 | auth_key_sz | 0-u16max[c] |
| UNITS | 2 | enc_key | unit_byte |
| UNITS | 3 | enc_key_sz | unit_byte |
| UNITS | 5 | auth_key_sz | unit_byte |
| HALF_LOCKED2 | &con->mutex | ||
| HALF_LOCKED2 | &sdata->sec_mtx | ||
| HALF_LOCKED2 | sk |
drivers/crypto/sa2ul.c sa_aead_setkey() -> sa_init_sc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 2 | enc_key | 4096-ptr_max |
| PARAM_VALUE | 4 | auth_key | 4096-ptr_max |
| PARAM_VALUE | 6 | ad | 2586638096149565440,4455427055664914432 |
| PARAM_VALUE | 6 | ad->aalg_id | 17,19 |
| PARAM_VALUE | 6 | ad->auth_ctrl | 2,4 |
| PARAM_VALUE | 6 | ad->auth_eng.eng_id | 4 |
| PARAM_VALUE | 6 | ad->auth_eng.sc_size | 96 |
| PARAM_VALUE | 6 | ad->ctx | 4096-ptr_max |
| PARAM_VALUE | 6 | ad->ealg_id | 4 |
| PARAM_VALUE | 6 | ad->enc_eng.eng_id | 2 |
| PARAM_VALUE | 6 | ad->enc_eng.sc_size | 64 |
| PARAM_VALUE | 6 | ad->inv_key | 1 |
| PARAM_VALUE | 6 | ad->iv_idx | 0 |
| PARAM_VALUE | 6 | ad->iv_out_size | 0 |
| PARAM_VALUE | 6 | ad->keyed_mac | 1 |
| PARAM_VALUE | 6 | ad->prep_iopad | 7922168093398548480 |
| PARAM_VALUE | 7 | enc | 0 |
| PARAM_VALUE | 8 | swinfo | 4096-ptr_max |
| BUF_SIZE | 6 | ad->mci_dec | 27 |
| BUF_SIZE | 6 | ad->mci_enc | 27 |
| BUF_SIZE | 8 | swinfo | 12 |
| DATA_SOURCE | 6 | ad | $3 |
| HARD_MAX | 6 | ad->aalg_id | 19 |
| HARD_MAX | 6 | ad->auth_ctrl | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 5 | auth_key_sz | 0-u16max[c] |
| UNITS | 2 | enc_key | unit_byte |
| UNITS | 3 | enc_key_sz | unit_byte |
| UNITS | 5 | auth_key_sz | unit_byte |
| HALF_LOCKED2 | &con->mutex | ||
| HALF_LOCKED2 | &sdata->sec_mtx | ||
| HALF_LOCKED2 | sk |
drivers/crypto/sa2ul.c sa_cipher_setkey() -> sa_init_sc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 3 | enc_key_sz | 16,24,32 |
| PARAM_VALUE | 4 | auth_key | 0 |
| PARAM_VALUE | 5 | auth_key_sz | 0 |
| PARAM_VALUE | 6 | ad | 5981720273999245312,6482774919520665600,7598203699931279360,8287372411915427840 |
| PARAM_VALUE | 6 | ad->aalg_id | 0 |
| PARAM_VALUE | 6 | ad->auth_ctrl | 0 |
| PARAM_VALUE | 6 | ad->auth_eng.eng_id | 0 |
| PARAM_VALUE | 6 | ad->auth_eng.sc_size | 0 |
| PARAM_VALUE | 6 | ad->ctx | 0 |
| PARAM_VALUE | 6 | ad->ealg_id | 0,4,6,9 |
| PARAM_VALUE | 6 | ad->enc_eng.eng_id | 2 |
| PARAM_VALUE | 6 | ad->enc_eng.sc_size | 64 |
| PARAM_VALUE | 6 | ad->hash_size | 0 |
| PARAM_VALUE | 6 | ad->iv_idx | 0,4,6 |
| PARAM_VALUE | 6 | ad->iv_out_size | 0,8,16 |
| PARAM_VALUE | 6 | ad->keyed_mac | 0 |
| PARAM_VALUE | 6 | ad->prep_iopad | 0 |
| PARAM_VALUE | 7 | enc | 1 |
| PARAM_VALUE | 8 | swinfo | 4096-ptr_max |
| BUF_SIZE | 2 | enc_key | (-1)-s32max |
| BUF_SIZE | 2 | enc_key | (-1)-s32max |
| BUF_SIZE | 8 | swinfo | 12 |
| CAPPED_DATA | 3 | enc_key_sz | 1 |
| DATA_SOURCE | 2 | enc_key | $1 |
| DATA_SOURCE | 3 | enc_key_sz | $2 |
| DATA_SOURCE | 6 | ad | $3 |
| PARAM_COMPARE | 2 | enc_key | == $3 |
| BIT_INFO | 3 | enc_key_sz | 0x0,0x38 |
| NOSPEC | 3 | enc_key_sz | |
| HARD_MAX | 6 | ad->ealg_id | 9 |
| HARD_MAX | 6 | ad->iv_idx | 6 |
| HARD_MAX | 6 | ad->iv_out_size | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | *enc_key | 0-255 |
| BYTE_COUNT | 2 | ==enc_key3 | 8050 |
| USER_PTR | 2 | enc_key | |
| HALF_LOCKED2 | &ac->mutex | ||
| HALF_LOCKED2 | &crypt_stat->cs_mutex | ||
| HALF_LOCKED2 | &crypt_stat->cs_tfm_mutex | ||
| HALF_LOCKED2 | &crypt_stat->keysig_list_mutex | ||
| HALF_LOCKED2 | &mkey->sem | ||
| HALF_LOCKED2 | &sdata->sec_mtx | ||
| HALF_LOCKED2 | &walker->global_auth_tok_key->sem | ||
| HALF_LOCKED2 | global &key_tfm_list_mutex | ||
| HALF_LOCKED2 | s->tfm_mutex | ||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | tfm_mutex |
drivers/crypto/sa2ul.c sa_cipher_setkey() -> sa_init_sc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 3 | enc_key_sz | 16,24,32 |
| PARAM_VALUE | 4 | auth_key | 0 |
| PARAM_VALUE | 5 | auth_key_sz | 0 |
| PARAM_VALUE | 6 | ad | 5981720273999245312,6482774919520665600,7598203699931279360,8287372411915427840 |
| PARAM_VALUE | 6 | ad->aalg_id | 0 |
| PARAM_VALUE | 6 | ad->auth_ctrl | 0 |
| PARAM_VALUE | 6 | ad->auth_eng.eng_id | 0 |
| PARAM_VALUE | 6 | ad->auth_eng.sc_size | 0 |
| PARAM_VALUE | 6 | ad->ctx | 0 |
| PARAM_VALUE | 6 | ad->ealg_id | 0,4,6,9 |
| PARAM_VALUE | 6 | ad->enc_eng.eng_id | 2 |
| PARAM_VALUE | 6 | ad->enc_eng.sc_size | 64 |
| PARAM_VALUE | 6 | ad->iv_idx | 0,4,6 |
| PARAM_VALUE | 6 | ad->iv_out_size | 0,8,16 |
| PARAM_VALUE | 6 | ad->keyed_mac | 0 |
| PARAM_VALUE | 6 | ad->prep_iopad | 0 |
| PARAM_VALUE | 7 | enc | 0 |
| PARAM_VALUE | 8 | swinfo | 4096-ptr_max |
| BUF_SIZE | 2 | enc_key | (-1)-s32max |
| BUF_SIZE | 2 | enc_key | (-1)-s32max |
| BUF_SIZE | 8 | swinfo | 12 |
| CAPPED_DATA | 3 | enc_key_sz | 1 |
| DATA_SOURCE | 2 | enc_key | $1 |
| DATA_SOURCE | 3 | enc_key_sz | $2 |
| DATA_SOURCE | 6 | ad | $3 |
| PARAM_COMPARE | 2 | enc_key | == $3 |
| BIT_INFO | 3 | enc_key_sz | 0x0,0x38 |
| NOSPEC | 3 | enc_key_sz | |
| HARD_MAX | 6 | ad->ealg_id | 9 |
| HARD_MAX | 6 | ad->iv_idx | 6 |
| HARD_MAX | 6 | ad->iv_out_size | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | *enc_key | 0-255 |
| BYTE_COUNT | 2 | ==enc_key3 | 8050 |
| USER_PTR | 2 | enc_key | |
| HALF_LOCKED2 | &ac->mutex | ||
| HALF_LOCKED2 | &crypt_stat->cs_mutex | ||
| HALF_LOCKED2 | &crypt_stat->cs_tfm_mutex | ||
| HALF_LOCKED2 | &crypt_stat->keysig_list_mutex | ||
| HALF_LOCKED2 | &mkey->sem | ||
| HALF_LOCKED2 | &sdata->sec_mtx | ||
| HALF_LOCKED2 | &walker->global_auth_tok_key->sem | ||
| HALF_LOCKED2 | global &key_tfm_list_mutex | ||
| HALF_LOCKED2 | s->tfm_mutex | ||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | tfm_mutex |
drivers/crypto/sa2ul.c sa_sha_setup() -> sa_init_sc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 2 | enc_key | 0 |
| PARAM_VALUE | 3 | enc_key_sz | 0 |
| PARAM_VALUE | 4 | auth_key | 0 |
| PARAM_VALUE | 5 | auth_key_sz | 0 |
| PARAM_VALUE | 6 | ad | 4158271880917213184,5810442939229261824,7112053678029627392 |
| PARAM_VALUE | 6 | ad->aalg_id | 12,14-15 |
| PARAM_VALUE | 6 | ad->auth_ctrl | 2,4,6 |
| PARAM_VALUE | 6 | ad->auth_eng.eng_id | 4 |
| PARAM_VALUE | 6 | ad->auth_eng.sc_size | 96 |
| PARAM_VALUE | 6 | ad->ctx | 0 |
| PARAM_VALUE | 6 | ad->ealg_id | 0 |
| PARAM_VALUE | 6 | ad->enc_eng.eng_id | 0 |
| PARAM_VALUE | 6 | ad->enc_eng.sc_size | 64 |
| PARAM_VALUE | 6 | ad->hash_size | 20,32,64 |
| PARAM_VALUE | 6 | ad->inv_key | 0 |
| PARAM_VALUE | 6 | ad->iv_idx | 0 |
| PARAM_VALUE | 6 | ad->iv_out_size | 0 |
| PARAM_VALUE | 6 | ad->keyed_mac | 0 |
| PARAM_VALUE | 6 | ad->mci_dec | 0 |
| PARAM_VALUE | 6 | ad->mci_enc | 0 |
| PARAM_VALUE | 6 | ad->prep_iopad | 0 |
| PARAM_VALUE | 7 | enc | 0 |
| PARAM_VALUE | 8 | swinfo | 4096-ptr_max |
| BUF_SIZE | 8 | swinfo | 12 |
| DATA_SOURCE | 6 | ad | $1 |
| HARD_MAX | 6 | ad->aalg_id | 15 |
| HARD_MAX | 6 | ad->auth_ctrl | 6 |
| HARD_MAX | 6 | ad->hash_size | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING |