<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Mod_n_cryptanalysis</id>
	<title>Mod n cryptanalysis - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Mod_n_cryptanalysis"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Mod_n_cryptanalysis&amp;action=history"/>
	<updated>2026-05-04T22:08:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Mod_n_cryptanalysis&amp;diff=420520&amp;oldid=prev</id>
		<title>213.184.17.126: {{Mvar}}</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Mod_n_cryptanalysis&amp;diff=420520&amp;oldid=prev"/>
		<updated>2024-12-19T17:18:47Z</updated>

		<summary type="html">&lt;p&gt;{{&lt;a href=&quot;/wiki143/index.php?title=Template:Mvar&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Template:Mvar (page does not exist)&quot;&gt;Mvar&lt;/a&gt;}}&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Mod {{Mvar|n}} cryptanalysis}}&lt;br /&gt;
{{Short description|Attack applicable to block and stream ciphers}}&lt;br /&gt;
{{no footnotes|date=August 2017}}&lt;br /&gt;
In [[cryptography]], &amp;#039;&amp;#039;&amp;#039;mod {{Mvar|n}} cryptanalysis&amp;#039;&amp;#039;&amp;#039; is an [[cryptanalysis|attack]] applicable to [[block cipher|block]] and [[stream cipher]]s. It is a form of [[partitioning cryptanalysis]] that exploits unevenness in how the [[cipher]] operates over [[equivalence class]]es (congruence classes) [[modular arithmetic|modulo {{Mvar|n}}]]. The method was first suggested in 1999 by [[John Kelsey (cryptanalyst)|John Kelsey]], [[Bruce Schneier]], and [[David A. Wagner|David Wagner]] and applied to RC5P (a variant of [[RC5]]) and [[M6 (cipher)|M6]] (a family of block ciphers used in the [[FireWire]] standard). These attacks used the properties of binary addition and bit rotation modulo a [[Fermat prime]].&lt;br /&gt;
&lt;br /&gt;
==Mod 3 analysis of RC5P==&lt;br /&gt;
For RC5P, analysis was conducted modulo 3. It was observed that the operations in the cipher (rotation and addition, both on 32-bit words) were somewhat biased over congruence classes mod 3. To illustrate the approach, consider left rotation by a single bit:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;X \lll 1=\left\{\begin{matrix} 2X, &amp;amp; \mbox{if } X &amp;lt; 2^{31} \\ 2X + 1 - 2^{32}, &amp;amp; \mbox{if } X \geq 2^{31}\end{matrix}\right.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, because&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;2^{32} \equiv 1\pmod 3,\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it follows that&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;X \lll 1 \equiv 2X\pmod 3.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus left rotation by a single bit has a simple description modulo 3. Analysis of other operations (data dependent rotation and modular addition) reveals similar, notable biases. Although there are some theoretical problems analysing the operations in combination, the bias can be detected experimentally for the entire cipher. In (Kelsey et al., 1999), experiments were conducted up to seven rounds, and based on this they conjecture that as many as 19 or 20 rounds of RC5P can be [[distinguishing attack|distinguished from random]] using this attack. There is also a corresponding method for recovering the secret [[key (cryptography)|key]].&lt;br /&gt;
&lt;br /&gt;
Against M6 there are attacks mod 5 and mod 257 that are even more effective.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* {{cite conference&lt;br /&gt;
    | author = [[John Kelsey (cryptanalyst)|John Kelsey]], [[Bruce Schneier]], [[David A. Wagner|David Wagner]]&lt;br /&gt;
    | title = Mod n Cryptanalysis, with Applications Against RC5P and M6.&lt;br /&gt;
    | conference = [[Fast Software Encryption]], Sixth International Workshop Proceedings&lt;br /&gt;
    | pages = 139&amp;amp;ndash;155&lt;br /&gt;
    | publisher = [[Springer-Verlag]]&lt;br /&gt;
    | date = March 1999&lt;br /&gt;
    | location = [[Rome]]&lt;br /&gt;
    | url = http://www.schneier.com/paper-mod3.html&lt;br /&gt;
    | format = [[PDF]]/[[PostScript]]&lt;br /&gt;
    | access-date = 2007-02-12 }}&lt;br /&gt;
* {{cite journal&lt;br /&gt;
    | author = [[Vincent Rijmen]]&lt;br /&gt;
    | title = &amp;quot;mod n&amp;quot; Cryptanalysis of Rabbit&lt;br /&gt;
    | version = [[White paper]], Version 1.0&lt;br /&gt;
    | publisher = [[Cryptico]]&lt;br /&gt;
    | date = 2003-12-01&lt;br /&gt;
    | url = http://www.cryptico.com/Files/filer/wp_modn_analysis.pdf&lt;br /&gt;
    | access-date = 2007-02-12 }}&lt;br /&gt;
* {{cite journal&lt;br /&gt;
    |author1=Toshio Tokita |author2=Tsutomu Matsumoto | title = On Applicability of Differential Cryptanalysis, Linear Cryptanalysis and Mod n Cryptanalysis to an Encryption Algorithm [[M8 (cipher)|M8]] (ISO9979-20)&lt;br /&gt;
    | journal = Ipsj Journal&lt;br /&gt;
    | volume = 42&lt;br /&gt;
    | issue = 8 }}&lt;br /&gt;
&lt;br /&gt;
{{Cryptography navbox | block}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Cryptographic attacks]]&lt;br /&gt;
[[Category:Modular arithmetic]]&lt;/div&gt;</summary>
		<author><name>213.184.17.126</name></author>
	</entry>
</feed>