4
$\begingroup$

Could anyone explain how secure is bit level permutation? What is the most serious threat against the security of this kind of cipher?

$\endgroup$
1
  • 2
    $\begingroup$ Hints: consider output for the all-zero input; output for the all-zero-except-one-bit input, and what it tells you about the bit-level permutation; how many such queries reveal the whole permutation; how to reduce that tremendously with slightly smarter queries; what happens with known random (rather than chosen) plaintext. $\endgroup$
    – fgrieu
    Oct 9, 2014 at 11:36

1 Answer 1

4
$\begingroup$

As a single transformation considered in isolation, a fixed bitwise permutation does not offer any security. If you examine the hamming weight (the quantity of '1' bits) of the data before and after a bitwise permutation, you will notice that it remains unchanged. A bitwise permutation simply shuffles the order of the bits of data. Repeated applications will not modify the hamming weight, and will just shuffle the bits more.

Since the permutation is fixed, we concede that anyone can calculate it at will, so anyone can calculate the inverse at will. This is pretty much the case for any fixed permutation. Since there is no additional variable that is kept secret (the key), anyone with the data and the permutation has all the information they need to invert it.

A single transformation is rarely "good enough" in cryptography, so that much can be said about almost anything. However, when considered in conjunction with other transformations, such as an s-box and a key addition layer, the result is equal to more then the sum of the components. Many strong modern ciphers are built from combinations of bitwise permutations combined with other operations.

Bitwise permutations are often the source of diffusion in modern ciphers, and diffusion is a critical part of the security of modern ciphers.

One potential downside of bitwise permutations is efficiency in software. Modern processors typically operate on words that are a minimum of 1 byte in size. To address the individual bits is possible via masking and shifting, but doing so requires more operations then we would like.

For example, a bitwise permutation that operates on 8 bytes (with 8 bits per byte) and spreads out each byte evenly among output bytes has good diffusion, but has a quadratic algorithmic complexity, which can easily make it the slowest single component of the cipher.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.