Lines Matching refs:u8
47 static int eap_gpsk_gkdf_cmac(const u8 *psk /* Y */, in eap_gpsk_gkdf_cmac()
48 const u8 *data /* Z */, size_t data_len, in eap_gpsk_gkdf_cmac()
49 u8 *buf, size_t len /* X */) in eap_gpsk_gkdf_cmac()
51 u8 *opos; in eap_gpsk_gkdf_cmac()
53 u8 ibuf[2], hash[16]; in eap_gpsk_gkdf_cmac()
54 const u8 *addr[2]; in eap_gpsk_gkdf_cmac()
81 static int eap_gpsk_gkdf_sha256(const u8 *psk /* Y */, in eap_gpsk_gkdf_sha256()
82 const u8 *data /* Z */, size_t data_len, in eap_gpsk_gkdf_sha256()
83 u8 *buf, size_t len /* X */) in eap_gpsk_gkdf_sha256()
85 u8 *opos; in eap_gpsk_gkdf_sha256()
87 u8 ibuf[2], hash[SHA256_MAC_LEN]; in eap_gpsk_gkdf_sha256()
88 const u8 *addr[2]; in eap_gpsk_gkdf_sha256()
116 u8 *kdf_out, size_t kdf_out_len, in eap_gpsk_derive_keys_helper()
117 const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_helper()
118 const u8 *seed, size_t seed_len, in eap_gpsk_derive_keys_helper()
119 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_helper()
120 u8 *sk, size_t sk_len, in eap_gpsk_derive_keys_helper()
121 u8 *pk, size_t pk_len) in eap_gpsk_derive_keys_helper()
123 u8 mk[32], *pos, *data; in eap_gpsk_derive_keys_helper()
125 int (*gkdf)(const u8 *psk, const u8 *data, size_t data_len, in eap_gpsk_derive_keys_helper()
126 u8 *buf, size_t len); in eap_gpsk_derive_keys_helper()
196 static int eap_gpsk_derive_keys_aes(const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_aes()
197 const u8 *seed, size_t seed_len, in eap_gpsk_derive_keys_aes()
198 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys_aes()
199 u8 *pk, size_t *pk_len) in eap_gpsk_derive_keys_aes()
203 u8 kdf_out[EAP_MSK_LEN + EAP_EMSK_LEN + EAP_GPSK_SK_LEN_AES + in eap_gpsk_derive_keys_aes()
232 static int eap_gpsk_derive_keys_sha256(const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_sha256()
233 const u8 *seed, size_t seed_len, in eap_gpsk_derive_keys_sha256()
234 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_sha256()
235 u8 *sk, size_t *sk_len) in eap_gpsk_derive_keys_sha256()
239 u8 kdf_out[EAP_MSK_LEN + EAP_EMSK_LEN + EAP_GPSK_SK_LEN_SHA256 + in eap_gpsk_derive_keys_sha256()
286 int eap_gpsk_derive_keys(const u8 *psk, size_t psk_len, int vendor, in eap_gpsk_derive_keys()
288 const u8 *rand_peer, const u8 *rand_server, in eap_gpsk_derive_keys()
289 const u8 *id_peer, size_t id_peer_len, in eap_gpsk_derive_keys()
290 const u8 *id_server, size_t id_server_len, in eap_gpsk_derive_keys()
291 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys()
292 u8 *pk, size_t *pk_len) in eap_gpsk_derive_keys()
294 u8 *seed, *pos; in eap_gpsk_derive_keys()
375 static int eap_gpsk_compute_mic_aes(const u8 *sk, size_t sk_len, in eap_gpsk_compute_mic_aes()
376 const u8 *data, size_t len, u8 *mic) in eap_gpsk_compute_mic_aes()
399 int eap_gpsk_compute_mic(const u8 *sk, size_t sk_len, int vendor, in eap_gpsk_compute_mic()
400 int specifier, const u8 *data, size_t len, u8 *mic) in eap_gpsk_compute_mic()