Lines Matching refs:ck
159 static int noise_mix_ss(uint8_t ck[NOISE_HASH_LEN], uint8_t [NOISE_SYMMETRIC_KEY_LEN],
1235 const uint8_t ck[NOISE_HASH_LEN]) in noise_kdf()
1241 hmac(sec, x, ck, BLAKE2S_HASH_SIZE, x_len, NOISE_HASH_LEN); in noise_kdf()
1274 noise_mix_dh(uint8_t ck[NOISE_HASH_LEN], uint8_t key[NOISE_SYMMETRIC_KEY_LEN], in noise_mix_dh()
1282 noise_kdf(ck, key, NULL, dh, in noise_mix_dh()
1283 NOISE_HASH_LEN, NOISE_SYMMETRIC_KEY_LEN, 0, NOISE_PUBLIC_KEY_LEN, ck); in noise_mix_dh()
1289 noise_mix_ss(uint8_t ck[NOISE_HASH_LEN], uint8_t key[NOISE_SYMMETRIC_KEY_LEN], in noise_mix_ss()
1295 noise_kdf(ck, key, NULL, ss, in noise_mix_ss()
1296 NOISE_HASH_LEN, NOISE_SYMMETRIC_KEY_LEN, 0, NOISE_PUBLIC_KEY_LEN, ck); in noise_mix_ss()
1313 noise_mix_psk(uint8_t ck[NOISE_HASH_LEN], uint8_t hash[NOISE_HASH_LEN], in noise_mix_psk()
1319 noise_kdf(ck, tmp, key, psk, in noise_mix_psk()
1321 NOISE_SYMMETRIC_KEY_LEN, ck); in noise_mix_psk()
1327 noise_param_init(uint8_t ck[NOISE_HASH_LEN], uint8_t hash[NOISE_HASH_LEN], in noise_param_init()
1332 blake2s(ck, (uint8_t *)NOISE_HANDSHAKE_NAME, NULL, in noise_param_init()
1335 blake2s_update(&blake, ck, NOISE_HASH_LEN); in noise_param_init()
1366 noise_msg_ephemeral(uint8_t ck[NOISE_HASH_LEN], uint8_t hash[NOISE_HASH_LEN], in noise_msg_ephemeral()
1370 noise_kdf(ck, NULL, NULL, src, NOISE_HASH_LEN, 0, 0, in noise_msg_ephemeral()
1371 NOISE_PUBLIC_KEY_LEN, ck); in noise_msg_ephemeral()