Lines Matching refs:u8
74 void eap_sim_derive_mk(const u8 *identity, size_t identity_len,
75 const u8 *nonce_mt, u16 selected_version,
76 const u8 *ver_list, size_t ver_list_len,
77 int num_chal, const u8 *kc, u8 *mk);
78 void eap_aka_derive_mk(const u8 *identity, size_t identity_len,
79 const u8 *ik, const u8 *ck, u8 *mk);
80 int eap_sim_derive_keys(const u8 *mk, u8 *k_encr, u8 *k_aut, u8 *msk,
81 u8 *emsk);
83 const u8 *identity, size_t identity_len,
84 const u8 *nonce_s, const u8 *mk, u8 *msk,
85 u8 *emsk);
86 int eap_sim_verify_mac(const u8 *k_aut, const struct wpabuf *req,
87 const u8 *mac, const u8 *extra, size_t extra_len);
88 void eap_sim_add_mac(const u8 *k_aut, const u8 *msg, size_t msg_len, u8 *mac,
89 const u8 *extra, size_t extra_len);
92 void eap_aka_prime_derive_keys(const u8 *identity, size_t identity_len,
93 const u8 *ik, const u8 *ck, u8 *k_encr,
94 u8 *k_aut, u8 *k_re, u8 *msk, u8 *emsk);
95 int eap_aka_prime_derive_keys_reauth(const u8 *k_re, u16 counter,
96 const u8 *identity, size_t identity_len,
97 const u8 *nonce_s, u8 *msk, u8 *emsk);
98 int eap_sim_verify_mac_sha256(const u8 *k_aut, const struct wpabuf *req,
99 const u8 *mac, const u8 *extra,
101 void eap_sim_add_mac_sha256(const u8 *k_aut, const u8 *msg, size_t msg_len,
102 u8 *mac, const u8 *extra, size_t extra_len);
104 void eap_aka_prime_derive_ck_ik_prime(u8 *ck, u8 *ik, const u8 *sqn_ak,
105 const u8 *network_name,
108 static inline void eap_aka_prime_derive_keys(const u8 *identity,
110 const u8 *ik, const u8 *ck,
111 u8 *k_encr, u8 *k_aut, u8 *k_re,
112 u8 *msk, u8 *emsk)
116 static inline int eap_aka_prime_derive_keys_reauth(const u8 *k_re, u16 counter,
117 const u8 *identity,
119 const u8 *nonce_s, u8 *msk,
120 u8 *emsk)
125 static inline int eap_sim_verify_mac_sha256(const u8 *k_aut,
127 const u8 *mac, const u8 *extra,
184 const u8 *rand, *autn, *mac, *iv, *encr_data, *version_list, *nonce_s;
185 const u8 *next_pseudonym, *next_reauth_id;
186 const u8 *nonce_mt, *identity, *res, *auts;
187 const u8 *checkcode;
188 const u8 *kdf_input;
189 const u8 *bidding;
204 int eap_sim_parse_attr(const u8 *start, const u8 *end,
206 u8 * eap_sim_parse_encr(const u8 *k_encr, const u8 *encr_data,
207 size_t encr_data_len, const u8 *iv,
214 struct wpabuf * eap_sim_msg_finish(struct eap_sim_msg *msg, const u8 *k_aut,
215 const u8 *extra, size_t extra_len);
217 u8 * eap_sim_msg_add_full(struct eap_sim_msg *msg, u8 attr,
218 const u8 *data, size_t len);
219 u8 * eap_sim_msg_add(struct eap_sim_msg *msg, u8 attr,
220 u16 value, const u8 *data, size_t len);
221 u8 * eap_sim_msg_add_mac(struct eap_sim_msg *msg, u8 attr);
222 int eap_sim_msg_add_encr_start(struct eap_sim_msg *msg, u8 attr_iv,
223 u8 attr_encr);
224 int eap_sim_msg_add_encr_end(struct eap_sim_msg *msg, u8 *k_encr,