binius_field/arch/portable/
packed_aes_16.rsuse super::{
packed::{impl_broadcast, PackedPrimitiveType},
packed_arithmetic::impl_tower_constants,
};
use crate::{
arch::{PackedStrategy, PairwiseRecursiveStrategy, PairwiseStrategy, PairwiseTableStrategy},
arithmetic_traits::{
impl_invert_with, impl_mul_alpha_with, impl_mul_with, impl_square_with,
impl_transformation_with_strategy,
},
AESTowerField16b, AESTowerField8b,
};
pub type PackedAESBinaryField2x8b = PackedPrimitiveType<u16, AESTowerField8b>;
pub type PackedAESBinaryField1x16b = PackedPrimitiveType<u16, AESTowerField16b>;
impl_broadcast!(u16, AESTowerField8b);
impl_broadcast!(u16, AESTowerField16b);
impl_tower_constants!(AESTowerField8b, u16, 0x00d3);
impl_mul_with!(PackedAESBinaryField2x8b @ PairwiseTableStrategy);
impl_mul_with!(PackedAESBinaryField1x16b @ PairwiseRecursiveStrategy);
impl_square_with!(PackedAESBinaryField2x8b @ PairwiseTableStrategy);
impl_square_with!(PackedAESBinaryField1x16b @ PairwiseRecursiveStrategy);
impl_invert_with!(PackedAESBinaryField2x8b @ PairwiseTableStrategy);
impl_invert_with!(PackedAESBinaryField1x16b @ PairwiseRecursiveStrategy);
impl_mul_alpha_with!(PackedAESBinaryField2x8b @ PairwiseTableStrategy);
impl_mul_alpha_with!(PackedAESBinaryField1x16b @ PackedStrategy);
impl_transformation_with_strategy!(PackedAESBinaryField2x8b, PackedStrategy);
impl_transformation_with_strategy!(PackedAESBinaryField1x16b, PairwiseStrategy);