\doxysection{src/gsm/auth\+\_\+milenage.c File Reference}
\label{auth__milenage_8c}\index{src/gsm/auth\_milenage.c@{src/gsm/auth\_milenage.c}}


GSM/\+GPRS/3G authentication core infrastructure.  


{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/crypt/auth.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/bits.\+h$>$}\newline
{\ttfamily \#include \char`\"{}milenage/common.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}milenage/milenage.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static const uint8\+\_\+t $\ast$ \textbf{ gen\+\_\+opc\+\_\+if\+\_\+needed} (const struct \textbf{ osmo\+\_\+sub\+\_\+auth\+\_\+data2} $\ast$aud, uint8\+\_\+t $\ast$gen\+\_\+opc)
\item 
static int \textbf{ milenage\+\_\+gen\+\_\+vec} (struct \textbf{ osmo\+\_\+auth\+\_\+vector} $\ast$vec, struct \textbf{ osmo\+\_\+sub\+\_\+auth\+\_\+data2} $\ast$aud, const uint8\+\_\+t $\ast$\+\_\+rand)
\item 
static int \textbf{ milenage\+\_\+gen\+\_\+vec\+\_\+auts} (struct \textbf{ osmo\+\_\+auth\+\_\+vector} $\ast$vec, struct \textbf{ osmo\+\_\+sub\+\_\+auth\+\_\+data2} $\ast$aud, const uint8\+\_\+t $\ast$auts, const uint8\+\_\+t $\ast$rand\+\_\+auts, const uint8\+\_\+t $\ast$\+\_\+rand)
\item 
static \textbf{ \+\_\+\+\_\+attribute\+\_\+\+\_\+} ((constructor))
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static struct \textbf{ osmo\+\_\+auth\+\_\+impl} \textbf{ milenage\+\_\+alg}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
GSM/\+GPRS/3G authentication core infrastructure. 



\doxysubsection{Function Documentation}
\mbox{\label{auth__milenage_8c_ga9ed16867a9394d9ccf1132194edae298}} 
\index{auth\_milenage.c@{auth\_milenage.c}!\_\_attribute\_\_@{\_\_attribute\_\_}}
\index{\_\_attribute\_\_@{\_\_attribute\_\_}!auth\_milenage.c@{auth\_milenage.c}}
\doxysubsubsection{\_\_attribute\_\_()}
{\footnotesize\ttfamily static \+\_\+\+\_\+attribute\+\_\+\+\_\+ (\begin{DoxyParamCaption}\item[{(constructor)}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



References \textbf{ milenage\+\_\+alg}, and \textbf{ osmo\+\_\+auth\+\_\+register()}.

