Function aes::hazmat::cipher_round

source ·
pub fn cipher_round(block: &mut Block, round_key: &Block)
Available on crate feature hazmat only.
Expand description

⚠️ AES cipher (encrypt) round function.

This API performs the following steps as described in FIPS 197 Appendix C:

  • s_box: state after SubBytes()
  • s_row: state after ShiftRows()
  • m_col: state after MixColumns()
  • k_sch: key schedule value for round[r]

This series of operations is equivalent to the Intel AES-NI AESENC instruction.

§☢️️ WARNING: HAZARDOUS API ☢️

Use this function with great care! See the module-level documentation for more information.