You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
19 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SAME54P20A Test Project: /storage/Shared/Documents/Projects/ePenguin/ePenguin-Software-Framework/arch/arm/SAME54/SAME54A/mcu/inc/instance/aes.h Source File</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>
<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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SAME54P20A Test Project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_ea9599923402ca8ab47fc3e495999dea.html">arch</a></li><li class="navelem"><a class="el" href="dir_9e929c73feaf15d3695ce4c76b483065.html">arm</a></li><li class="navelem"><a class="el" href="dir_58955c0f35a9c3d48181d2be53994c7b.html">SAME54</a></li><li class="navelem"><a class="el" href="dir_09e97e512ca7d4e6cd359f1c5497eeba.html">SAME54A</a></li><li class="navelem"><a class="el" href="dir_4b38d63e5c584a4d6c9001c789e1829f.html">mcu</a></li><li class="navelem"><a class="el" href="dir_d4fc57b996dc082ef023092a5b7d90fc.html">inc</a></li><li class="navelem"><a class="el" href="dir_92b117bae75cf16a05ca7611db29e9c7.html">instance</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">aes.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="instance_2aes_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#ifndef _SAME54_AES_INSTANCE_</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#define _SAME54_AES_INSTANCE_</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">/* ========== Register definition for AES peripheral ========== */</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#define REG_AES_CTRLA (0x42002400) </span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#define REG_AES_CTRLB (0x42002404) </span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#define REG_AES_INTENCLR (0x42002405) </span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#define REG_AES_INTENSET (0x42002406) </span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#define REG_AES_INTFLAG (0x42002407) </span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#define REG_AES_DATABUFPTR (0x42002408) </span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#define REG_AES_DBGCTRL (0x42002409) </span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD0 (0x4200240C) </span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD1 (0x42002410) </span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD2 (0x42002414) </span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD3 (0x42002418) </span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD4 (0x4200241C) </span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD5 (0x42002420) </span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD6 (0x42002424) </span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD7 (0x42002428) </span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor">#define REG_AES_INDATA (0x42002438) </span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">#define REG_AES_INTVECTV0 (0x4200243C) </span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="preprocessor">#define REG_AES_INTVECTV1 (0x42002440) </span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor">#define REG_AES_INTVECTV2 (0x42002444) </span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#define REG_AES_INTVECTV3 (0x42002448) </span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="preprocessor">#define REG_AES_HASHKEY0 (0x4200245C) </span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor">#define REG_AES_HASHKEY1 (0x42002460) </span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">#define REG_AES_HASHKEY2 (0x42002464) </span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="preprocessor">#define REG_AES_HASHKEY3 (0x42002468) </span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="preprocessor">#define REG_AES_GHASH0 (0x4200246C) </span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="preprocessor">#define REG_AES_GHASH1 (0x42002470) </span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="preprocessor">#define REG_AES_GHASH2 (0x42002474) </span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="preprocessor">#define REG_AES_GHASH3 (0x42002478) </span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="preprocessor">#define REG_AES_CIPLEN (0x42002480) </span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="preprocessor">#define REG_AES_RANDSEED (0x42002484) </span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a3ed4eecf10a70e145fa8ce373f8fec14"> 66</a></span>&#160;<span class="preprocessor">#define REG_AES_CTRLA (*(RwReg *)0x42002400UL) </span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#ae2cc6ecaf34c1c16b747b541cd319188"> 67</a></span>&#160;<span class="preprocessor">#define REG_AES_CTRLB (*(RwReg8 *)0x42002404UL) </span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a313203c1c4d5339951f33a889ab703d5"> 68</a></span>&#160;<span class="preprocessor">#define REG_AES_INTENCLR (*(RwReg8 *)0x42002405UL) </span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a647be35398cb2aa44ca9ef9655dd0d9a"> 69</a></span>&#160;<span class="preprocessor">#define REG_AES_INTENSET (*(RwReg8 *)0x42002406UL) </span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a5046f0a8fbe54cfd2d5ef4f562e6ec4a"> 70</a></span>&#160;<span class="preprocessor">#define REG_AES_INTFLAG (*(RwReg8 *)0x42002407UL) </span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a98ddfc3451740f4d7e1a6780d97c462d"> 71</a></span>&#160;<span class="preprocessor">#define REG_AES_DATABUFPTR (*(RwReg8 *)0x42002408UL) </span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#ac0d51f53da5d2108ca5e269355dc628d"> 72</a></span>&#160;<span class="preprocessor">#define REG_AES_DBGCTRL (*(RwReg8 *)0x42002409UL) </span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#af1137448dd30005bbcfbbb6c17760767"> 73</a></span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD0 (*(WoReg *)0x4200240CUL) </span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a20e10c318cad72883724fe74bff20fdf"> 74</a></span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD1 (*(WoReg *)0x42002410UL) </span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#ab05ef8f76a38c8e064aae44032ab3869"> 75</a></span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD2 (*(WoReg *)0x42002414UL) </span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#ab7fba0199941427296da612727139ce5"> 76</a></span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD3 (*(WoReg *)0x42002418UL) </span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#aa4137937391bbe177cb279f6641c6e15"> 77</a></span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD4 (*(WoReg *)0x4200241CUL) </span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#adf6d5e6c589dfb9e7b91f1c4a18e3773"> 78</a></span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD5 (*(WoReg *)0x42002420UL) </span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#aaaff7ba81a78e3fec2a7cd5674c8895b"> 79</a></span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD6 (*(WoReg *)0x42002424UL) </span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a49df8699946011b42d58d580d62434a2"> 80</a></span>&#160;<span class="preprocessor">#define REG_AES_KEYWORD7 (*(WoReg *)0x42002428UL) </span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a9729c92d71ed56eb4f00056405a4a137"> 81</a></span>&#160;<span class="preprocessor">#define REG_AES_INDATA (*(RwReg *)0x42002438UL) </span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a5d7833a25c11279be859f7babb68995d"> 82</a></span>&#160;<span class="preprocessor">#define REG_AES_INTVECTV0 (*(WoReg *)0x4200243CUL) </span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#ab5d852b0abc5f444e4421a2d584298e0"> 83</a></span>&#160;<span class="preprocessor">#define REG_AES_INTVECTV1 (*(WoReg *)0x42002440UL) </span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a92bf3fbf81f07852383c76bf7e589cdc"> 84</a></span>&#160;<span class="preprocessor">#define REG_AES_INTVECTV2 (*(WoReg *)0x42002444UL) </span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a3dee3929d085deb2618143a41257f1f9"> 85</a></span>&#160;<span class="preprocessor">#define REG_AES_INTVECTV3 (*(WoReg *)0x42002448UL) </span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a8fe2b55ce550c9d574b7339b02920aaf"> 86</a></span>&#160;<span class="preprocessor">#define REG_AES_HASHKEY0 (*(RwReg *)0x4200245CUL) </span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#abdedb94d43e5d8a6a2e59aca51ead33a"> 87</a></span>&#160;<span class="preprocessor">#define REG_AES_HASHKEY1 (*(RwReg *)0x42002460UL) </span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a857482971fac9a6b6adffe57c6e2fa68"> 88</a></span>&#160;<span class="preprocessor">#define REG_AES_HASHKEY2 (*(RwReg *)0x42002464UL) </span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#abe078f43190321842d8d62157a905954"> 89</a></span>&#160;<span class="preprocessor">#define REG_AES_HASHKEY3 (*(RwReg *)0x42002468UL) </span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#ac857ae68e407e8e663e342d1f1a4ae61"> 90</a></span>&#160;<span class="preprocessor">#define REG_AES_GHASH0 (*(RwReg *)0x4200246CUL) </span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a370dae77fab435b870e3e1be6596b798"> 91</a></span>&#160;<span class="preprocessor">#define REG_AES_GHASH1 (*(RwReg *)0x42002470UL) </span></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a04ad4f5dddf073a7a5fba34a750693a2"> 92</a></span>&#160;<span class="preprocessor">#define REG_AES_GHASH2 (*(RwReg *)0x42002474UL) </span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a71b3143c4b3485db53f1957cdcdd36be"> 93</a></span>&#160;<span class="preprocessor">#define REG_AES_GHASH3 (*(RwReg *)0x42002478UL) </span></div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#a4abd62cb82f93ef4626cb5842ffc421d"> 94</a></span>&#160;<span class="preprocessor">#define REG_AES_CIPLEN (*(RwReg *)0x42002480UL) </span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="instance_2aes_8h.html#aa3cca93a04a2d9c953de6ab03216809b"> 95</a></span>&#160;<span class="preprocessor">#define REG_AES_RANDSEED (*(RwReg *)0x42002484UL) </span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="comment">/* ========== Instance parameters for AES peripheral ========== */</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="preprocessor">#define AES_DMAC_ID_RD 82 // DMA DATA Read trigger</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="preprocessor">#define AES_DMAC_ID_WR 81 // DMA DATA Write trigger</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="preprocessor">#define AES_FOUR_BYTE_OPERATION 1 // Byte Operation</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;<span class="preprocessor">#define AES_GCM 1 // GCM</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;<span class="preprocessor">#define AES_KEYLEN 2 // Key Length</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _SAME54_AES_INSTANCE_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>