mirror of
https://github.com/kristoferssolo/cipher-workshop.git
synced 2025-12-20 11:04:38 +00:00
feat(aes): Add missing transformation methods to Block128
This commit is contained in:
parent
830c457b2a
commit
dae5b69966
@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user