<?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 on: RSA using BouncyCastle</title>
	<atom:link href="http://ox.no/posts/rsa-using-bouncycastle/feed" rel="self" type="application/rss+xml" />
	<link>http://ox.no/posts/rsa-using-bouncycastle</link>
	<description>Håvard Stranden&#039;s website</description>
	<lastBuildDate>Tue, 20 Jul 2010 18:33:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: John</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-835</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 20 Jul 2010 18:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-835</guid>
		<description>&lt;p&gt;Hi,
I am looking for an infrastructure like JCE in java so I can “install” encryption providers.
The one I am going to put in now is Bouncy Castle provider and use “PBEWITHMD5AND256BITAES-CBC-OPENSSL” but I want to be able to change the providers and algorithms just by configuration change. I have that in Java with JCE.
Is there something like that in C# and are there docs / examples?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,
I am looking for an infrastructure like JCE in java so I can “install” encryption providers.
The one I am going to put in now is Bouncy Castle provider and use “PBEWITHMD5AND256BITAES-CBC-OPENSSL” but I want to be able to change the providers and algorithms just by configuration change. I have that in Java with JCE.
Is there something like that in C# and are there docs / examples?</p>

<p>Thanks.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Sinisa</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-724</link>
		<dc:creator>Sinisa</dc:creator>
		<pubDate>Sun, 06 Jun 2010 23:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-724</guid>
		<description>&lt;p&gt;Nvm, got it. As chunkPosition gets enlarged by blockSize, it is enough to put&lt;/p&gt;

&lt;p&gt;int chunkSize = Math.Min(blockSize, data.Length –
      chunkPosition );&lt;/p&gt;

&lt;p&gt;instead of&lt;/p&gt;

&lt;p&gt;int chunkSize = Math.Min(blockSize, data.Length –
      (chunkPosition * blockSize));&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nvm, got it. As chunkPosition gets enlarged by blockSize, it is enough to put</p>

<p>int chunkSize = Math.Min(blockSize, data.Length –
      chunkPosition );</p>

<p>instead of</p>

<p>int chunkSize = Math.Min(blockSize, data.Length –
      (chunkPosition * blockSize));</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Sinisa</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-723</link>
		<dc:creator>Sinisa</dc:creator>
		<pubDate>Sun, 06 Jun 2010 23:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-723</guid>
		<description>&lt;p&gt;Brandon&#039;s got a point. Any help for that?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Brandon&#8217;s got a point. Any help for that?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Håvard</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-718</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Thu, 20 May 2010 10:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-718</guid>
		<description>&lt;p&gt;@Craig @zack The &lt;code&gt;AsymmetricKeyParameter&lt;/code&gt; itself is a base class for all asymmetric keys; it does not (and cannot) know what the actual key is. So, you need to construct a key parameter matching the key you want to use. If you&#039;re using an RSA private key, construct an &lt;code&gt;RSAKeyParameters&lt;/code&gt; instance. If you&#039;re using El Gamal, construct an &lt;code&gt;ElGamalKeyParameters&lt;/code&gt; instance, and so on. All these concrete key parameter classes inherit &lt;code&gt;AsymmetricKeyParameter&lt;/code&gt;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Craig @zack The <code>AsymmetricKeyParameter</code> itself is a base class for all asymmetric keys; it does not (and cannot) know what the actual key is. So, you need to construct a key parameter matching the key you want to use. If you&#8217;re using an RSA private key, construct an <code>RSAKeyParameters</code> instance. If you&#8217;re using El Gamal, construct an <code>ElGamalKeyParameters</code> instance, and so on. All these concrete key parameter classes inherit <code>AsymmetricKeyParameter</code>.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: zack</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-692</link>
		<dc:creator>zack</dc:creator>
		<pubDate>Tue, 27 Apr 2010 18:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-692</guid>
		<description>&lt;p&gt;I have the same question as Craig, what if you already have the private key and want to use it to decrypt. Trying to get this working with AWS :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have the same question as Craig, what if you already have the private key and want to use it to decrypt. Trying to get this working with AWS <img src='http://ox.no/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Martin</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-684</link>
		<dc:creator>Craig Martin</dc:creator>
		<pubDate>Tue, 02 Mar 2010 07:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-684</guid>
		<description>&lt;p&gt;Hi There,&lt;/p&gt;

