Module generic

Source

Traits§

Ops
Permutation

Functions§

create_u8x4
Create u8x4 from an u32 value.
create_u8x4x4
Create a 4x4 state matrix from a 16 sized u8 array, used in many blcok ciphers.
create_u8x16
expand_bits
Expand the data to bits vector.
gmul_x
Implementation of Galois field multiplication. poly denotes the used irreducible polynomial in bits.
restore_data
Restore the data from a bit vector.
transpose
Transpose a 4x4 state matrix, used in many blcok ciphers.
u8x4_to_u32
Create u32 from an u8 array.

Type Aliases§

u8x4
u8x4x4