wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
milenage.h
Go to the documentation of this file.
1 
5 #ifndef MILENAGE_H
6 #define MILENAGE_H
7 
8 void milenage_generate(const u8 *opc, const u8 *amf, const u8 *k,
9  const u8 *sqn, const u8 *_rand, u8 *autn, u8 *ik,
10  u8 *ck, u8 *res, size_t *res_len);
11 int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts,
12  u8 *sqn);
13 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres,
14  u8 *kc);
15 int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand,
16  const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len,
17  u8 *auts);
18 int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand,
19  const u8 *sqn, const u8 *amf, u8 *mac_a, u8 *mac_s);
20 int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand,
21  u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar);
22 
23 #endif /* MILENAGE_H */
int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *sqn, const u8 *amf, u8 *mac_a, u8 *mac_s)
Milenage f1 and f1* algorithms.
Definition: milenage.c:32
void milenage_generate(const u8 *opc, const u8 *amf, const u8 *k, const u8 *sqn, const u8 *_rand, u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len)
Generate AKA AUTN,IK,CK,RES.
Definition: milenage.c:169
int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand, u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar)
Milenage f2, f3, f4, f5, f5* algorithms.
Definition: milenage.c:84
int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand, const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len, u8 *auts)
Generate AKA AUTN,IK,CK,RES.
Definition: milenage.c:266
int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts, u8 *sqn)
Milenage AUTS validation.
Definition: milenage.c:204
int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres, u8 *kc)
Generate GSM-Milenage (3GPP TS 55.205) authentication triplet.
Definition: milenage.c:231