pub struct IceKey { /* private fields */ }
Implementations§
Source§impl IceKey
impl IceKey
pub fn new(length: usize) -> Self
pub fn set(&mut self, key: Vec<u8>)
pub fn decrypt_all(&self, ctext: Vec<u8>) -> Vec<u8> ⓘ
pub fn encrypt_all(&self, ptext: Vec<u8>) -> Vec<u8> ⓘ
pub fn decrypt(&self, ctext: Vec<u8>) -> Vec<u8> ⓘ
pub fn encrypt(&self, ptext: Vec<u8>) -> Vec<u8> ⓘ
pub fn rounds(&self) -> usize
pub fn size(&self) -> usize
Auto Trait Implementations§
impl Freeze for IceKey
impl RefUnwindSafe for IceKey
impl Send for IceKey
impl Sync for IceKey
impl Unpin for IceKey
impl UnwindSafe for IceKey
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