<?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=Substitution%E2%80%93permutation_network</id>
	<title>Substitution–permutation network - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Substitution%E2%80%93permutation_network"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Substitution%E2%80%93permutation_network&amp;action=history"/>
	<updated>2026-05-15T09:43:39Z</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=Substitution%E2%80%93permutation_network&amp;diff=7003&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;'''SP-network''', or '''substitution–permutation network''' ('''SPN'''), is a series of linked mathematical operations used in block cipher algorithms such as Advanced...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Substitution%E2%80%93permutation_network&amp;diff=7003&amp;oldid=prev"/>
		<updated>2019-07-21T04:05:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;SP-network&amp;#039;&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;&amp;#039;substitution–permutation network&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;SPN&amp;#039;&amp;#039;&amp;#039;), is a series of linked mathematical operations used in &lt;a href=&quot;/index.php?title=Block_cipher&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Block cipher (page does not exist)&quot;&gt;block cipher&lt;/a&gt; algorithms such as Advanced...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''SP-network''', or '''substitution–permutation network''' ('''SPN'''), is a series of linked mathematical operations used in [[block cipher]] algorithms such as [[Advanced Encryption Standard|AES (Rijndael)]], [[3-Way]], [[Kuznyechik]], [[PRESENT (cipher)|PRESENT]], [[SAFER]], [[SHARK]], and [[Square (cipher)|Square]].&lt;br /&gt;
&lt;br /&gt;
Such a network takes a block of the [[plaintext]] and the [[key (cryptography)|key]] as inputs, and applies several alternating &amp;quot;rounds&amp;quot; or &amp;quot;layers&amp;quot; of [[Substitution box|substitution boxes (S-boxes)]] and [[Permutation box|permutation boxes (P-boxes)]] to produce the [[ciphertext]] block. The S-boxes and P-boxes transform of input [[bit]]s into output bits. It is common for these transformations to be operations that are efficient to perform in hardware, such as [[Exclusive disjunction|exclusive or]] (XOR) and [[bitwise rotation]]. The key is introduced in each round, usually in the form of &amp;quot;round keys&amp;quot; derived from it. (In some designs, the [[S-box]]es themselves depend on the key.)&lt;br /&gt;
&lt;br /&gt;
[[Decryption]] is done by simply reversing the process (using the inverses of the S-boxes and P-boxes and applying the round keys in reversed order).&lt;br /&gt;
&lt;br /&gt;
An '''S-box''' substitutes a small block of bits (the input of the S-box) by another block of bits (the output of the S-box). This substitution should be [[bijective|one-to-one]], to ensure invertibility (hence decryption). In particular, the length of the output should be the same as the length of the input (the picture on the right has S-boxes with 4 input and 4 output bits), which is different from S-boxes in general that could also change the length, as in [[Data Encryption Standard|DES (Data Encryption Standard)]], for example. An S-box is usually not simply a [[permutation]] of the bits. Rather, a good S-box will have the property that changing one input bit will change about half of the output bits (or an [[avalanche effect]]). It will also have the property that each output bit will depend on every input bit.&lt;br /&gt;
&lt;br /&gt;
A '''P-box''' is a [[permutation]] of all the bits: it takes the outputs of all the S-boxes of one round, permutes the bits, and feeds them into the S-boxes of the next round. A good P-box has the property that the output bits of any S-box are distributed to as many S-box inputs as possible.&lt;br /&gt;
&lt;br /&gt;
At each round, the '''round key''' (obtained from the [[key (cryptography)|key]] with some simple operations, for instance, using S-boxes and P-boxes) is combined using some group operation, typically [[XOR]].&lt;br /&gt;
&lt;br /&gt;
A single typical S-box or a single P-box alone does not have much cryptographic strength: an S-box could be thought of as a [[substitution cipher]], while a P-box could be thought of as a [[transposition cipher]]. However, a well-designed SP network with several alternating rounds of S- and P-boxes already satisfies '''Shannon's [[confusion and diffusion]] properties''':&lt;br /&gt;
&lt;br /&gt;
* The reason for '''diffusion''' is the following: If one changes one bit of the plaintext, then it is fed into an S-box, whose output will change at several bits, then all these changes are distributed by the P-box among several S-boxes, hence the outputs of all of these S-boxes are again changed at several bits, and so on. Doing several rounds, each bit changes several times back and forth, therefore, by the end, the ciphertext has changed completely, in a [[pseudorandom]] manner. In particular, for a randomly chosen input block, if one flips the ''i''-th bit, then the probability that the ''j''-th output bit will change is approximately a half, for any ''i'' and ''j'', which is the [[Strict Avalanche Criterion]]. Vice versa, if one changes one bit of the ciphertext, then attempts to decrypt it, the result is a message completely different from the original plaintext—SP ciphers are not easily [[malleability (cryptography)|malleable]].&lt;br /&gt;
* The reason for '''confusion''' is exactly the same as for diffusion: changing one bit of the key changes several of the round keys, and every change in every round key [[diffuse]]s over all the bits, changing the ciphertext in a very complex manner.&lt;br /&gt;
* Even if an attacker somehow obtains one plaintext corresponding to one ciphertext—a [[known-plaintext attack]], or worse, a [[chosen plaintext]] or [[chosen-ciphertext attack]]—the confusion and diffusion make it difficult for the attacker to recover the key.&lt;br /&gt;
&lt;br /&gt;
Although a [[Feistel network]] that uses S-boxes (such as [[Data Encryption Standard|DES]]) is quite similar to SP networks, there are some differences that make either this or that more applicable in certain situations. For a given amount of [[confusion and diffusion]], an SP network has more &amp;quot;inherent parallelism&amp;quot;&lt;br /&gt;
and so — given a CPU with a large number of [[execution unit]]s — can be computed faster than a Feistel network.&lt;br /&gt;
CPUs with few execution units — such as most [[smart card]]s — cannot take advantage of this inherent parallelism. Also SP ciphers require S-boxes to be invertible (to perform decryption); Feistel inner functions have no such restriction and can be constructed as [[one-way function]]s.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
[http://wikipedia.org/ http://wikipedia.org/]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cryptographic algorithms]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
==See Also on BitcoinWiki==&lt;br /&gt;
* [[Cloverdex]]&lt;br /&gt;
* [[MSGToken]]&lt;br /&gt;
* [[Erecoin]]&lt;br /&gt;
* [[Latium]]&lt;br /&gt;
* [[Alcedo]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>