Skip to main content

binius_field/arch/portable/
packed_aes_128.rs

1// Copyright 2024-2025 Irreducible Inc.
2// Copyright 2026 The Binius Developers
3
4use super::m128::M128;
5use crate::{
6	arch::{
7		PairwiseTableStrategy,
8		portable::packed_macros::{portable_macros::*, *},
9	},
10	arithmetic_traits::{impl_invert_with, impl_mul_with, impl_square_with},
11};
12
13define_packed_binary_fields!(
14	underlier: M128,
15	packed_fields: [
16		packed_field {
17			name: PackedAESBinaryField16x8b,
18			scalar: AESTowerField8b,
19			mul: (PairwiseTableStrategy),
20			square: (PairwiseTableStrategy),
21			invert: (PairwiseTableStrategy),
22			transform: (PackedStrategy),
23		},
24	]
25);