<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=S-box</id>
	<title>S-box - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=S-box"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=S-box&amp;action=history"/>
	<updated>2026-05-15T09:38:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://en.zaoniao.it/index.php?title=S-box&amp;diff=2168&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;__NOTOC__&lt;!-- has only 1 text section --&gt; In cryptography, an '''S-box''' ('''substitution-box''') is a basic component of symmetric key algorithms which performs subs...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=S-box&amp;diff=2168&amp;oldid=prev"/>
		<updated>2019-03-16T09:40:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__&amp;lt;!-- has only 1 text section --&amp;gt; In &lt;a href=&quot;/index.php?title=Cryptography&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Cryptography (page does not exist)&quot;&gt;cryptography&lt;/a&gt;, an &amp;#039;&amp;#039;&amp;#039;S-box&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;substitution-box&amp;#039;&amp;#039;&amp;#039;) is a basic component of &lt;a href=&quot;/index.php?title=Symmetric_key_algorithm&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Symmetric key algorithm (page does not exist)&quot;&gt;symmetric key algorithms&lt;/a&gt; which performs subs...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&amp;lt;!-- has only 1 text section --&amp;gt;&lt;br /&gt;
In [[cryptography]], an '''S-box''' ('''substitution-box''') is a basic component of [[symmetric key algorithm]]s which performs substitution. In [[block cipher]]s, they are typically used to obscure the relationship between the key and the [[ciphertext]] &amp;amp;mdash; [[Claude Shannon|Shannon's]] property of [[confusion and diffusion|confusion]].&lt;br /&gt;
&lt;br /&gt;
In general, an S-box takes some number of input [[bit]]s, ''m'', and transforms them into some number of output bits, ''n'', where ''n'' is not necessarily equal to ''m''. An ''m''&amp;amp;times;''n'' S-box can be implemented as a [[lookup table]] with 2&amp;lt;sup&amp;gt;''m''&amp;lt;/sup&amp;gt; words of ''n'' bits each. Fixed tables are normally used, as in the Data Encryption Standard (DES), but in some [[cipher]]s the tables are generated dynamically from the [[cryptographic key|key]] (e.g. the [[Blowfish (cipher)|Blowfish]] and the [[Twofish]] encryption algorithms).&lt;br /&gt;
&lt;br /&gt;
One good example of a fixed table is the S-box from DES (S&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;), mapping 6-bit input into a 4-bit output:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot; colspan=&amp;quot;2&amp;quot; | S&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; || colspan=&amp;quot;16&amp;quot; align=&amp;quot;center&amp;quot; | Middle 4 bits of input&lt;br /&gt;
|-&lt;br /&gt;
! 0000 !! 0001 !! 0010 !! 0011 !! 0100 !! 0101 !! 0110 !! 0111 !! 1000 !! 1001 !! 1010 !! 1011 !! 1100 !! style=&amp;quot;background:#ffdead;&amp;quot; | 1101 !! 1110 !! 1111&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;4&amp;quot; | Outer bits &lt;br /&gt;
! 00 &lt;br /&gt;
| 0010 || 1100 || 0100 || 0001 || 0111 || 1010 || 1011 || 0110 || 1000 || 0101 || 0011 || 1111 || 1101 || style=&amp;quot;background:#ffdead;&amp;quot; | 0000 || 1110 || 1001&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background:#deffad;&amp;quot; | 01&lt;br /&gt;
| style=&amp;quot;background:#deffad;&amp;quot; | 1110 || style=&amp;quot;background:#deffad;&amp;quot; | 1011 || style=&amp;quot;background:#deffad;&amp;quot; | 0010 || style=&amp;quot;background:#deffad;&amp;quot; | 1100 || style=&amp;quot;background:#deffad;&amp;quot; | 0100 || style=&amp;quot;background:#deffad;&amp;quot; | 0111 || style=&amp;quot;background:#deffad;&amp;quot; | 1101 || style=&amp;quot;background:#deffad;&amp;quot; | 0001 || style=&amp;quot;background:#deffad;&amp;quot; | 0101 || style=&amp;quot;background:#deffad;&amp;quot; | 0000 || style=&amp;quot;background:#deffad;&amp;quot; | 1111 || style=&amp;quot;background:#deffad;&amp;quot; | 1010 || style=&amp;quot;background:#deffad;&amp;quot; | 0011 || style=&amp;quot;background:#fefe2d;&amp;quot; | 1001 || style=&amp;quot;background:#deffad;&amp;quot; | 1000 || style=&amp;quot;background:#deffad;&amp;quot; | 0110&lt;br /&gt;
|-&lt;br /&gt;
! 10&lt;br /&gt;
| 0100 || 0010 || 0001 || 1011 || 1010 || 1101 || 0111 || 1000 || 1111 || 1001 || 1100 || 0101 || 0110 || style=&amp;quot;background:#ffdead;&amp;quot; | 0011 || 0000 || 1110&lt;br /&gt;
|-&lt;br /&gt;
! 11&lt;br /&gt;
| 1011 || 1000 || 1100 || 0111 || 0001 || 1110 || 0010 || 1101 || 0110 || 1111 || 0000 || 1001 || 1010 || style=&amp;quot;background:#ffdead;&amp;quot; | 0100 || 0101 || 0011&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Given a 6-bit input, the 4-bit output is found by selecting the row using the outer two bits (the first and last bits), and the column using the inner four bits. For example, an input &amp;quot;'''0'''1101'''1'''&amp;quot; has outer bits &amp;quot;'''01'''&amp;quot; and inner bits &amp;quot;1101&amp;quot;; the corresponding output would be &amp;quot;1001&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The 8 S-boxes of DES were the subject of intense study for many years out of a concern that a ''[[Backdoor (computing)|backdoor]]'' &amp;amp;mdash; a [[cryptanalysis|vulnerability]] known only to its designers &amp;amp;mdash; might have been planted in the cipher. The S-box design criteria were eventually published (in ) after the public rediscovery of [[differential cryptanalysis]], showing that they had been carefully tuned to increase resistance against this specific attack. Biham and Shamir found that even small modifications to an S-box could significantly weaken DES.&lt;br /&gt;
&lt;br /&gt;
There has been a great deal of research into the design of good S-boxes, and much more is understood about their use in block ciphers than when DES was released.&lt;br /&gt;
&lt;br /&gt;
Any S-box where each output bit is produced by a [[bent function]] of the input bits, and where any linear combination of the output bits is also a bent function of the input bits, is a '''perfect S-box'''.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&lt;br /&gt;
[http://wikipedia.org/ http://wikipedia.org/]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cryptography]]&lt;br /&gt;
[[Category:Cryptographic algorithms]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>