Branch number explained

In cryptography, the branch number is a numerical value that characterizes the amount of diffusion introduced by a vectorial Boolean function that maps an input vector to output vector

F(a)

. For the (usual) case of a linear the value of the differential branch number is produced by:
  1. applying nonzero values of (i.e., values that have at least one non-zero component of the vector) to the input of ;

W

(number of nonzero components), and adding weights

W(a)

and

W(F(a))

together;
  1. selecting the smallest combined weight across for all nonzero input values:

Bd(F)=\underset{a\ne0}{min}(W(a)+W(F(a)))

.If both and

F(a)

have components, the result is obviously limited on the high side by the value

s+1

(this "perfect" result is achieved when any single nonzero component in makes all components of

F(a)

to be non-zero). A high branch number suggests higher resistance to the differential cryptanalysis: the small variations of input will produce large changes on the output and in order to obtain small variations of the output, large changes of the input value will be required.

The term was introduced by Daemen and Rijmen in early 2000s and quickly became a typical tool to assess the diffusion properties of the transformations.

Mathematics

The branch number concept is not limited to the linear transformations, Daemen and Rijmen provided two general metrics:

is a component-by-component exclusive-or):

Bd(F)=\underset{a\neb}{min}(W(ab)+W(F(a)F(b))

;

\alpha

and

\beta

are independently swept; they should be nonzero and correlated with respect to (the

LAT(\alpha,\beta)

coefficient of the linear approximation table of should be nonzero):

Bl(F)=\underset{\alpha\ne0,\beta,LAT(\alpha,\beta)\ne0}{min}(W(\alpha)+W(\beta))

.[1]

Sources

Notes and References

  1. Web site: SAGE . S-Boxes and Their Algebraic Representations . sagemath.org . . 25 April 2023.