\doxysection{milenage.\+h}
\label{milenage_8h_source}\index{src/gsm/milenage/milenage.h@{src/gsm/milenage/milenage.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{4 \textcolor{comment}{/*}}
\DoxyCodeLine{5 \textcolor{comment}{ * Copyright (c) 2006-\/2007 <j@w1.fi>}}
\DoxyCodeLine{6 \textcolor{comment}{ *}}
\DoxyCodeLine{7 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{8 \textcolor{comment}{ * it under the terms of the GNU General Public License version 2 as}}
\DoxyCodeLine{9 \textcolor{comment}{ * published by the Free Software Foundation.}}
\DoxyCodeLine{10 \textcolor{comment}{ *}}
\DoxyCodeLine{11 \textcolor{comment}{ * Alternatively, this software may be distributed under the terms of BSD}}
\DoxyCodeLine{12 \textcolor{comment}{ * license.}}
\DoxyCodeLine{13 \textcolor{comment}{ *}}
\DoxyCodeLine{14 \textcolor{comment}{ * SPDX-\/License-\/Identifier: GPL-\/2.0 or BSD-\/3-\/Clause}}
\DoxyCodeLine{15 \textcolor{comment}{ *}}
\DoxyCodeLine{16 \textcolor{comment}{ * See README and COPYING for more details.}}
\DoxyCodeLine{17 \textcolor{comment}{ */}}
\DoxyCodeLine{18 }
\DoxyCodeLine{19 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{20 }
\DoxyCodeLine{21 \textcolor{keywordtype}{void} milenage\_generate(\textcolor{keyword}{const} u8 *opc, \textcolor{keyword}{const} u8 *amf, \textcolor{keyword}{const} u8 *k,}
\DoxyCodeLine{22                        \textcolor{keyword}{const} u8 *sqn, \textcolor{keyword}{const} u8 *\_rand, u8 *autn, u8 *ik,}
\DoxyCodeLine{23                        u8 *ck, u8 *res, \textcolor{keywordtype}{size\_t} *res\_len);}
\DoxyCodeLine{24 \textcolor{keywordtype}{int} milenage\_auts(\textcolor{keyword}{const} u8 *opc, \textcolor{keyword}{const} u8 *k, \textcolor{keyword}{const} u8 *\_rand, \textcolor{keyword}{const} u8 *auts,}
\DoxyCodeLine{25                   u8 *sqn);}
\DoxyCodeLine{26 \textcolor{keywordtype}{int} gsm\_milenage(\textcolor{keyword}{const} u8 *opc, \textcolor{keyword}{const} u8 *k, \textcolor{keyword}{const} u8 *\_rand, u8 *sres,}
\DoxyCodeLine{27                  u8 *kc);}
\DoxyCodeLine{28 \textcolor{keywordtype}{int} milenage\_check(\textcolor{keyword}{const} u8 *opc, \textcolor{keyword}{const} u8 *k, \textcolor{keyword}{const} u8 *sqn, \textcolor{keyword}{const} u8 *\_rand,}
\DoxyCodeLine{29                    \textcolor{keyword}{const} u8 *autn, u8 *ik, u8 *ck, u8 *res, \textcolor{keywordtype}{size\_t} *res\_len,}
\DoxyCodeLine{30                    u8 *auts);}
\DoxyCodeLine{31 \textcolor{keywordtype}{int} milenage\_f1(\textcolor{keyword}{const} u8 *opc, \textcolor{keyword}{const} u8 *k, \textcolor{keyword}{const} u8 *\_rand,}
\DoxyCodeLine{32                 \textcolor{keyword}{const} u8 *sqn, \textcolor{keyword}{const} u8 *amf, u8 *mac\_a, u8 *mac\_s);}
\DoxyCodeLine{33 \textcolor{keywordtype}{int} milenage\_f2345(\textcolor{keyword}{const} u8 *opc, \textcolor{keyword}{const} u8 *k, \textcolor{keyword}{const} u8 *\_rand,}
\DoxyCodeLine{34                    u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar);}
\DoxyCodeLine{35 }
\DoxyCodeLine{36 \textcolor{keywordtype}{int} milenage\_opc\_gen(u8 *opc, \textcolor{keyword}{const} u8 *k, \textcolor{keyword}{const} u8 *op);}

\end{DoxyCode}
