\doxysection{comp128.\+h}
\label{comp128_8h_source}\index{include/osmocom/gsm/comp128.h@{include/osmocom/gsm/comp128.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{7 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{8 }
\DoxyCodeLine{9 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{10 }
\DoxyCodeLine{11 \textcolor{preprocessor}{\#include <osmocom/core/defs.h>}}
\DoxyCodeLine{12 }
\DoxyCodeLine{13 \textcolor{comment}{/*}}
\DoxyCodeLine{14 \textcolor{comment}{ * Performs the COMP128v1 algorithm (used as A3/A8)}}
\DoxyCodeLine{15 \textcolor{comment}{ * ki    : uint8\_t [16]}}
\DoxyCodeLine{16 \textcolor{comment}{ * srand : uint8\_t [16]}}
\DoxyCodeLine{17 \textcolor{comment}{ * sres  : uint8\_t [4]}}
\DoxyCodeLine{18 \textcolor{comment}{ * kc    : uint8\_t [8]}}
\DoxyCodeLine{19 \textcolor{comment}{ */}}
\DoxyCodeLine{20 \textcolor{keywordtype}{void} comp128v1(\textcolor{keyword}{const} uint8\_t *ki, \textcolor{keyword}{const} uint8\_t *srand, uint8\_t *sres, uint8\_t *kc);}
\DoxyCodeLine{21 }
\DoxyCodeLine{22 \textcolor{keywordtype}{void} comp128(\textcolor{keyword}{const} uint8\_t *ki, \textcolor{keyword}{const} uint8\_t *srand, uint8\_t *sres, uint8\_t *kc) OSMO\_DEPRECATED(\textcolor{stringliteral}{"{}Use generic API from osmocom/crypt/auth.h instead"{}});}

\end{DoxyCode}
