<?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: Understanding the Montgomery reduction algorithm</title>
	<atom:link href="http://alicebob.cryptoland.net/understanding-the-montgomery-reduction-algorithm/feed/" rel="self" type="application/rss+xml" />
	<link>http://alicebob.cryptoland.net/understanding-the-montgomery-reduction-algorithm/</link>
	<description></description>
	<lastBuildDate>Fri, 06 Jan 2012 10:22:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Conrado</title>
		<link>http://alicebob.cryptoland.net/understanding-the-montgomery-reduction-algorithm/#comment-320</link>
		<dc:creator>Conrado</dc:creator>
		<pubDate>Fri, 06 Jan 2012 10:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://alicebob.cryptoland.net/?p=220#comment-320</guid>
		<description>Oops. Thanks!</description>
		<content:encoded><![CDATA[<p>Oops. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://alicebob.cryptoland.net/understanding-the-montgomery-reduction-algorithm/#comment-319</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 06 Jan 2012 08:48:47 +0000</pubDate>
		<guid isPermaLink="false">http://alicebob.cryptoland.net/?p=220#comment-319</guid>
		<description>x * p[0] mod B = 1 
 not  x * p[0] mod B = 0.</description>
		<content:encoded><![CDATA[<p>x * p[0] mod B = 1<br />
 not  x * p[0] mod B = 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conrado</title>
		<link>http://alicebob.cryptoland.net/understanding-the-montgomery-reduction-algorithm/#comment-318</link>
		<dc:creator>Conrado</dc:creator>
		<pubDate>Tue, 03 Jan 2012 01:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://alicebob.cryptoland.net/?p=220#comment-318</guid>
		<description>Sure! I am assuming that you are storing your numbers in byte vectors, therefore p[0] is the lower byte of the prime modulus. Then, 1/p[0] mod B is the inverse, modulo B, of p[0]; i.e. the number x such that x * p[0] mod B = 1. In order to compute it, you can use the &lt;a href=&quot;http://alicebob.cryptoland.net/understanding-the-extended-euclidian-algorithm/&quot; rel=&quot;nofollow&quot;&gt;extended Euclidean algorithm&lt;/a&gt;; but in your case you can simply compute x * p[0] mod B for all bytes x until the result is one.</description>
		<content:encoded><![CDATA[<p>Sure! I am assuming that you are storing your numbers in byte vectors, therefore p[0] is the lower byte of the prime modulus. Then, 1/p[0] mod B is the inverse, modulo B, of p[0]; i.e. the number x such that x * p[0] mod B = 1. In order to compute it, you can use the <a href="http://alicebob.cryptoland.net/understanding-the-extended-euclidian-algorithm/" rel="nofollow">extended Euclidean algorithm</a>; but in your case you can simply compute x * p[0] mod B for all bytes x until the result is one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://alicebob.cryptoland.net/understanding-the-montgomery-reduction-algorithm/#comment-317</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Mon, 02 Jan 2012 23:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://alicebob.cryptoland.net/?p=220#comment-317</guid>
		<description>Can you go more in depth on &quot;the magic number&quot; section? I&#039;m a little confused on how to calculate -(1/p[0]) mod B. I&#039;ve got a little toy implementation that uses B=256.</description>
		<content:encoded><![CDATA[<p>Can you go more in depth on &#8220;the magic number&#8221; section? I&#8217;m a little confused on how to calculate -(1/p[0]) mod B. I&#8217;ve got a little toy implementation that uses B=256.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

