\section{aversive\_\-10-03-12/modules/crypto/rc4/rc4.c File Reference}
\label{rc4_8c}\index{aversive\_\-10-03-12/modules/crypto/rc4/rc4.c@{aversive\_\-10-03-12/modules/crypto/rc4/rc4.c}}
Implementation for the RC4 module. 

{\tt \#include $<$aversive.h$>$}\par
{\tt \#include \char`\"{}rc4.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf rc4\_\-init} (uint8\_\-t $\ast$key, uint8\_\-t length)
\item 
uint8\_\-t {\bf rc4\_\-crypt\_\-char} (uint8\_\-t data)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
struct {\bf rc4\_\-state} {\bf s}
\end{CompactItemize}


\subsection{Detailed Description}
Implementation for the RC4 module. 

Interface for the RC4 module.

\begin{Desc}
\item[{\bf Todo}]Test the module.\end{Desc}
\begin{Desc}
\item[{\bf Test}]No tests for the moment.\end{Desc}
This module provides RC4 cryptographic functions.

\begin{Desc}
\item[{\bf Todo}]Test the module.\end{Desc}
\begin{Desc}
\item[{\bf Test}]No tests for the moment.\end{Desc}
This module provides RC4 cryptographic functions. 

Definition in file {\bf rc4.c}.

\subsection{Function Documentation}
\index{rc4.c@{rc4.c}!rc4\_\-crypt\_\-char@{rc4\_\-crypt\_\-char}}
\index{rc4\_\-crypt\_\-char@{rc4\_\-crypt\_\-char}!rc4.c@{rc4.c}}
\subsubsection[rc4\_\-crypt\_\-char]{\setlength{\rightskip}{0pt plus 5cm}uint8\_\-t rc4\_\-crypt\_\-char (uint8\_\-t {\em data})}\label{rc4_8c_7e1ec1c4f34747608c6b3b38eb55aefa}




Definition at line 80 of file rc4.c.

References a, rc4\_\-state::m, s, rc4\_\-state::x, and rc4\_\-state::y.\index{rc4.c@{rc4.c}!rc4\_\-init@{rc4\_\-init}}
\index{rc4\_\-init@{rc4\_\-init}!rc4.c@{rc4.c}}
\subsubsection[rc4\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void rc4\_\-init (uint8\_\-t $\ast$ {\em key}, \/  uint8\_\-t {\em length})}\label{rc4_8c_5cabd185a8f62627d3585b8880119577}




Definition at line 44 of file rc4.c.

References a, i, rc4\_\-state::m, s, rc4\_\-state::x, and rc4\_\-state::y.

\subsection{Variable Documentation}
\index{rc4.c@{rc4.c}!s@{s}}
\index{s@{s}!rc4.c@{rc4.c}}
\subsubsection[s]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf rc4\_\-state} {\bf s}}\label{rc4_8c_d2915ce9fb608ad55b5d08cd0b956eab}




Definition at line 40 of file rc4.c.

Referenced by encoders\_\-spi\_\-manage(), rc4\_\-crypt\_\-char(), and rc4\_\-init().