AES cryption quellcode
<p>I need a small, like a two pieced, version of an <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard" rel="nofollow">AES</a> encryption. I googled and found <em><a href="http://www.lomont.org/Software/Misc/AES/AES.cpp" rel="nofollow">AES - Advanced Encryption Standard </a></em> (source code), but the code seems to be written for Windows and I need a multi-platform one.</p>

<p>Is there any other small version of an AES encrpytion known or a fix for the used functions which seem to be unknown on Linux?</p>

<p>My compiler says that those are unknown functions:</p>

<pre><code>./aes/AES.cpp:198:17: error: ‘_rotl’ was not declared in this scope
./aes/AES.cpp:608:20: error: ‘_rotr’ was not declared in this scope
</code></pre>

<p>I also got:</p>

<pre><code>./aes/AES.cpp:764:34: error: ‘memset’ was not declared in this scope
./aes/AES.cpp:770:36: error: ‘memcpy’ was not declared in this scope
</code></pre>

<p>As those should be known, considering those includes:</p>

<pre><code>#include "AES.hpp"
#include &lt;assert.h&gt;
#include &lt;stdio.h&gt;
#include &lt;cstdio&gt;
#include &lt;cstdlib&gt;
#include &lt;fstream&gt;
#include &lt;iostream&gt;
</code></pre>
