Skip to main content

decrypt_block

Function decrypt_block 

Source
pub fn decrypt_block<const N: usize>(
    round_keys: &[[u8; 16]; N],
    block: &[u8; 16],
) -> [u8; 16]
Expand description

Decrypt one 16-byte block.

N = 11 for AES-128 (10 rounds), N = 15 for AES-256 (14 rounds).

This is the constant-time software path; it performs no data-dependent memory accesses or branches.