feat(aes): Add missing transformation methods to Block128

This commit is contained in:
2025-11-23 18:50:05 +02:00
parent 830c457b2a
commit dae5b69966

View File

@@ -181,12 +181,16 @@ impl Block128 {
Self::from_be_bytes(bytes) Self::from_be_bytes(bytes)
} }
#[inline]
#[must_use]
pub fn sub_bytes(self) -> Self { pub fn sub_bytes(self) -> Self {
todo!() Self(self.0.sbox_lookup())
} }
#[inline]
#[must_use]
pub fn inv_sub_bytes(self) -> Self { pub fn inv_sub_bytes(self) -> Self {
todo!() Self(self.0.inv_sbox_lookup())
} }
} }