2008-02-27 20:34:43 -05:00
|
|
|
/*
|
|
|
|
* UMTS AKA - Milenage algorithm (3GPP TS 35.205, .206, .207, .208)
|
|
|
|
* Copyright (c) 2006-2007 <j@w1.fi>
|
|
|
|
*
|
2012-02-11 09:46:35 -05:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-27 20:34:43 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MILENAGE_H
|
|
|
|
#define MILENAGE_H
|
|
|
|
|
|
|
|
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);
|
|
|
|
int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts,
|
|
|
|
u8 *sqn);
|
|
|
|
int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres,
|
|
|
|
u8 *kc);
|
2008-11-05 16:02:13 -05:00
|
|
|
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);
|
2009-12-05 14:14:08 -05:00
|
|
|
int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand,
|
|
|
|
const u8 *sqn, const u8 *amf, u8 *mac_a, u8 *mac_s);
|
|
|
|
int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand,
|
|
|
|
u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar);
|
2008-02-27 20:34:43 -05:00
|
|
|
|
|
|
|
#endif /* MILENAGE_H */
|