sboxUv2.random_objects package

Submodules

sboxUv2.random_objects.random_objects module

sboxUv2.random_objects.random_objects.rand_Sbox(n, m)[source]

Returns a random n bits to m bits S_box

sboxUv2.random_objects.random_objects.rand_invertible_Sbox(n)[source]

Returns a permutation of {0,1}^n

sboxUv2.random_objects.random_objects.rand_linear_function(n, m)[source]

Returns a random BinLinearMap from {0,1}^n to {0,1}^m. This is done by drawing the vectors of the image at random.

sboxUv2.random_objects.random_objects.rand_linear_permutation(n)[source]

Returns a random BinLinearMap which is a permutation of {0,1}^N. This is done by drawing vectors at random and adding them to the image if they are not in the span of the current image.