<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Your Friendly Neighbourhood Infidel</title>
	<atom:link href="http://saju.net.in/blog/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://saju.net.in/blog</link>
	<description>on life, the universe and everything</description>
	<lastBuildDate>Sat, 14 Apr 2012 03:13:19 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Openssl AES encryption example by Saju</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=2#comment-10199</link>
		<dc:creator>Saju</dc:creator>
		<pubDate>Sat, 14 Apr 2012 03:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-10199</guid>
		<description>@someguy, C standard guarantees that unsigned int is atleast 16 bits wide. On a 16bit integer implementation the max value of unsigned int is 65536 which is greater than 54321 hence no truncation will happen.

Additionally, assuming that 54321 is &gt; unsigned int max on a non compliant system, the &quot;L&quot; suffix wont help because the compiler is being told to only allocated storage for &#039;unsigned int&#039; - truncation will occur in this non-compliant case - but if you have a non-compliant compiler, you are pretty much fubar.</description>
		<content:encoded><![CDATA[<p>@someguy, C standard guarantees that unsigned int is atleast 16 bits wide. On a 16bit integer implementation the max value of unsigned int is 65536 which is greater than 54321 hence no truncation will happen.</p>
<p>Additionally, assuming that 54321 is > unsigned int max on a non compliant system, the &#8220;L&#8221; suffix wont help because the compiler is being told to only allocated storage for &#8216;unsigned int&#8217; &#8211; truncation will occur in this non-compliant case &#8211; but if you have a non-compliant compiler, you are pretty much fubar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Openssl AES encryption example by someguy</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=1#comment-10198</link>
		<dc:creator>someguy</dc:creator>
		<pubDate>Sat, 14 Apr 2012 01:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-10198</guid>
		<description>Great post! thanks a lot :)

Just one note about the line :
&quot;unsigned int salt[] = {12345, 54321};&quot;
those number literals can be truncated by the compiler. Use the &quot;L&quot; suffix to fix it as in :
&quot;unsigned int salt[] = {12345L, 54321L};&quot;

It doesn&#039;t cause a problem in your program but I just wanted to point it out ;) cheers</description>
		<content:encoded><![CDATA[<p>Great post! thanks a lot :)</p>
<p>Just one note about the line :<br />
&#8220;unsigned int salt[] = {12345, 54321};&#8221;<br />
those number literals can be truncated by the compiler. Use the &#8220;L&#8221; suffix to fix it as in :<br />
&#8220;unsigned int salt[] = {12345L, 54321L};&#8221;</p>
<p>It doesn&#8217;t cause a problem in your program but I just wanted to point it out ;) cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Openssl AES encryption example by 239p8th</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=1#comment-10045</link>
		<dc:creator>239p8th</dc:creator>
		<pubDate>Sat, 17 Mar 2012 18:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-10045</guid>
		<description>For those with AES_BLOCK_SIZE errors:
The define has moved to openssl/aes.h in more recent versions, so just add #import  to your imports.</description>
		<content:encoded><![CDATA[<p>For those with AES_BLOCK_SIZE errors:<br />
The define has moved to openssl/aes.h in more recent versions, so just add #import  to your imports.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Openssl AES encryption example by newbie1234</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=1#comment-10036</link>
		<dc:creator>newbie1234</dc:creator>
		<pubDate>Thu, 15 Mar 2012 13:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-10036</guid>
		<description>I am using aes.h
and code is

unsigned char out[16],out1[16];
        unsigned char in[]=&quot;qwertyuiopasdfgh&quot;;
        AES_KEY key1;
        key1.rounds=256;
        AES_encrypt(in,out, &amp;key1);
        AES_decrypt(out,out1,&amp; key1);

I did not give any input to key1.rd_key.
When i am printing in and out1. Are not same. Is here any help.</description>
		<content:encoded><![CDATA[<p>I am using aes.h<br />
and code is</p>
<p>unsigned char out[16],out1[16];<br />
        unsigned char in[]=&#8221;qwertyuiopasdfgh&#8221;;<br />
        AES_KEY key1;<br />
        key1.rounds=256;<br />
        AES_encrypt(in,out, &amp;key1);<br />
        AES_decrypt(out,out1,&amp; key1);</p>
<p>I did not give any input to key1.rd_key.<br />
When i am printing in and out1. Are not same. Is here any help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Openssl AES encryption example by carlos angelus</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=1#comment-9990</link>
		<dc:creator>carlos angelus</dc:creator>
		<pubDate>Wed, 07 Mar 2012 14:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-9990</guid>
		<description>Saju thx for the example. I tried to modify the code to read aes256cbc coded and base64 converted cyphertext as input and write out the decoded text, created as below:

echo &quot;this is a test&quot;&#124; openssl enc -aes-256-cbc -a -salt -S 123456 -pass pass:mypass123
U2FsdGVkX1/BWCjmoDS864uoNI77IN69YsdAcvQ/QbU=

in your example I changed some parts as:
unsigned char *salt = &quot;123456&quot;
char *input = &quot;this is a test&quot;;
key_data = &quot;mypass123&quot;;

and first decoded base64 using this
http://www.openssl.org/docs/crypto/BIO_f_base64.html

but unfortunately I am not succesful :( I am not so good in crypto algorşthms though. Would you please show how can I decrypt aes_256_cbc + base64 encoded text?</description>
		<content:encoded><![CDATA[<p>Saju thx for the example. I tried to modify the code to read aes256cbc coded and base64 converted cyphertext as input and write out the decoded text, created as below:</p>
<p>echo &#8220;this is a test&#8221;| openssl enc -aes-256-cbc -a -salt -S 123456 -pass pass:mypass123<br />
U2FsdGVkX1/BWCjmoDS864uoNI77IN69YsdAcvQ/QbU=</p>
<p>in your example I changed some parts as:<br />
unsigned char *salt = &#8220;123456&#8243;<br />
char *input = &#8220;this is a test&#8221;;<br />
key_data = &#8220;mypass123&#8243;;</p>
<p>and first decoded base64 using this<br />
<a href="http://www.openssl.org/docs/crypto/BIO_f_base64.html" rel="nofollow">http://www.openssl.org/docs/crypto/BIO_f_base64.html</a></p>
<p>but unfortunately I am not succesful :( I am not so good in crypto algorşthms though. Would you please show how can I decrypt aes_256_cbc + base64 encoded text?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Openssl AES encryption example by newbie</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=1#comment-9931</link>
		<dc:creator>newbie</dc:creator>
		<pubDate>Thu, 23 Feb 2012 20:34:58 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-9931</guid>
		<description>What value do I use for **argv  i am constantly getting an key name unknown error</description>
		<content:encoded><![CDATA[<p>What value do I use for **argv  i am constantly getting an key name unknown error</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Openssl AES encryption example by jl</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=1#comment-9928</link>
		<dc:creator>jl</dc:creator>
		<pubDate>Thu, 23 Feb 2012 06:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-9928</guid>
		<description>Great job, Saju, thanks a lot!</description>
		<content:encoded><![CDATA[<p>Great job, Saju, thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Openssl AES encryption example by a grateful programmer</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=1#comment-9843</link>
		<dc:creator>a grateful programmer</dc:creator>
		<pubDate>Tue, 07 Feb 2012 02:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-9843</guid>
		<description>I AM VERY GRATEFUL FOR YOUR HELP!!! THANK YOU SO MUCH!</description>
		<content:encoded><![CDATA[<p>I AM VERY GRATEFUL FOR YOUR HELP!!! THANK YOU SO MUCH!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Openssl AES encryption example by Ricardo</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=1#comment-9706</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Tue, 17 Jan 2012 21:01:42 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-9706</guid>
		<description>Hi, Saju
If I save the encrypted data to a file, which command line of openssl could I use to decrypt it?</description>
		<content:encoded><![CDATA[<p>Hi, Saju<br />
If I save the encrypted data to a file, which command line of openssl could I use to decrypt it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Openssl AES encryption example by noel lynch</title>
		<link>http://saju.net.in/blog/?p=36&#038;cpage=1#comment-9643</link>
		<dc:creator>noel lynch</dc:creator>
		<pubDate>Fri, 06 Jan 2012 15:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://saju.net.in/blog/?p=36#comment-9643</guid>
		<description>great sample code, thanks!!!</description>
		<content:encoded><![CDATA[<p>great sample code, thanks!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

