Added doxygen output of current emulator branch.

This commit is contained in:
Timo Lang
2015-05-12 11:12:43 +02:00
commit 57aa160278
9205 changed files with 511443 additions and 0 deletions

View File

@@ -0,0 +1,648 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>discoverpixy: High Level AES functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">discoverpixy
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">High Level AES functions<div class="ingroups"><a class="el" href="group___s_t_m32_f4xx___std_periph___driver.html">STM32F4xx_StdPeriph_Driver</a> &raquo; <a class="el" href="group___c_r_y_p.html">CRYP</a> &raquo; <a class="el" href="group___c_r_y_p___private___functions.html">CRYP_Private_Functions</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>High Level AES functions.
<a href="#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for High Level AES functions:</div>
<div class="dyncontent">
<center><table><tr><td><img src="group___c_r_y_p___group6.png" border="0" alt="" usemap="#group______c__r__y__p______group6"/>
<map name="group______c__r__y__p______group6" id="group______c__r__y__p______group6">
<area shape="rect" id="node2" href="group___c_r_y_p___private___functions.html" title="CRYP_Private_Functions" alt="" coords="5,5,173,32"/></map>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga79ff82ece0e9620dc86d6e57abe639e1"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_r_y_p___group6.html#ga79ff82ece0e9620dc86d6e57abe639e1">CRYP_AES_ECB</a> (uint8_t Mode, uint8_t *Key, uint16_t Keysize, uint8_t *Input, uint32_t Ilength, uint8_t *Output)</td></tr>
<tr class="memdesc:ga79ff82ece0e9620dc86d6e57abe639e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypt and decrypt using AES in ECB Mode. <a href="#ga79ff82ece0e9620dc86d6e57abe639e1">More...</a><br /></td></tr>
<tr class="separator:ga79ff82ece0e9620dc86d6e57abe639e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa43eadf707257710f6a53b3295b39d70"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_r_y_p___group6.html#gaa43eadf707257710f6a53b3295b39d70">CRYP_AES_CBC</a> (uint8_t Mode, uint8_t InitVectors[16], uint8_t *Key, uint16_t Keysize, uint8_t *Input, uint32_t Ilength, uint8_t *Output)</td></tr>
<tr class="memdesc:gaa43eadf707257710f6a53b3295b39d70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypt and decrypt using AES in CBC Mode. <a href="#gaa43eadf707257710f6a53b3295b39d70">More...</a><br /></td></tr>
<tr class="separator:gaa43eadf707257710f6a53b3295b39d70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2f36aea6e94452e5e5e938547fb89d4c"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_r_y_p___group6.html#ga2f36aea6e94452e5e5e938547fb89d4c">CRYP_AES_CTR</a> (uint8_t Mode, uint8_t InitVectors[16], uint8_t *Key, uint16_t Keysize, uint8_t *Input, uint32_t Ilength, uint8_t *Output)</td></tr>
<tr class="memdesc:ga2f36aea6e94452e5e5e938547fb89d4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypt and decrypt using AES in CTR Mode. <a href="#ga2f36aea6e94452e5e5e938547fb89d4c">More...</a><br /></td></tr>
<tr class="separator:ga2f36aea6e94452e5e5e938547fb89d4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga74b48d820c5c360eb303fc2fb78af055"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_r_y_p___group6.html#ga74b48d820c5c360eb303fc2fb78af055">CRYP_AES_GCM</a> (uint8_t Mode, uint8_t InitVectors[16], uint8_t *Key, uint16_t Keysize, uint8_t *Input, uint32_t ILength, uint8_t *Header, uint32_t HLength, uint8_t *Output, uint8_t *AuthTAG)</td></tr>
<tr class="memdesc:ga74b48d820c5c360eb303fc2fb78af055"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypt and decrypt using AES in GCM Mode. The GCM and CCM modes are available only on STM32F437x Devices. <a href="#ga74b48d820c5c360eb303fc2fb78af055">More...</a><br /></td></tr>
<tr class="separator:ga74b48d820c5c360eb303fc2fb78af055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9d9f5c74b634b85b7aa8c2a2ea0bcd51"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_r_y_p___group6.html#ga9d9f5c74b634b85b7aa8c2a2ea0bcd51">CRYP_AES_CCM</a> (uint8_t Mode, uint8_t *Nonce, uint32_t NonceSize, uint8_t *Key, uint16_t Keysize, uint8_t *Input, uint32_t ILength, uint8_t *Header, uint32_t HLength, uint8_t *HBuffer, uint8_t *Output, uint8_t *AuthTAG, uint32_t TAGSize)</td></tr>
<tr class="memdesc:ga9d9f5c74b634b85b7aa8c2a2ea0bcd51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypt and decrypt using AES in CCM Mode. The GCM and CCM modes are available only on STM32F437x Devices. <a href="#ga9d9f5c74b634b85b7aa8c2a2ea0bcd51">More...</a><br /></td></tr>
<tr class="separator:ga9d9f5c74b634b85b7aa8c2a2ea0bcd51"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>High Level AES functions. </p>
<pre class="fragment"> ===============================================================================
##### High Level AES functions #####
===============================================================================</pre> <h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gaa43eadf707257710f6a53b3295b39d70"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ErrorStatus CRYP_AES_CBC </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>Mode</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>InitVectors</em>[16], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>Keysize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Input</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>Ilength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Output</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Encrypt and decrypt using AES in CBC Mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">Mode</td><td>encryption or decryption Mode. This parameter can be one of the following values: <ul>
<li>MODE_ENCRYPT: Encryption </li>
<li>MODE_DECRYPT: Decryption </li>
</ul>
</td></tr>
<tr><td class="paramname">InitVectors</td><td>Initialisation Vectors used for AES algorithm. </td></tr>
<tr><td class="paramname">Key</td><td>Key used for AES algorithm. </td></tr>
<tr><td class="paramname">Keysize</td><td>length of the Key, must be a 128, 192 or 256. </td></tr>
<tr><td class="paramname">Input</td><td>pointer to the Input buffer. </td></tr>
<tr><td class="paramname">Ilength</td><td>length of the Input buffer, must be a multiple of 16. </td></tr>
<tr><td class="paramname">Output</td><td>pointer to the returned buffer. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: Operation done</li>
<li>ERROR: Operation failed </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___c_r_y_p___group6_gaa43eadf707257710f6a53b3295b39d70_cgraph.png" border="0" usemap="#group___c_r_y_p___group6_gaa43eadf707257710f6a53b3295b39d70_cgraph" alt=""/></div>
<map name="group___c_r_y_p___group6_gaa43eadf707257710f6a53b3295b39d70_cgraph" id="group___c_r_y_p___group6_gaa43eadf707257710f6a53b3295b39d70_cgraph">
<area shape="rect" id="node2" href="group___c_r_y_p.html#gaeecd86b00d0d0137d97b06108789bcb2" title="Fills each CRYP_KeyInitStruct member with its default value. " alt="" coords="185,5,325,32"/><area shape="rect" id="node3" href="group___c_r_y_p.html#ga23ada9d9464e1362299d7612a1409a57" title="Flushes the IN and OUT FIFOs (that is read and write pointers of the FIFOs are reset) ..." alt="" coords="192,56,319,83"/><area shape="rect" id="node4" href="group___c_r_y_p.html#ga7b72c458d95581ab0a36be3e017fcf02" title="Initializes the CRYP peripheral according to the specified parameters in the CRYP_InitStruct. " alt="" coords="214,107,297,133"/><area shape="rect" id="node5" href="group___c_r_y_p.html#gad4baa3865415215cae07c9fbfa131cb9" title="Initializes the CRYP Keys according to the specified parameters in the CRYP_KeyInitStruct. " alt="" coords="203,157,308,184"/><area shape="rect" id="node6" href="group___c_r_y_p.html#gad39ccd9b1f2e088e3a227d7a1c410d7c" title="Enables or disables the CRYP peripheral. " alt="" coords="209,208,301,235"/><area shape="rect" id="node7" href="group___c_r_y_p.html#ga993d568b626a74b2973d4a6848a681f6" title="Checks whether the specified CRYP flag is set or not. " alt="" coords="181,259,330,285"/><area shape="rect" id="node8" href="group___c_r_y_p.html#ga133964b50a07db3a32864308f6355a8b" title="Initializes the CRYP Initialization Vectors(IV) according to the specified parameters in the CRYP_IVI..." alt="" coords="208,309,303,336"/><area shape="rect" id="node9" href="group___c_r_y_p.html#gabe26186adf64660a4a573bd6a4368fee" title="Returns whether CRYP peripheral is enabled or disabled. " alt="" coords="180,360,331,387"/><area shape="rect" id="node10" href="group___c_r_y_p.html#ga16dc76244318d464357ee6ff208bf9a4" title="Writes data in the Data Input register (DIN). " alt="" coords="204,411,307,437"/><area shape="rect" id="node11" href="group___c_r_y_p.html#gacbe5fcf4c7e4919192376fa615588b54" title="Returns the last data entered into the output FIFO. " alt="" coords="199,461,312,488"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ga9d9f5c74b634b85b7aa8c2a2ea0bcd51"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ErrorStatus CRYP_AES_CCM </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>Mode</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Nonce</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>NonceSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>Keysize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Input</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>ILength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Header</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>HLength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>HBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Output</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>AuthTAG</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>TAGSize</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Encrypt and decrypt using AES in CCM Mode. The GCM and CCM modes are available only on STM32F437x Devices. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">Mode</td><td>encryption or decryption Mode. This parameter can be one of the following values: <ul>
<li>MODE_ENCRYPT: Encryption </li>
<li>MODE_DECRYPT: Decryption </li>
</ul>
</td></tr>
<tr><td class="paramname">Nonce</td><td>the nounce used for AES algorithm. It shall be unique for each processing. </td></tr>
<tr><td class="paramname">Key</td><td>Key used for AES algorithm. </td></tr>
<tr><td class="paramname">Keysize</td><td>length of the Key, must be a 128, 192 or 256. </td></tr>
<tr><td class="paramname">Input</td><td>pointer to the Input buffer. </td></tr>
<tr><td class="paramname">Ilength</td><td>length of the Input buffer in bytes, must be a multiple of 16. </td></tr>
<tr><td class="paramname">Header</td><td>pointer to the header buffer. </td></tr>
<tr><td class="paramname">Hlength</td><td>length of the header buffer in bytes. </td></tr>
<tr><td class="paramname">HBuffer</td><td>pointer to temporary buffer used to append the header HBuffer size must be equal to Hlength + 21 </td></tr>
<tr><td class="paramname">Output</td><td>pointer to the returned buffer. </td></tr>
<tr><td class="paramname">AuthTAG</td><td>pointer to the authentication TAG buffer. </td></tr>
<tr><td class="paramname">TAGSize</td><td>the size of the TAG (called also MAC). </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: Operation done</li>
<li>ERROR: Operation failed </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___c_r_y_p___group6_ga9d9f5c74b634b85b7aa8c2a2ea0bcd51_cgraph.png" border="0" usemap="#group___c_r_y_p___group6_ga9d9f5c74b634b85b7aa8c2a2ea0bcd51_cgraph" alt=""/></div>
<map name="group___c_r_y_p___group6_ga9d9f5c74b634b85b7aa8c2a2ea0bcd51_cgraph" id="group___c_r_y_p___group6_ga9d9f5c74b634b85b7aa8c2a2ea0bcd51_cgraph">
<area shape="rect" id="node2" href="group___c_r_y_p.html#gaeecd86b00d0d0137d97b06108789bcb2" title="Fills each CRYP_KeyInitStruct member with its default value. " alt="" coords="187,5,327,32"/><area shape="rect" id="node3" href="group___c_r_y_p.html#ga23ada9d9464e1362299d7612a1409a57" title="Flushes the IN and OUT FIFOs (that is read and write pointers of the FIFOs are reset) ..." alt="" coords="193,56,320,83"/><area shape="rect" id="node4" href="group___c_r_y_p.html#gad4baa3865415215cae07c9fbfa131cb9" title="Initializes the CRYP Keys according to the specified parameters in the CRYP_KeyInitStruct. " alt="" coords="204,107,309,133"/><area shape="rect" id="node5" href="group___c_r_y_p.html#ga133964b50a07db3a32864308f6355a8b" title="Initializes the CRYP Initialization Vectors(IV) according to the specified parameters in the CRYP_IVI..." alt="" coords="209,157,304,184"/><area shape="rect" id="node6" href="group___c_r_y_p.html#ga7b72c458d95581ab0a36be3e017fcf02" title="Initializes the CRYP peripheral according to the specified parameters in the CRYP_InitStruct. " alt="" coords="215,208,298,235"/><area shape="rect" id="node7" href="group___c_r_y_p.html#ga4370106a2baf2b8e6cb360865050a027" title="Configures the AES&#45;CCM and AES&#45;GCM phases. " alt="" coords="187,259,326,285"/><area shape="rect" id="node8" href="group___c_r_y_p.html#ga16dc76244318d464357ee6ff208bf9a4" title="Writes data in the Data Input register (DIN). " alt="" coords="205,309,308,336"/><area shape="rect" id="node9" href="group___c_r_y_p.html#gad39ccd9b1f2e088e3a227d7a1c410d7c" title="Enables or disables the CRYP peripheral. " alt="" coords="211,360,303,387"/><area shape="rect" id="node10" href="group___c_r_y_p.html#gabe26186adf64660a4a573bd6a4368fee" title="Returns whether CRYP peripheral is enabled or disabled. " alt="" coords="181,411,332,437"/><area shape="rect" id="node11" href="group___c_r_y_p.html#ga993d568b626a74b2973d4a6848a681f6" title="Checks whether the specified CRYP flag is set or not. " alt="" coords="182,461,331,488"/><area shape="rect" id="node12" href="group___c_r_y_p.html#gacbe5fcf4c7e4919192376fa615588b54" title="Returns the last data entered into the output FIFO. " alt="" coords="200,512,313,539"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ga2f36aea6e94452e5e5e938547fb89d4c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ErrorStatus CRYP_AES_CTR </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>Mode</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>InitVectors</em>[16], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>Keysize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Input</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>Ilength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Output</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Encrypt and decrypt using AES in CTR Mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">Mode</td><td>encryption or decryption Mode. This parameter can be one of the following values: <ul>
<li>MODE_ENCRYPT: Encryption </li>
<li>MODE_DECRYPT: Decryption </li>
</ul>
</td></tr>
<tr><td class="paramname">InitVectors</td><td>Initialisation Vectors used for AES algorithm. </td></tr>
<tr><td class="paramname">Key</td><td>Key used for AES algorithm. </td></tr>
<tr><td class="paramname">Keysize</td><td>length of the Key, must be a 128, 192 or 256. </td></tr>
<tr><td class="paramname">Input</td><td>pointer to the Input buffer. </td></tr>
<tr><td class="paramname">Ilength</td><td>length of the Input buffer, must be a multiple of 16. </td></tr>
<tr><td class="paramname">Output</td><td>pointer to the returned buffer. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: Operation done</li>
<li>ERROR: Operation failed </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___c_r_y_p___group6_ga2f36aea6e94452e5e5e938547fb89d4c_cgraph.png" border="0" usemap="#group___c_r_y_p___group6_ga2f36aea6e94452e5e5e938547fb89d4c_cgraph" alt=""/></div>
<map name="group___c_r_y_p___group6_ga2f36aea6e94452e5e5e938547fb89d4c_cgraph" id="group___c_r_y_p___group6_ga2f36aea6e94452e5e5e938547fb89d4c_cgraph">
<area shape="rect" id="node2" href="group___c_r_y_p.html#gaeecd86b00d0d0137d97b06108789bcb2" title="Fills each CRYP_KeyInitStruct member with its default value. " alt="" coords="183,5,323,32"/><area shape="rect" id="node3" href="group___c_r_y_p.html#gad4baa3865415215cae07c9fbfa131cb9" title="Initializes the CRYP Keys according to the specified parameters in the CRYP_KeyInitStruct. " alt="" coords="200,56,305,83"/><area shape="rect" id="node4" href="group___c_r_y_p.html#ga7b72c458d95581ab0a36be3e017fcf02" title="Initializes the CRYP peripheral according to the specified parameters in the CRYP_InitStruct. " alt="" coords="211,107,294,133"/><area shape="rect" id="node5" href="group___c_r_y_p.html#ga133964b50a07db3a32864308f6355a8b" title="Initializes the CRYP Initialization Vectors(IV) according to the specified parameters in the CRYP_IVI..." alt="" coords="205,157,300,184"/><area shape="rect" id="node6" href="group___c_r_y_p.html#ga23ada9d9464e1362299d7612a1409a57" title="Flushes the IN and OUT FIFOs (that is read and write pointers of the FIFOs are reset) ..." alt="" coords="189,208,316,235"/><area shape="rect" id="node7" href="group___c_r_y_p.html#gad39ccd9b1f2e088e3a227d7a1c410d7c" title="Enables or disables the CRYP peripheral. " alt="" coords="207,259,299,285"/><area shape="rect" id="node8" href="group___c_r_y_p.html#gabe26186adf64660a4a573bd6a4368fee" title="Returns whether CRYP peripheral is enabled or disabled. " alt="" coords="177,309,328,336"/><area shape="rect" id="node9" href="group___c_r_y_p.html#ga16dc76244318d464357ee6ff208bf9a4" title="Writes data in the Data Input register (DIN). " alt="" coords="201,360,304,387"/><area shape="rect" id="node10" href="group___c_r_y_p.html#ga993d568b626a74b2973d4a6848a681f6" title="Checks whether the specified CRYP flag is set or not. " alt="" coords="178,411,327,437"/><area shape="rect" id="node11" href="group___c_r_y_p.html#gacbe5fcf4c7e4919192376fa615588b54" title="Returns the last data entered into the output FIFO. " alt="" coords="196,461,309,488"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ga79ff82ece0e9620dc86d6e57abe639e1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ErrorStatus CRYP_AES_ECB </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>Mode</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>Keysize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Input</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>Ilength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Output</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Encrypt and decrypt using AES in ECB Mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">Mode</td><td>encryption or decryption Mode. This parameter can be one of the following values: <ul>
<li>MODE_ENCRYPT: Encryption </li>
<li>MODE_DECRYPT: Decryption </li>
</ul>
</td></tr>
<tr><td class="paramname">Key</td><td>Key used for AES algorithm. </td></tr>
<tr><td class="paramname">Keysize</td><td>length of the Key, must be a 128, 192 or 256. </td></tr>
<tr><td class="paramname">Input</td><td>pointer to the Input buffer. </td></tr>
<tr><td class="paramname">Ilength</td><td>length of the Input buffer, must be a multiple of 16. </td></tr>
<tr><td class="paramname">Output</td><td>pointer to the returned buffer. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: Operation done</li>
<li>ERROR: Operation failed </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___c_r_y_p___group6_ga79ff82ece0e9620dc86d6e57abe639e1_cgraph.png" border="0" usemap="#group___c_r_y_p___group6_ga79ff82ece0e9620dc86d6e57abe639e1_cgraph" alt=""/></div>
<map name="group___c_r_y_p___group6_ga79ff82ece0e9620dc86d6e57abe639e1_cgraph" id="group___c_r_y_p___group6_ga79ff82ece0e9620dc86d6e57abe639e1_cgraph">
<area shape="rect" id="node2" href="group___c_r_y_p.html#gaeecd86b00d0d0137d97b06108789bcb2" title="Fills each CRYP_KeyInitStruct member with its default value. " alt="" coords="185,5,325,32"/><area shape="rect" id="node3" href="group___c_r_y_p.html#ga23ada9d9464e1362299d7612a1409a57" title="Flushes the IN and OUT FIFOs (that is read and write pointers of the FIFOs are reset) ..." alt="" coords="192,56,319,83"/><area shape="rect" id="node4" href="group___c_r_y_p.html#ga7b72c458d95581ab0a36be3e017fcf02" title="Initializes the CRYP peripheral according to the specified parameters in the CRYP_InitStruct. " alt="" coords="214,107,297,133"/><area shape="rect" id="node5" href="group___c_r_y_p.html#gad4baa3865415215cae07c9fbfa131cb9" title="Initializes the CRYP Keys according to the specified parameters in the CRYP_KeyInitStruct. " alt="" coords="203,157,308,184"/><area shape="rect" id="node6" href="group___c_r_y_p.html#gad39ccd9b1f2e088e3a227d7a1c410d7c" title="Enables or disables the CRYP peripheral. " alt="" coords="209,208,301,235"/><area shape="rect" id="node7" href="group___c_r_y_p.html#ga993d568b626a74b2973d4a6848a681f6" title="Checks whether the specified CRYP flag is set or not. " alt="" coords="181,259,330,285"/><area shape="rect" id="node8" href="group___c_r_y_p.html#gabe26186adf64660a4a573bd6a4368fee" title="Returns whether CRYP peripheral is enabled or disabled. " alt="" coords="180,309,331,336"/><area shape="rect" id="node9" href="group___c_r_y_p.html#ga16dc76244318d464357ee6ff208bf9a4" title="Writes data in the Data Input register (DIN). " alt="" coords="204,360,307,387"/><area shape="rect" id="node10" href="group___c_r_y_p.html#gacbe5fcf4c7e4919192376fa615588b54" title="Returns the last data entered into the output FIFO. " alt="" coords="199,411,312,437"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ga74b48d820c5c360eb303fc2fb78af055"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ErrorStatus CRYP_AES_GCM </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>Mode</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>InitVectors</em>[16], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>Keysize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Input</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>ILength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Header</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>HLength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>Output</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>AuthTAG</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Encrypt and decrypt using AES in GCM Mode. The GCM and CCM modes are available only on STM32F437x Devices. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">Mode</td><td>encryption or decryption Mode. This parameter can be one of the following values: <ul>
<li>MODE_ENCRYPT: Encryption </li>
<li>MODE_DECRYPT: Decryption </li>
</ul>
</td></tr>
<tr><td class="paramname">InitVectors</td><td>Initialisation Vectors used for AES algorithm. </td></tr>
<tr><td class="paramname">Key</td><td>Key used for AES algorithm. </td></tr>
<tr><td class="paramname">Keysize</td><td>length of the Key, must be a 128, 192 or 256. </td></tr>
<tr><td class="paramname">Input</td><td>pointer to the Input buffer. </td></tr>
<tr><td class="paramname">Ilength</td><td>length of the Input buffer in bytes, must be a multiple of 16. </td></tr>
<tr><td class="paramname">Header</td><td>pointer to the header buffer. </td></tr>
<tr><td class="paramname">Hlength</td><td>length of the header buffer in bytes, must be a multiple of 16. </td></tr>
<tr><td class="paramname">Output</td><td>pointer to the returned buffer. </td></tr>
<tr><td class="paramname">AuthTAG</td><td>pointer to the authentication TAG buffer. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: Operation done</li>
<li>ERROR: Operation failed </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___c_r_y_p___group6_ga74b48d820c5c360eb303fc2fb78af055_cgraph.png" border="0" usemap="#group___c_r_y_p___group6_ga74b48d820c5c360eb303fc2fb78af055_cgraph" alt=""/></div>
<map name="group___c_r_y_p___group6_ga74b48d820c5c360eb303fc2fb78af055_cgraph" id="group___c_r_y_p___group6_ga74b48d820c5c360eb303fc2fb78af055_cgraph">
<area shape="rect" id="node2" href="group___c_r_y_p.html#gaeecd86b00d0d0137d97b06108789bcb2" title="Fills each CRYP_KeyInitStruct member with its default value. " alt="" coords="188,5,328,32"/><area shape="rect" id="node3" href="group___c_r_y_p.html#ga23ada9d9464e1362299d7612a1409a57" title="Flushes the IN and OUT FIFOs (that is read and write pointers of the FIFOs are reset) ..." alt="" coords="195,56,321,83"/><area shape="rect" id="node4" href="group___c_r_y_p.html#gad4baa3865415215cae07c9fbfa131cb9" title="Initializes the CRYP Keys according to the specified parameters in the CRYP_KeyInitStruct. " alt="" coords="205,107,311,133"/><area shape="rect" id="node5" href="group___c_r_y_p.html#ga133964b50a07db3a32864308f6355a8b" title="Initializes the CRYP Initialization Vectors(IV) according to the specified parameters in the CRYP_IVI..." alt="" coords="211,157,305,184"/><area shape="rect" id="node6" href="group___c_r_y_p.html#ga7b72c458d95581ab0a36be3e017fcf02" title="Initializes the CRYP peripheral according to the specified parameters in the CRYP_InitStruct. " alt="" coords="217,208,299,235"/><area shape="rect" id="node7" href="group___c_r_y_p.html#ga4370106a2baf2b8e6cb360865050a027" title="Configures the AES&#45;CCM and AES&#45;GCM phases. " alt="" coords="189,259,327,285"/><area shape="rect" id="node8" href="group___c_r_y_p.html#gad39ccd9b1f2e088e3a227d7a1c410d7c" title="Enables or disables the CRYP peripheral. " alt="" coords="212,309,304,336"/><area shape="rect" id="node9" href="group___c_r_y_p.html#gabe26186adf64660a4a573bd6a4368fee" title="Returns whether CRYP peripheral is enabled or disabled. " alt="" coords="183,360,333,387"/><area shape="rect" id="node10" href="group___c_r_y_p.html#ga993d568b626a74b2973d4a6848a681f6" title="Checks whether the specified CRYP flag is set or not. " alt="" coords="183,411,333,437"/><area shape="rect" id="node11" href="group___c_r_y_p.html#ga16dc76244318d464357ee6ff208bf9a4" title="Writes data in the Data Input register (DIN). " alt="" coords="207,461,309,488"/><area shape="rect" id="node12" href="group___c_r_y_p.html#gacbe5fcf4c7e4919192376fa615588b54" title="Returns the last data entered into the output FIFO. " alt="" coords="201,512,315,539"/></map>
</div>
</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun May 10 2015 15:15:19 for discoverpixy by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>