Lines Matching refs:ckey
990 wg_init_key_and_hash(uint8_t ckey[static WG_CHAINING_KEY_LEN],
999 blake2s(ckey, WG_CHAINING_KEY_LEN, NULL, 0,
1003 memcpy(hash, ckey, WG_CHAINING_KEY_LEN);
1006 blake2s_update(&state, ckey, WG_CHAINING_KEY_LEN);
1010 WG_DUMP_HASH("ckey", ckey);
1140 const uint8_t ckey[static WG_CHAINING_KEY_LEN],
1152 WG_DUMP_HASH("ckey", ckey);
1155 wg_algo_hmac(tmp1, sizeof(tmp1), ckey, WG_CHAINING_KEY_LEN,
1179 wg_algo_dh_kdf(uint8_t ckey[static WG_CHAINING_KEY_LEN],
1187 wg_algo_kdf(ckey, cipher_key, NULL, ckey, dhout, sizeof(dhout));
1190 WG_DUMP_HASH("ckey", ckey);
1437 uint8_t ckey[WG_CHAINING_KEY_LEN]; /* [W] 5.4.2: Ci */
1455 wg_init_key_and_hash(ckey, hash);
1465 wg_algo_kdf(ckey, NULL, NULL, ckey, pubkey, sizeof(pubkey));
1471 WG_DUMP_HASH("ckey", ckey);
1476 wg_algo_dh_kdf(ckey, cipher_key, privkey, wgp->wgp_pubkey);
1490 wg_algo_dh_kdf(ckey, cipher_key, wg->wg_privkey, wgp->wgp_pubkey);
1523 memcpy(wgs->wgs_chaining_key, ckey, sizeof(ckey));
1595 uint8_t ckey[WG_CHAINING_KEY_LEN]; /* [W] 5.4.2: Ci */
1633 wg_init_key_and_hash(ckey, hash);
1639 wg_algo_kdf(ckey, NULL, NULL, ckey, wgmi->wgmi_ephemeral,
1644 WG_DUMP_HASH("ckey", ckey);
1648 wg_algo_dh_kdf(ckey, cipher_key, wg->wg_privkey, wgmi->wgmi_ephemeral);
1715 wg_algo_dh_kdf(ckey, cipher_key, wg->wg_privkey, wgp->wgp_pubkey);
1795 memcpy(wgs->wgs_chaining_key, ckey, sizeof(ckey));
2004 uint8_t ckey[WG_CHAINING_KEY_LEN]; /* [W] 5.4.3: Cr */
2016 memcpy(ckey, wgs->wgs_chaining_key, sizeof(ckey));
2028 wg_algo_kdf(ckey, NULL, NULL, ckey, pubkey, sizeof(pubkey));
2034 WG_DUMP_HASH("ckey", ckey);
2039 wg_algo_dh_kdf(ckey, NULL, privkey, wgs->wgs_ephemeral_key_peer);
2043 wg_algo_dh_kdf(ckey, NULL, privkey, wgp->wgp_pubkey);
2049 wg_algo_kdf(ckey, kdfout, cipher_key, ckey, wgp->wgp_psk,
2087 memcpy(wgs->wgs_chaining_key, ckey, sizeof(ckey));
2195 uint8_t ckey[WG_CHAINING_KEY_LEN]; /* [W] 5.4.3: Cr */
2270 memcpy(ckey, wgs->wgs_chaining_key, sizeof(ckey));
2284 wg_algo_kdf(ckey, NULL, NULL, ckey, wgmr->wgmr_ephemeral,
2289 WG_DUMP_HASH("ckey", ckey);
2294 wg_algo_dh_kdf(ckey, NULL, wgs->wgs_ephemeral_key_priv,
2299 wg_algo_dh_kdf(ckey, NULL, wg->wg_privkey, wgmr->wgmr_ephemeral);
2305 wg_algo_kdf(ckey, kdfout, cipher_key, ckey, wgp->wgp_psk,
2328 memcpy(wgs->wgs_chaining_key, ckey, sizeof(wgs->wgs_chaining_key));