• Home
  • Raw
  • Download

Lines Matching refs:u8

25 static int eap_sim_prf(const u8 *key, u8 *x, size_t xlen)  in eap_sim_prf()
31 void eap_sim_derive_mk(const u8 *identity, size_t identity_len, in eap_sim_derive_mk()
32 const u8 *nonce_mt, u16 selected_version, in eap_sim_derive_mk()
33 const u8 *ver_list, size_t ver_list_len, in eap_sim_derive_mk()
34 int num_chal, const u8 *kc, u8 *mk) in eap_sim_derive_mk()
36 u8 sel_ver[2]; in eap_sim_derive_mk()
59 void eap_aka_derive_mk(const u8 *identity, size_t identity_len, in eap_aka_derive_mk()
60 const u8 *ik, const u8 *ck, u8 *mk) in eap_aka_derive_mk()
62 const u8 *addr[3]; in eap_aka_derive_mk()
80 int eap_sim_derive_keys(const u8 *mk, u8 *k_encr, u8 *k_aut, u8 *msk, u8 *emsk) in eap_sim_derive_keys()
82 u8 buf[EAP_SIM_K_ENCR_LEN + EAP_SIM_K_AUT_LEN + in eap_sim_derive_keys()
111 const u8 *identity, size_t identity_len, in eap_sim_derive_keys_reauth()
112 const u8 *nonce_s, const u8 *mk, u8 *msk, in eap_sim_derive_keys_reauth()
113 u8 *emsk) in eap_sim_derive_keys_reauth()
115 u8 xkey[SHA1_MAC_LEN]; in eap_sim_derive_keys_reauth()
116 u8 buf[EAP_SIM_KEYING_DATA_LEN + EAP_EMSK_LEN + 32]; in eap_sim_derive_keys_reauth()
117 u8 counter[2]; in eap_sim_derive_keys_reauth()
118 const u8 *addr[4]; in eap_sim_derive_keys_reauth()
168 int eap_sim_verify_mac(const u8 *k_aut, const u8 *req, size_t req_len, in eap_sim_verify_mac()
169 const u8 *mac, const u8 *extra, size_t extra_len) in eap_sim_verify_mac()
172 const u8 *addr[2]; in eap_sim_verify_mac()
174 u8 *tmp; in eap_sim_verify_mac()
206 void eap_sim_add_mac(const u8 *k_aut, u8 *msg, size_t msg_len, u8 *mac, in eap_sim_add_mac()
207 const u8 *extra, size_t extra_len) in eap_sim_add_mac()
210 const u8 *addr[2]; in eap_sim_add_mac()
232 int eap_sim_parse_attr(const u8 *start, const u8 *end, in eap_sim_parse_attr()
235 const u8 *pos = start, *apos; in eap_sim_parse_attr()
567 u8 * eap_sim_parse_encr(const u8 *k_encr, const u8 *encr_data, in eap_sim_parse_encr()
568 size_t encr_data_len, const u8 *iv, in eap_sim_parse_encr()
571 u8 *decrypted; in eap_sim_parse_encr()
602 u8 *buf;
612 u8 *pos; in eap_sim_msg_init()
629 pos = (u8 *) (eap + 1); in eap_sim_msg_init()
640 u8 * eap_sim_msg_finish(struct eap_sim_msg *msg, size_t *len, const u8 *k_aut, in eap_sim_msg_finish()
641 const u8 *extra, size_t extra_len) in eap_sim_msg_finish()
644 u8 *buf; in eap_sim_msg_finish()
676 u8 *nbuf = os_realloc(msg->buf, msg->used + add_len); in eap_sim_msg_resize()
686 u8 * eap_sim_msg_add_full(struct eap_sim_msg *msg, u8 attr, in eap_sim_msg_add_full()
687 const u8 *data, size_t len) in eap_sim_msg_add_full()
691 u8 *start, *pos; in eap_sim_msg_add_full()
713 u8 * eap_sim_msg_add(struct eap_sim_msg *msg, u8 attr, u16 value, in eap_sim_msg_add()
714 const u8 *data, size_t len) in eap_sim_msg_add()
718 u8 *start, *pos; in eap_sim_msg_add()
743 u8 * eap_sim_msg_add_mac(struct eap_sim_msg *msg, u8 attr) in eap_sim_msg_add_mac()
745 u8 *pos = eap_sim_msg_add(msg, attr, 0, NULL, EAP_SIM_MAC_LEN); in eap_sim_msg_add_mac()
752 int eap_sim_msg_add_encr_start(struct eap_sim_msg *msg, u8 attr_iv, in eap_sim_msg_add_encr_start()
753 u8 attr_encr) in eap_sim_msg_add_encr_start()
755 u8 *pos = eap_sim_msg_add(msg, attr_iv, 0, NULL, EAP_SIM_IV_LEN); in eap_sim_msg_add_encr_start()
775 int eap_sim_msg_add_encr_end(struct eap_sim_msg *msg, u8 *k_encr, int attr_pad) in eap_sim_msg_add_encr_end()
784 u8 *pos; in eap_sim_msg_add_encr_end()