Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/crypto/keyring.c add_master_key() -> fscrypt_hkdf_expand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hkdf | 7807465605316673536,8537368480559263744 |
| PARAM_VALUE | 1 | context | 1,8 |
| PARAM_VALUE | 2 | info | 0 |
| PARAM_VALUE | 3 | infolen | 0 |
| PARAM_VALUE | 5 | okmlen | 16 |
| BUF_SIZE | 4 | okm | 16 |
| FUZZY_MAX | 1 | context | 8 |
| BIT_INFO | 1 | context | 0x0,0x9 |
| HARD_MAX | 1 | context | 8 |
| MEM_ZERO | 0 | hkdf | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/crypto/keyring.c fscrypt_get_test_dummy_key_identifier() -> fscrypt_hkdf_expand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hkdf | 1424819101244772352 |
| PARAM_VALUE | 1 | context | 1 |
| PARAM_VALUE | 2 | info | 0 |
| PARAM_VALUE | 3 | infolen | 0 |
| PARAM_VALUE | 5 | okmlen | 16 |
| BUF_SIZE | 4 | okm | 16 |
| DATA_SOURCE | 4 | okm | $0 |
| MEM_ZERO | 0 | hkdf | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/crypto/keysetup.c fscrypt_derive_siphash_key() -> fscrypt_hkdf_expand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hkdf | 4096-ptr_max |
| PARAM_VALUE | 1 | context | 5,7 |
| PARAM_VALUE | 3 | infolen | 0,16 |
| PARAM_VALUE | 4 | okm | 4096-ptr_max |
| PARAM_VALUE | 5 | okmlen | 16 |
| BUF_SIZE | 2 | info | (-1),16 |
| BUF_SIZE | 2 | info | (-1),16 |
| DATA_SOURCE | 1 | context | $1 |
| DATA_SOURCE | 2 | info | $2 |
| DATA_SOURCE | 3 | infolen | $3 |
| DATA_SOURCE | 4 | okm | $4 |
| HARD_MAX | 1 | context | 7 |
| HARD_MAX | 3 | infolen | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 5 | okmlen | unit_byte |
| LOCK2 | &mk->mk_sem | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct fscrypt_master_key)->mk_sem |
fs/crypto/keysetup.c fscrypt_setup_v2_file_key() -> fscrypt_hkdf_expand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hkdf | 4096-ptr_max |
| PARAM_VALUE | 1 | context | 2 |
| PARAM_VALUE | 3 | infolen | 16 |
| PARAM_VALUE | 4 | okm | 4691918924707811328 |
| PARAM_VALUE | 5 | okmlen | 16,32,64 |
| BUF_SIZE | 2 | info | 16 |
| BUF_SIZE | 4 | okm | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &mk->mk_sem | ||
| TYPE_LOCK | (struct fscrypt_master_key)->mk_sem |
fs/crypto/keysetup.c setup_per_mode_enc_key() -> fscrypt_hkdf_expand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hkdf | 4096-ptr_max |
| PARAM_VALUE | 1 | context | 3-4,6 |
| PARAM_VALUE | 2 | info | 4096-ptr_max |
| PARAM_VALUE | 3 | infolen | 1,17 |
| PARAM_VALUE | 4 | okm | 7746151176967184384 |
| PARAM_VALUE | 5 | okmlen | 16,32,64 |
| BUF_SIZE | 2 | info | 17 |
| BUF_SIZE | 4 | okm | 64 |
| CAPPED_DATA | 1 | context | 1 |
| DATA_SOURCE | 1 | context | $2 |
| FUZZY_MAX | 3 | infolen | 1 |
| HARD_MAX | 1 | context | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &mk->mk_sem | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct fscrypt_master_key)->mk_sem |