milenage.h 1019 B

123456789101112131415161718192021222324252627
  1. /*
  2. * UMTS AKA - Milenage algorithm (3GPP TS 35.205, .206, .207, .208)
  3. * Copyright (c) 2006-2007 <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef MILENAGE_H
  9. #define MILENAGE_H
  10. void milenage_generate(const u8 *opc, const u8 *amf, const u8 *k,
  11. const u8 *sqn, const u8 *_rand, u8 *autn, u8 *ik,
  12. u8 *ck, u8 *res, size_t *res_len);
  13. int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts,
  14. u8 *sqn);
  15. int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres,
  16. u8 *kc);
  17. int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand,
  18. const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len,
  19. u8 *auts);
  20. int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand,
  21. const u8 *sqn, const u8 *amf, u8 *mac_a, u8 *mac_s);
  22. int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand,
  23. u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar);
  24. #endif /* MILENAGE_H */