\doxysection{include/osmocom/gsm/a5.h File Reference}
\label{a5_8h}\index{include/osmocom/gsm/a5.h@{include/osmocom/gsm/a5.h}}
{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/defs.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/bits.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static uint32\+\_\+t \textbf{ osmo\+\_\+a5\+\_\+fn\+\_\+count} (uint32\+\_\+t fn)
\begin{DoxyCompactList}\small\item\em Converts a frame number into the 22 bit number used in A5/x. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+a5} (int \textbf{ n}, const uint8\+\_\+t $\ast$key, uint32\+\_\+t fn, \textbf{ ubit\+\_\+t} $\ast$dl, \textbf{ ubit\+\_\+t} $\ast$ul)
\begin{DoxyCompactList}\small\item\em Main method to generate a A5/x cipher stream. \end{DoxyCompactList}\item 
void \textbf{ osmo\+\_\+a5\+\_\+1} (const uint8\+\_\+t $\ast$key, uint32\+\_\+t fn, \textbf{ ubit\+\_\+t} $\ast$dl, \textbf{ ubit\+\_\+t} $\ast$ul) \textbf{ OSMO\+\_\+\+DEPRECATED}(\char`\"{}Use generic \textbf{ osmo\+\_\+a5}() \textbf{ instead}\char`\"{})
\item 
void \textbf{ osmo\+\_\+a5\+\_\+2} (const uint8\+\_\+t $\ast$key, uint32\+\_\+t fn, \textbf{ ubit\+\_\+t} $\ast$dl, \textbf{ ubit\+\_\+t} $\ast$ul) \textbf{ OSMO\+\_\+\+DEPRECATED}(\char`\"{}Use generic \textbf{ osmo\+\_\+a5}() \textbf{ instead}\char`\"{})
\end{DoxyCompactItemize}
