\section{aversive\_\-10-03-12/modules/crypto/aes/aes\_\-ctr.c File Reference}
\label{aes__ctr_8c}\index{aversive\_\-10-03-12/modules/crypto/aes/aes\_\-ctr.c@{aversive\_\-10-03-12/modules/crypto/aes/aes\_\-ctr.c}}
{\tt \#include $<$aversive.h$>$}\par
{\tt \#include $<$assert.h$>$}\par
{\tt \#include \char`\"{}aes\_\-locl.h\char`\"{}}\par
{\tt \#include \char`\"{}aes.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf AES\_\-ctr128\_\-inc} (unsigned char $\ast$counter)
\item 
void {\bf AES\_\-ctr128\_\-encrypt} (const unsigned char $\ast$in, unsigned char $\ast$out, const unsigned long length, const {\bf AES\_\-KEY} $\ast$key, unsigned char counter[AES\_\-BLOCK\_\-SIZE], unsigned char ecount\_\-buf[AES\_\-BLOCK\_\-SIZE], unsigned int $\ast$num)
\end{CompactItemize}


\subsection{Function Documentation}
\index{aes\_\-ctr.c@{aes\_\-ctr.c}!AES\_\-ctr128\_\-encrypt@{AES\_\-ctr128\_\-encrypt}}
\index{AES\_\-ctr128\_\-encrypt@{AES\_\-ctr128\_\-encrypt}!aes_ctr.c@{aes\_\-ctr.c}}
\subsubsection[AES\_\-ctr128\_\-encrypt]{\setlength{\rightskip}{0pt plus 5cm}void AES\_\-ctr128\_\-encrypt (const unsigned char $\ast$ {\em in}, \/  unsigned char $\ast$ {\em out}, \/  const unsigned long {\em length}, \/  const {\bf AES\_\-KEY} $\ast$ {\em key}, \/  unsigned char {\em counter}[AES\_\-BLOCK\_\-SIZE], \/  unsigned char {\em ecount\_\-buf}[AES\_\-BLOCK\_\-SIZE], \/  unsigned int $\ast$ {\em num})}\label{aes__ctr_8c_dbbd9e5c397bb64ec705419629c204b4}




Definition at line 105 of file aes\_\-ctr.c.

References AES\_\-ctr128\_\-inc(), AES\_\-encrypt(), and parse\_\-symbols::l.\index{aes\_\-ctr.c@{aes\_\-ctr.c}!AES\_\-ctr128\_\-inc@{AES\_\-ctr128\_\-inc}}
\index{AES\_\-ctr128\_\-inc@{AES\_\-ctr128\_\-inc}!aes_ctr.c@{aes\_\-ctr.c}}
\subsubsection[AES\_\-ctr128\_\-inc]{\setlength{\rightskip}{0pt plus 5cm}void AES\_\-ctr128\_\-inc (unsigned char $\ast$ {\em counter})}\label{aes__ctr_8c_9f855b92b1322070682d7577abd7ee09}




Definition at line 67 of file aes\_\-ctr.c.

References GETU32, and PUTU32.

Referenced by AES\_\-ctr128\_\-encrypt().