29
votes
Accepted
How to check whether the permutation is random or not
There are at most $n \cdot (n - 1)$ permutations of $\mathbb Z/n\mathbb Z$ of the form $x \mapsto ax + b$: if $n$ is prime, there are $n - 1$ choices for $a$ and $n$ choices for $b$ under which this ...
22
votes
Why is the permutation in AES (and other ciphers) not random or key-dependent?
You have clarified the question as asking about whether replacing ShiftRows with a random byte permutation would strengthen AES against differential attacks. It would not.
ShiftRows and MixColumns ...
18
votes
Accepted
Are encryption algorithms with fixed-point free permutations inherently flawed?
Are all encryption algorithms with fixed-point free permutations inherently flawed?
Yes - when fixed points, or the lack of them, is knowable and detectable.
This is a violation of multiple ...
16
votes
Are encryption algorithms with fixed-point free permutations inherently flawed?
Are all encryption algorithms with fixed-point free permutations inherently flawed?
No, they are not inherently flawed.
Consider the following cipher: Let $k_0$ be a key for AES-256, and let $k_1$...
10
votes
Why is the permutation in AES (and other ciphers) not random or key-dependent?
I assume that you mean the S-box. The answer is NO! Randomly chosen S-boxes are not good choices for differential and linear cryptanalysis. When Biham and Shamir presented differential attacks on DES, ...
9
votes
Accepted
Why not use a random permutation as a block cipher?
The issue is the lack of a compact representation. Assume you wanted to specify a 128-bit block cipher this way. A naive representation of a permutation on such blocks would consist of a sequence of $...
8
votes
Why is AES not a Feistel cipher?
The simple answer is "Because its an SPN cipher".
What is difference between Feistel and SPN?
SPN operates on whole data in one round, where as Feistel divides data into N parts where N>=2 , then ...
8
votes
Accepted
Proving RSA is a permutation
First let's clarify notations. $f(x)=x^e \pmod N$ is non-standard, hesitating between
$f(x)\equiv x^e\pmod N$ , meaning $N$ divides $x^e-f(x)$
$f(x)=x^e\bmod N$ , additionally specifying that $0\le ...
8
votes
Accepted
Parity attack on block cipher
When dealing with a block cipher of large block size, the text appearing as a quote in the question
Most modern block ciphers have a 128-bit block size, but they operate on 32-bit words. They build ...
7
votes
Accepted
When all shares of a secret are given to adversary as a permuted matrix
Let us first consider the problem without involving Shamir secret-sharing
at all. Suppose that $n = 140$ and that the secret $\sigma$ is a 140-byte Twitter message. The space is thus restricted ...
7
votes
Accepted
Periodic One Way Function
Security is clearly broken if there is a polynomial-length period with non-negligible probability (where by this I mean if a random point falls in a cycle with a poly-length period with non-negligible ...
7
votes
Accepted
Relationship between existence of OWFs and OWPs
Short answer: "No".
The standard way to establish a statement of the form if a primitive $B$ exists then another primitive $A$ also exists is through a black-box reduction. This involves two steps:
...
7
votes
Are encryption algorithms with fixed-point free permutations inherently flawed?
Block ciphers operators from $\{0,1\}^n \to \{0,1\}^n$. Each key selects one permutation among all possible permutations $n!$ and this is very small one if you compare $2^{128}$ to $128^{128}$
For ...
7
votes
Randomness Testing
There is no such thing as randomness of a sequence (or of a permutation, or of a string, etc.). There is only randomness of a process for choosing sequences (permutations, strings, etc.), which is ...
7
votes
Accepted
How strong is XooDoo vs AES?
Gimli is an unkeyed permutation, mapping a 384-bit input to a 384-bit output, $\{0,1\}^{384} \rightarrow \{0,1\}^{384}$. It is not a cipher by itself as you can reverse the output if you have it in ...
7
votes
Accepted
Are any block ciphers provably free of equivalent keys?
Yes, some block ciphers provably have no equivalent keys.
For a start, it's very easy to exhibit such a block cipher, by restricting the key and message spaces to something enumerable. Granted, that ...
7
votes
Accepted
Does there exist a universal one-way permutation?
To the best of my knowledge, this is unknown. That is, Levin's construction is a one-way function but most certainly not a one-way permutation. I don't see any way in which it can be modified to make ...
6
votes
Can we exchange the permutation of a sponge construction?
The permutation should be as close to a random permutation as possible. This is essentially a block-cipher with a fixed key.
A random permutation with given width $b$ is a permutation drawn ...
6
votes
Accepted
Can we exchange the permutation of a sponge construction?
The security of the sponge construction rely on two parts:
the size of the capacity.
and the strength of the permutation used in the construction.
This permutation is expected to have at least the ...
6
votes
Shannon confusion and diffusion concept
I find the terms "confusion" and "diffusion" to be slightly nebulous and can lead to over-simplifications.
Confusion
For example, saying that "substitution" is responsible for "confusion" is not ...
6
votes
Creating single-cycle permutations
The obvious way to construct such a pseudorandom single-cycle permutation is to take a pseudorandom permutation $P$ (which need not be single-cycle), a simple fixed single-cycle permutation $Inc$ (e.g....
6
votes
DES: how does Richard Outerbridge's Initial Permutation operate?
By definition, applying the initial Permutation of DES is shuffling bits per
...
6
votes
modified substitution permutation networks
Your construction is completely insecure: a single known plaintext / ciphertext block pair is sufficient to decrypt all blocks encrypted with the same key.
Specifically, let me write your block ...
6
votes
How to check whether the permutation is random or not
This precise issue recently arose in light of suspicious patterns in the S-box of a Russian cipher Kuznyechik. See:
Xavier Bonnetain and Léo Perrin and Shizhu Tian: Anomalies and Vector Space ...
6
votes
Accepted
Why I can't permutate an email and get away with it?
I can understand why a simple substitution cipher can be broken easily due to English letter frequencies can be used and even English diagrams like th can be used, ...
6
votes
Why I can't permutate an email and get away with it?
It's worth mentioning that permuting things can still leak a lot of information. For example, imagine you see an email with some (small) number of numerals (say 3 or 4), and a symbol such as ...
5
votes
What is the importance of $f_k$ in a feistel network being a permutation
I assume that you are referring to the round function. This is false. The whole advantage of a Feistel network is that $f_k$ does not need to be a permutation. Indeed in DES, it is not a permutation. ...
5
votes
Pseudo-random permutation of a range
The problem is small enough that the desired PRP can be implemented as a small array of 16 values initialized using the Fisher-Yates shuffle, with a pseudo-random generator deciding the indexes of the ...
5
votes
Are encryption algorithms with fixed-point free permutations inherently flawed?
There are three nice answers here, each supported with well thought out arguments. It seems to me that not only is it difficult to distinguish between fixed point free and non fixed point free ...
4
votes
Accepted
Permuting Small Sized Set in Practice
If you can generate uniform random numbers, you can use a variant of Fisher-Yates.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
permutation × 172pseudo-random-permutation × 26
encryption × 25
block-cipher × 21
cryptanalysis × 12
one-way-function × 12
substitution-cipher × 11
aes × 9
hash × 8
provable-security × 8
randomness × 8
des × 8
group-theory × 8
algorithm-design × 7
keys × 6
symmetric × 6
secret-sharing × 6
transposition-cipher × 6
spn × 6
present × 6
pseudo-random-generator × 5
pseudo-random-function × 5
classical-cipher × 5
feistel-network × 5
rsa × 4