\doxysection{src/gsm/auth\+\_\+xor\+\_\+2g.c File Reference}
\label{auth__xor__2g_8c}\index{src/gsm/auth\_xor\_2g.c@{src/gsm/auth\_xor\_2g.c}}
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/crypt/auth.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static void \textbf{ xor} (uint8\+\_\+t $\ast$out, const uint8\+\_\+t $\ast$a, const uint8\+\_\+t $\ast$b, size\+\_\+t \textbf{ len})
\item 
static int \textbf{ xor2g\+\_\+gen\+\_\+vec} (struct \textbf{ osmo\+\_\+auth\+\_\+vector} $\ast$vec, struct \textbf{ osmo\+\_\+sub\+\_\+auth\+\_\+data2} $\ast$aud, const uint8\+\_\+t $\ast$\+\_\+rand)
\item 
static \textbf{ \+\_\+\+\_\+attribute\+\_\+\+\_\+} ((constructor))
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static struct \textbf{ osmo\+\_\+auth\+\_\+impl} \textbf{ xor2g\+\_\+alg}
\end{DoxyCompactItemize}


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



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

\mbox{\label{auth__xor__2g_8c_gadb81629f87414226ac80a55cfc52f0a1}} 
\index{auth\_xor\_2g.c@{auth\_xor\_2g.c}!xor@{xor}}
\index{xor@{xor}!auth\_xor\_2g.c@{auth\_xor\_2g.c}}
\doxysubsubsection{xor()}
{\footnotesize\ttfamily static void xor (\begin{DoxyParamCaption}\item[{uint8\+\_\+t $\ast$}]{out,  }\item[{const uint8\+\_\+t $\ast$}]{a,  }\item[{const uint8\+\_\+t $\ast$}]{b,  }\item[{size\+\_\+t}]{len }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



References \textbf{ len}.



Referenced by \textbf{ xor2g\+\_\+gen\+\_\+vec()}.

