feat(aes): Add missing transformation methods to Block128

This commit is contained in:
Kristofers Solo 2025-11-23 18:50:05 +02:00
parent 830c457b2a
commit dae5b69966
Signed by: kristoferssolo
GPG Key ID: 74FF8144483D82C8

View File

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