Skip to main content

Module utils

Module utils 

Source

Functionsยง

add_round_constant_bit ๐Ÿ”’
add_round_key ๐Ÿ”’
XOR the round key into the internal state. The round keys are expected to be pre-computed and packed in the fixsliced representation.
broadcast ๐Ÿ”’
Replicate a single 16-byte input block across all slots of a Batch<W>.
delta_swap_1 ๐Ÿ”’
delta_swap_2 ๐Ÿ”’
inv_shift_rows_1 ๐Ÿ”’
inv_shift_rows_2 ๐Ÿ”’
inv_shift_rows_3 ๐Ÿ”’
memshift32 ๐Ÿ”’
Copy 32-bytes within the provided slice to an 8-byte offset.
shift_rows_1 ๐Ÿ”’
Applies ShiftRows once on an AES state (or key).
shift_rows_2 ๐Ÿ”’
Applies ShiftRows twice on an AES state (or key).
shift_rows_3 ๐Ÿ”’
Applies ShiftRows three times on an AES state (or key).
xor_columns ๐Ÿ”’
XOR the columns after the S-box during the key schedule round function.