pub struct Idea { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BlockCipher for Idea
impl BlockCipher for Idea
Source§fn block_size(&self) -> usize
fn block_size(&self) -> usize
the cipher’s block size(bytes).
Source§fn encrypt_block(&self, inout: &mut [u8])
fn encrypt_block(&self, inout: &mut [u8])
encrypt a block.
Source§fn decrypt_block(&self, inout: &mut [u8])
fn decrypt_block(&self, inout: &mut [u8])
decrypt a block.
impl BlockCipherMarker for Idea
Auto Trait Implementations§
impl Freeze for Idea
impl RefUnwindSafe for Idea
impl Send for Idea
impl Sync for Idea
impl Unpin for Idea
impl UnwindSafe for Idea
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<B> CbcDecryptor<B> for Bwhere
B: BlockCipher + CbcDecryptorMarker + 'static,
impl<B> CbcDecryptor<B> for Bwhere
B: BlockCipher + CbcDecryptorMarker + 'static,
Source§impl<B> CbcEncryptor<B> for Bwhere
B: BlockCipher + CbcEncryptorMarker + 'static,
impl<B> CbcEncryptor<B> for Bwhere
B: BlockCipher + CbcEncryptorMarker + 'static,
Source§impl<T> Cfb for Twhere
T: BlockCipher + CfbMarker + 'static,
impl<T> Cfb for Twhere
T: BlockCipher + CfbMarker + 'static,
Source§fn to_cfb_encryptor(
self,
iv: &[u8],
) -> Result<impl StreamCipher + 'static, CryptoError>
fn to_cfb_encryptor( self, iv: &[u8], ) -> Result<impl StreamCipher + 'static, CryptoError>
Create a new CFB encryptor with the given IV
Source§fn to_cfb_decryptor(
self,
iv: &[u8],
) -> Result<impl StreamCipher + 'static, CryptoError>
fn to_cfb_decryptor( self, iv: &[u8], ) -> Result<impl StreamCipher + 'static, CryptoError>
Create a new CFB decrypter with the given IV