pub struct Grasshopper { /* private fields */ }Expand description
Kuznyechik (Grasshopper) block cipher — RFC 7801 / GOST R 34.12-2015.
128-bit block, 256-bit key. Pure Rust, no unsafe, no heap allocation.
Implementations§
Source§impl Grasshopper
impl Grasshopper
Sourcepub fn new_wiping(key: &mut [u8; 32]) -> Self
pub fn new_wiping(key: &mut [u8; 32]) -> Self
Construct from a 32-byte key and wipe the provided key buffer.
Trait Implementations§
Source§impl BlockCipher for Grasshopper
impl BlockCipher for Grasshopper
Auto Trait Implementations§
impl Freeze for Grasshopper
impl RefUnwindSafe for Grasshopper
impl Send for Grasshopper
impl Sync for Grasshopper
impl Unpin for Grasshopper
impl UnsafeUnpin for Grasshopper
impl UnwindSafe for Grasshopper
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