Lines Matching refs:psk
38 static int eap_gpsk_gkdf_cmac(const u8 *psk /* Y */,
60 if (omac1_aes_128_vector(psk, 2, addr, vlen, hash))
73 static int eap_gpsk_gkdf_sha256(const u8 *psk /* Y */,
95 if (hmac_sha256_vector(psk, 32, 2, addr, vlen, hash))
110 const u8 *psk, size_t psk_len,
147 os_memcpy(pos, psk, psk_len);
157 if (gkdf(psk, data, data_len, mk, mk_len) < 0) {
189 static int eap_gpsk_derive_keys_aes(const u8 *psk, size_t psk_len,
203 * MK = GKDF-16 (PSK[0..15], PL || PSK || CSuite_Sel || inputString)
218 psk, psk_len, seed, seed_len,
225 static int eap_gpsk_derive_keys_sha256(const u8 *psk, size_t psk_len,
239 * MK = GKDF-32 (PSK[0..31], PL || PSK || CSuite_Sel || inputString)
252 psk, psk_len, seed, seed_len,
261 * @psk: Pre-shared key
262 * @psk_len: Length of psk in bytes
279 int eap_gpsk_derive_keys(const u8 *psk, size_t psk_len, int vendor,
296 wpa_hexdump_key(MSG_DEBUG, "EAP-GPSK: PSK", psk, psk_len);
319 ret = eap_gpsk_derive_keys_aes(psk, psk_len, seed, pos - seed,
325 ret = eap_gpsk_derive_keys_sha256(psk, psk_len, seed,
345 const u8 *psk, const u8 *seed,
389 if (gkdf(psk, data, data_len, kdf_out, kdf_out_len) < 0) {
402 * @psk: Pre-shared key
403 * @psk_len: Length of psk in bytes
417 int eap_gpsk_derive_session_id(const u8 *psk, size_t psk_len, int vendor,
434 wpa_hexdump_key(MSG_DEBUG, "EAP-GPSK: PSK", psk, psk_len);
463 psk, seed, pos - seed,