<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - AES Encryption - Comments</title>
 <link>http://www.newlc.com/AES-Encryption.html</link>
 <description>Comments for &quot;AES Encryption&quot;</description>
 <language>en</language>
<item>
 <title>Re: AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-43540</link>
 <description>&lt;p&gt;Hi everybody,&lt;br /&gt;
I&#039;m trying to use this implementation, but I have some problems... I open a file and then I read the data from it in a TBuf8 buffer but I can&#039;t convert this butter in an TUint8*. My code:&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(posizione != dimInput){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err = input.Read(posizione,letto);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; letto2 = letto.Ptr();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_be = aes::blockEncrypt(&amp;amp;pluto,&amp;amp;pippo, letto2, 1024, scritto2);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scritto.Copy(scritto2, 1024);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output.Write(scritto);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; posizione = posizione + letto.Size();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console-&amp;gt;Printf(_L(&amp;quot;%d\n&amp;quot;),posizione);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
where input and output are RFile object, scritto and letto TBuf8&lt;br /&gt;
Someone can help me?&lt;/p&gt;

&lt;p&gt;Thanks in advance &lt;br /&gt;
Giuseppe&lt;/p&gt;</description>
 <pubDate>Sun, 16 Dec 2007 22:43:08 +0100</pubDate>
 <dc:creator>giuseppe_ottelli</dc:creator>
 <guid isPermaLink="false">comment 43540 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-40837</link>
 <description>&lt;p&gt;Hi danielwang99&lt;/p&gt;

&lt;p&gt;my problem is same as your problem.i m also trying to decrypt my data on server side but its not working for me;while i m decrypting it in same class, without any error i did it.can u help me if u have the solution for this problem.&lt;/p&gt;

&lt;p&gt;Thanx in advance&lt;/p&gt;

&lt;p&gt;Best Regards&lt;/p&gt;

&lt;p&gt;Mobile_f&lt;/p&gt;</description>
 <pubDate>Mon, 20 Aug 2007 13:15:55 +0200</pubDate>
 <dc:creator>mobile_f</dc:creator>
 <guid isPermaLink="false">comment 40837 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-40583</link>
 <description>&lt;p&gt;&lt;br /&gt;
i encrypted data following the example  but failed to decrypt the encrypted data on the server side.&lt;/p&gt;

&lt;p&gt;my server side works with bouncycastle&#039;s AES implementation&lt;/p&gt;

&lt;p&gt;regards &lt;/p&gt;</description>
 <pubDate>Thu, 09 Aug 2007 03:55:51 +0200</pubDate>
 <dc:creator>danielwang99</dc:creator>
 <guid isPermaLink="false">comment 40583 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-40579</link>
 <description>&lt;p&gt;Is this a good AES implementation?&lt;/p&gt;

&lt;p&gt;Or there is a better Symbian one?&lt;/p&gt;</description>
 <pubDate>Wed, 08 Aug 2007 11:49:35 +0200</pubDate>
 <dc:creator>m00gl3</dc:creator>
 <guid isPermaLink="false">comment 40579 at http://www.newlc.com</guid>
</item>
<item>
 <title>AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-2252</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;The Rijndael example works fine for me when used as a standard application on e.g. a Nokia 5500.  However, when I try to access the code as a Python extension, I get the compiler error: &#039;declaration syntax error&#039; near&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;typedef TUint8 BYTE;&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;in the rijndael-api-symbianos.h file. Do anyone know why?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Thanks in advance!&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 28 Nov 2006 14:01:22 +0100</pubDate>
 <dc:creator>tmas79</dc:creator>
 <guid isPermaLink="false">comment 2252 at http://www.newlc.com</guid>
</item>
<item>
 <title>AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-2251</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Could someone explain:
Why in example keylen is given 128 bits = 16 bytes but key is constant of key material is 32 bytes?&lt;/div&gt;</description>
 <pubDate>Fri, 27 Oct 2006 09:02:31 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 2251 at http://www.newlc.com</guid>
</item>
<item>
 <title>AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-2250</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Hi.
I use The AES version for Symbian. If I encrypt or decrypt a message by means of the proposed API, after I don&#039;t succeed to decrypt or encrypt the message by means of another implementation. Could someone help me?
Thanks in advance.&lt;/div&gt;</description>
 <pubDate>Wed, 18 Oct 2006 14:30:43 +0200</pubDate>
 <dc:creator>liadalex</dc:creator>
 <guid isPermaLink="false">comment 2250 at http://www.newlc.com</guid>
</item>
<item>
 <title>AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-2249</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Can some one please post a example how to call these AES API&#039;s  from symbian OS c++ code. I am new to symbian c++. I would grately appreciate your help.&lt;/div&gt;</description>
 <pubDate>Mon, 14 Aug 2006 22:04:30 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 2249 at http://www.newlc.com</guid>
</item>
<item>
 <title>AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-2248</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;It looks like the internal block buffer is initialized with 0xCC. :-)
That&#039;s a problem with block ciphers in principle. You have to append some padding bytes to your string to create exactly string which length is a multiple of the block size. 
In case you are encrypting a string a simple solution would be to append some spaces. Please note that a arbitrary padding may introduce some security issues...&lt;/div&gt;</description>
 <pubDate>Tue, 09 May 2006 19:18:07 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 2248 at http://www.newlc.com</guid>
</item>
<item>
 <title>AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html#comment-2247</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hello Philipp,
I got a problem when I encrypt message less than blocklen: the decrypted message contains &quot;extra&quot; weird string.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;// Secret message (which fits less than one block)&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;_LIT8(KMySecret, &quot;Hello&quot;);  // 5 byte message&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;...&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;...&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;// decryptedText contains &quot;Hello&amp;#9568;&amp;#9568;&amp;#9568;&amp;#9568;&amp;#9568;&amp;#9568;&amp;#9568;&amp;#9568;&amp;#9568;&amp;#9568;&amp;#9568;&quot;&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;//(Hello+0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc)&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 09 May 2006 08:51:37 +0200</pubDate>
 <dc:creator>Halim</dc:creator>
 <guid isPermaLink="false">comment 2247 at http://www.newlc.com</guid>
</item>
<item>
 <title>AES Encryption</title>
 <link>http://www.newlc.com/AES-Encryption.html</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;The US National Institute of Standards and Technology selected the Rijndael block cipher as Advanced Encryption Standard (AES). Rijndael is free and a reference implementation is available. This port to Symbian OS is based on the reference implementation v2.2 provided by the IAIK Krypto Group AES Lounge.&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/AES-Encryption.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/AES-Encryption.html#comments</comments>
 <category domain="http://www.newlc.com/taxonomy/term/20">Security</category>
 <pubDate>Wed, 18 May 2005 09:49:49 +0200</pubDate>
 <dc:creator>philipphenkel</dc:creator>
 <guid isPermaLink="false">590 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
