pub struct Sm4Cipher { /* private fields */ }Expand description
SM4 cipher with pre-computed round keys.
Sm4Cipher zeroizes its round-key buffer on drop via the workspace
zeroize policy. Construction runs the key schedule (32 round keys
× secret-key-touching S-box invocations); see the W1 dudect target
ct_sm4_key_schedule.
Implementations§
Trait Implementations§
Source§impl BlockCipher for Sm4Cipher
impl BlockCipher for Sm4Cipher
Auto Trait Implementations§
impl Freeze for Sm4Cipher
impl RefUnwindSafe for Sm4Cipher
impl Send for Sm4Cipher
impl Sync for Sm4Cipher
impl Unpin for Sm4Cipher
impl UnsafeUnpin for Sm4Cipher
impl UnwindSafe for Sm4Cipher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more