Defined in 1 files as a member:
Defined in 1 files as a function:
Referenced in 4 files:
Smatch caller information:
drivers/net/wireguard/noise.c derive_keys() -> kdf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | third_dst | 0 |
| PARAM_VALUE | 3 | data | 0 |
| PARAM_VALUE | 4 | first_len | 32 |
| PARAM_VALUE | 5 | second_len | 32 |
| PARAM_VALUE | 6 | third_len | 0 |
| PARAM_VALUE | 7 | data_len | 0 |
| BUF_SIZE | 0 | first_dst | 32 |
| BUF_SIZE | 1 | second_dst | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| DATA_SOURCE | 8 | chaining_key | $2 |
| NOCHECK_CALL | |||
| LOCK2 | &handshake->lock | ||
| TYPE_LOCK | (struct noise_handshake)->lock |
drivers/net/wireguard/noise.c message_ephemeral() -> kdf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | second_dst | 0 |
| PARAM_VALUE | 2 | third_dst | 0 |
| PARAM_VALUE | 4 | first_len | 32 |
| PARAM_VALUE | 5 | second_len | 0 |
| PARAM_VALUE | 6 | third_len | 0 |
| PARAM_VALUE | 7 | data_len | 32 |
| BUF_SIZE | 0 | first_dst | 32 |
| BUF_SIZE | 3 | data | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| DATA_SOURCE | 0 | first_dst | $2 |
| DATA_SOURCE | 3 | data | $1 |
| DATA_SOURCE | 8 | chaining_key | $2 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &handshake->lock | ||
| HALF_LOCKED2 | &handshake->static_identity->lock | ||
| HALF_LOCKED2 | &wg->static_identity.lock | ||
| TYPE_LOCK | (struct noise_static_identity)->lock |
drivers/net/wireguard/noise.c mix_dh() -> kdf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | third_dst | 0 |
| PARAM_VALUE | 3 | data | 6802637367164792832 |
| PARAM_VALUE | 4 | first_len | 32 |
| PARAM_VALUE | 5 | second_len | 32 |
| PARAM_VALUE | 6 | third_len | 0 |
| PARAM_VALUE | 7 | data_len | 32 |
| BUF_SIZE | 0 | first_dst | 32 |
| BUF_SIZE | 1 | second_dst | (-1),32 |
| BUF_SIZE | 3 | data | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| DATA_SOURCE | 0 | first_dst | $0 |
| DATA_SOURCE | 1 | second_dst | $1 |
| DATA_SOURCE | 8 | chaining_key | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &handshake->lock | ||
| HALF_LOCKED2 | &handshake->static_identity->lock | ||
| HALF_LOCKED2 | &wg->static_identity.lock | ||
| TYPE_LOCK | (struct noise_static_identity)->lock |
drivers/net/wireguard/noise.c mix_precomputed_dh() -> kdf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | third_dst | 0 |
| PARAM_VALUE | 4 | first_len | 32 |
| PARAM_VALUE | 5 | second_len | 32 |
| PARAM_VALUE | 6 | third_len | 0 |
| PARAM_VALUE | 7 | data_len | 32 |
| BUF_SIZE | 0 | first_dst | 32 |
| BUF_SIZE | 1 | second_dst | 32 |
| BUF_SIZE | 3 | data | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| DATA_SOURCE | 0 | first_dst | $0 |
| DATA_SOURCE | 1 | second_dst | $1 |
| DATA_SOURCE | 3 | data | $2 |
| DATA_SOURCE | 8 | chaining_key | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &handshake->lock | ||
| HALF_LOCKED2 | &handshake->static_identity->lock | ||
| HALF_LOCKED2 | &wg->static_identity.lock | ||
| TYPE_LOCK | (struct noise_static_identity)->lock |
drivers/net/wireguard/noise.c mix_psk() -> kdf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | second_dst | 4650128851263074304 |
| PARAM_VALUE | 4 | first_len | 32 |
| PARAM_VALUE | 5 | second_len | 32 |
| PARAM_VALUE | 6 | third_len | 32 |
| PARAM_VALUE | 7 | data_len | 32 |
| BUF_SIZE | 0 | first_dst | 32 |
| BUF_SIZE | 1 | second_dst | 32 |
| BUF_SIZE | 2 | third_dst | 32 |
| BUF_SIZE | 3 | data | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| BUF_SIZE | 8 | chaining_key | 32 |
| DATA_SOURCE | 0 | first_dst | $0 |
| DATA_SOURCE | 2 | third_dst | $2 |
| DATA_SOURCE | 3 | data | $3 |
| DATA_SOURCE | 8 | chaining_key | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &handshake->lock | ||
| HALF_LOCKED2 | &handshake->static_identity->lock | ||
| HALF_LOCKED2 | &wg->static_identity.lock | ||
| TYPE_LOCK | (struct noise_static_identity)->lock |