<?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 - Same encryption using c++ symbian &amp;amp; C# .net - Comments</title>
 <link>http://www.newlc.com/topic-16990</link>
 <description>Comments for &quot;Same encryption using c++ symbian &amp; C# .net&quot;</description>
 <language>en</language>
<item>
 <title>Re: Same encryption using c++ symbian &amp; C# .net</title>
 <link>http://www.newlc.com/topic-16990#comment-36228</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Its not a &amp;quot;limitation&amp;quot;, its just how block cryptos work. They work on fixed size blocks.&lt;br /&gt;&lt;br /&gt;If the output from your encryption with the managed class, isn&amp;#039;t exactly 32 bytes, or a multiple of it, it means it has some more information in it.&lt;br /&gt;&lt;br /&gt;To encrypt more then one block you use some kind of &amp;quot;chaining&amp;quot; wich is to use some information from block 1 to encrypt block 2, some from block 2 to encrypt block 3 etc, this to counter &amp;quot;known plain text&amp;quot; attacks. There are different techniques to do this chaining, where I think CBC is the most common. (havn&amp;#039;t fiddled with crypto in a long time so I might be wrong though)&lt;br /&gt;&lt;br /&gt;You should read up some on encryption theory, or you are bound to make some small mistakes that breaks the security.&lt;/div&gt;</description>
 <pubDate>Thu, 07 Dec 2006 13:29:45 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36228 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Same encryption using c++ symbian &amp; C# .net</title>
 <link>http://www.newlc.com/topic-16990#comment-36227</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thank you very much, now i&amp;#039;m trying to use in .net the Rijndael class instead of RijndaelManaged.&lt;br /&gt;&lt;br /&gt;rbrunner:&lt;br /&gt;Encrypted data is encoded (Base64) just to avoid binary data format. Then i send it with a socket to a server over the internet.&lt;br /&gt;While in debug i can see the encrypted buffer and i can see that is differend from the same source text encrypted from the pc server program using the RijndaelManaged class of .net&lt;br /&gt;So, i don&amp;#039;t think the transport could be the reason....maybe....&lt;br /&gt;&lt;br /&gt;alh:&lt;br /&gt;I found on internet that 32 bytes is the real limit os AES encryption ... so it seems you are on the right way...&lt;br /&gt;RijdaelManaged class allow me to encrypt a longer string as surely manage the chaining of encrypted blocks...&lt;br /&gt;As i don&amp;#039;t know how this class separates encrypted blocks i think i will have to manage the chaining both in pc and symbian.&lt;br /&gt;Now i will try to use the simple Rijndael class on .net ... &lt;br /&gt;Later i will post the codes (pc and symbian) if i find a working solution.&lt;br /&gt;&lt;br /&gt;Thank you very much by now!&lt;/div&gt;</description>
 <pubDate>Thu, 07 Dec 2006 11:40:36 +0100</pubDate>
 <dc:creator>Brekko74</dc:creator>
 <guid isPermaLink="false">comment 36227 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Same encryption using c++ symbian &amp; C# .net</title>
 <link>http://www.newlc.com/topic-16990#comment-36226</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Rijndael is a block crypto, with 32 byte blocks, that is your &amp;quot;limitation&amp;quot;.&lt;br /&gt;&lt;br /&gt;Seems your example implementation only handles one block, and you have to do the chaining yourself.&lt;br /&gt;&lt;br /&gt;If you encrypt just one block with either pc or symbian version and same key and init vector, your result should be decryptable on both sides.&lt;br /&gt;&lt;br /&gt;My guess is that the &amp;quot;managed&amp;quot; version not outputs just the block but some extra header information or such.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 06 Dec 2006 12:40:48 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36226 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Same encryption using c++ symbian &amp; C# .net</title>
 <link>http://www.newlc.com/topic-16990#comment-36225</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;How do you transport the data? Is the data binary and the method of transport that you use safe for binary data? It might be that it is not, that one way (from PC to phone) works purely by chance, and the other way (from phone to PC) does not.&lt;br /&gt;&lt;br /&gt;Anyway, what&amp;#039;s your application? The application usually decides which kind of encryption (weak, strong, very strong) is needed.&lt;/div&gt;</description>
 <pubDate>Tue, 05 Dec 2006 19:45:57 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 36225 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Same encryption using c++ symbian &amp; C# .net</title>
 <link>http://www.newlc.com/topic-16990#comment-36224</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I have not studied the issue. But one thing came to my mind. Can it not be due to different endianness on PC and Symbian HW?&lt;/div&gt;</description>
 <pubDate>Tue, 05 Dec 2006 17:57:38 +0100</pubDate>
 <dc:creator>MOGi</dc:creator>
 <guid isPermaLink="false">comment 36224 at http://www.newlc.com</guid>
</item>
<item>
 <title>Same encryption using c++ symbian &amp; C# .net</title>
 <link>http://www.newlc.com/topic-16990</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-16990&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-16990#comments</comments>
 <category domain="http://www.newlc.com/forums/security-payment">DRM / Security / Payment</category>
 <pubDate>Tue, 05 Dec 2006 15:06:51 +0100</pubDate>
 <dc:creator>Brekko74</dc:creator>
 <guid isPermaLink="false">16563 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
