Types of P-boxes

The chart below shows the three types of p-boxes available in modern block cipher

Types of p-boxes

1. Straight P-box

In this type of p-box, the number of inputs and output is the same. If inputs are n and outputs are m, then m=n.  The positions of the arrangement are shown in the figure, where an equal number of bits are transposed to different places.

Straight p-box

2. Expansion P-box

An expansion p-box is a p-box with n inputs and m outputs where m>n, i.e., the number of outputs is more than the number of inputs. In this type of p-box, the values get repeated as for one input there is a possibility for more than one output.

Expansion p-box

3. Compression P-box

A compression p-box is a p-box with n inputs and m outputs where m<n, i.e., the number of outputs is less than the number of inputs. In this type of p-box, few bits are dropped as not all input bits are considered for output. 

Compression p-box

What is p-box in Cryptography?

P-boxes are permutation boxes which are usually one of the main components of a modern block cipher. They are also known as D-boxes or diffusion boxes. P-boxes are used in the block cipher called the data encryption standard commonly known as DES in cryptography. In this article, we will look into what are p-boxes, the types of p-boxes, and how to identify their types in detail. 

Similar Reads

Functionality of P-boxes

A p-box (permutation box) is used to transposition the characters for the particular input of characters. In simple words, it transposes the bits. Here, 1,2,3,4,5 refers to the position of the bit, and the bits in those positions are transpositioned using the predefined p-box....

Types of P-boxes

The chart below shows the three types of p-boxes available in modern block cipher:...

Invertibility of P-boxes

The invertibility property holds true only for straight p-boxes but not for expansion and compression p-boxes....

Identifying the Type of P-box

Below is the code implementation in Java to find the type of p-box given....

FAQs on P-box Cryptography

...