\doxysection{src/gsm/milenage/aes-\/encblock.c File Reference}
\label{aes-encblock_8c}\index{src/gsm/milenage/aes-\/encblock.c@{src/gsm/milenage/aes-\/encblock.c}}


AES encrypt\+\_\+block.  


{\ttfamily \#include \char`\"{}includes.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}common.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}aes.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}aes\+\_\+wrap.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ aes\+\_\+128\+\_\+encrypt\+\_\+block} (const \textbf{ u8} $\ast$key, const \textbf{ u8} $\ast$in, \textbf{ u8} $\ast$out)
\begin{DoxyCompactList}\small\item\em aes\+\_\+128\+\_\+encrypt\+\_\+block -\/ Perform one AES 128-\/bit block operation @key\+: Key for AES @in\+: Input data (16 bytes) @out\+: Output of the AES block operation (16 bytes) Returns\+: 0 on success, -\/1 on failure \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
AES encrypt\+\_\+block. 



\doxysubsection{Function Documentation}
\mbox{\label{aes-encblock_8c_a06dfebefc3819894f3ff91c7ce4a1cde}} 
\index{aes-\/encblock.c@{aes-\/encblock.c}!aes\_128\_encrypt\_block@{aes\_128\_encrypt\_block}}
\index{aes\_128\_encrypt\_block@{aes\_128\_encrypt\_block}!aes-\/encblock.c@{aes-\/encblock.c}}
\doxysubsubsection{aes\_128\_encrypt\_block()}
{\footnotesize\ttfamily int aes\+\_\+128\+\_\+encrypt\+\_\+block (\begin{DoxyParamCaption}\item[{const \textbf{ u8} $\ast$}]{key,  }\item[{const \textbf{ u8} $\ast$}]{in,  }\item[{\textbf{ u8} $\ast$}]{out }\end{DoxyParamCaption})}



aes\+\_\+128\+\_\+encrypt\+\_\+block -\/ Perform one AES 128-\/bit block operation @key\+: Key for AES @in\+: Input data (16 bytes) @out\+: Output of the AES block operation (16 bytes) Returns\+: 0 on success, -\/1 on failure 



References \textbf{ aes\+\_\+encrypt()}, \textbf{ aes\+\_\+encrypt\+\_\+deinit()}, and \textbf{ aes\+\_\+encrypt\+\_\+init()}.



Referenced by \textbf{ milenage\+\_\+f1()}, \textbf{ milenage\+\_\+f2345()}, and \textbf{ milenage\+\_\+opc\+\_\+gen()}.