&lt;p&gt;This doesn&#039;t exactly apply to this post, but I thought I would ask it here anyway as there is very little on using BouncyCastle in C# (as has been noted by previous posts here!).&lt;/p&gt;

&lt;p&gt;Is there anyway to create an AsymmetricKeyParameter using a previously generated private key? I am generating a key pair, storing the private key in an encrypted form and then when it is time to create a P12 for the end user to retrieve their certificate, I am decrypting the previously stored private key, but now have no idea how to actually make it into an AsymmetricKeyParameter so as to create the P12 using BouncyCastle.&lt;/p&gt;

&lt;p&gt;Is what I am trying to do even possible?&lt;/p&gt;

&lt;p&gt;Any help is greatly appreciated.&lt;/p&gt;

&lt;p&gt;Cheers,
Craig Martin&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi There,</p>

<p>This doesn&#8217;t exactly apply to this post, but I thought I would ask it here anyway as there is very little on using BouncyCastle in C# (as has been noted by previous posts here!).</p>

<p>Is there anyway to create an AsymmetricKeyParameter using a previously generated private key? I am generating a key pair, storing the private key in an encrypted form and then when it is time to create a P12 for the end user to retrieve their certificate, I am decrypting the previously stored private key, but now have no idea how to actually make it into an AsymmetricKeyParameter so as to create the P12 using BouncyCastle.</p>

<p>Is what I am trying to do even possible?</p>

<p>Any help is greatly appreciated.</p>

<p>Cheers,
Craig Martin</p>]]></content:encoded>
	</item>
	<item>
		<title>By: gary</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-656</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Mon, 25 Jan 2010 21:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-656</guid>
		<description>&lt;p&gt;Hello all I have a question concerning rsa key pairs. I am currently working for a client to simulate large volumes of encrypted traffic. the issue I am having with the keys is, I already have my private key given to me but its in a file with the certificate and its format is something like this &quot;56 H3 75 .....&quot; there are 10 sets like this. how would I use this to generate the private key or how would I import it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello all I have a question concerning rsa key pairs. I am currently working for a client to simulate large volumes of encrypted traffic. the issue I am having with the keys is, I already have my private key given to me but its in a file with the certificate and its format is something like this &#8220;56 H3 75 &#8230;..&#8221; there are 10 sets like this. how would I use this to generate the private key or how would I import it.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Håvard</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-653</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Fri, 15 Jan 2010 14:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-653</guid>
		<description>&lt;p&gt;Charles: Glad to help, thanks for sharing!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Charles: Glad to help, thanks for sharing!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-650</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Sun, 10 Jan 2010 18:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-650</guid>
		<description>&lt;p&gt;Sekhar,&lt;/p&gt;

&lt;p&gt;The above code is in c# although slightly modified it works great for the Java implementation of bouncycastle!&lt;/p&gt;

&lt;p&gt;The list you are reffering to is actualy a data-type in c#.  You can see examples of using a list here: http://dotnetperls.com/list&lt;/p&gt;

&lt;p&gt;Thanks so much for posting something on this Havard!  As other people have said; I could find no examples or documentation on this anywhere.  I am using the Java implementation, but your code example is more then enough to get started.&lt;/p&gt;

&lt;p&gt;Thanks again!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sekhar,</p>

<p>The above code is in c# although slightly modified it works great for the Java implementation of bouncycastle!</p>

<p>The list you are reffering to is actualy a data-type in c#.  You can see examples of using a list here: <a href="http://dotnetperls.com/list" rel="nofollow">http://dotnetperls.com/list</a></p>

<p>Thanks so much for posting something on this Havard!  As other people have said; I could find no examples or documentation on this anywhere.  I am using the Java implementation, but your code example is more then enough to get started.</p>

<p>Thanks again!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Sekhar</title>
		<link>http://ox.no/posts/rsa-using-bouncycastle/comment-page-1#comment-648</link>
		<dc:creator>Sekhar</dc:creator>
		<pubDate>Fri, 08 Jan 2010 11:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/?p=80#comment-648</guid>
		<description>&lt;p&gt;In Encryption List class are used by you. From jar this List is class is coming, this is an User Defined class or it is coming from any jar file, please mention those details.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>In Encryption List class are used by you. From jar this List is class is coming, this is an User Defined class or it is coming from any jar file, please mention those details.</p>]]></content:encoded>
	</item>
</channel>
</rss>
