aes/backends/fixslice/
mod.rs1use cipher::array::Array;
17
18pub(super) mod aes128;
19pub(super) mod aes192;
20pub(super) mod aes256;
21#[cfg(feature = "hazmat")]
22pub(crate) mod hazmat;
23
24mod mix_columns;
25mod sbox;
26mod utils;
27mod word;
28
29pub(super) use word::Word;
30
31type State<W> = [W; 8];
32
33cpubits::cpubits! {
34 16 => {
35 pub(super) type NativeWord = u16;
36 }
37 32 => {
38 pub(super) type NativeWord = u32;
39 }
40 64 => {
41 pub(super) type NativeWord = u64;
42 }
43}
44
45pub(super) type NativeBatchSize = <NativeWord as Word>::Blocks;
46pub(super) type BatchBlocks<W> = Array<crate::Block, <W as Word>::Blocks>;
47pub(super) type MinWord = u16;