pub struct Rc4 { /* private fields */ }Expand description
RC4 cipher instance using a particular key
Implementations§
Trait Implementations§
Source§impl StreamCipher for Rc4
impl StreamCipher for Rc4
Source§fn xor_key_stream(&mut self, inout: &mut [u8]) -> CryptoResult<()>
fn xor_key_stream(&mut self, inout: &mut [u8]) -> CryptoResult<()>
XORKeyStream XORs each byte in the given slice with a byte from the
cipher’s key stream. Dst and src must overlap entirely or not at all. Read more
Auto Trait Implementations§
impl Freeze for Rc4
impl RefUnwindSafe for Rc4
impl Send for Rc4
impl Sync for Rc4
impl Unpin for Rc4
impl UnwindSafe for Rc4
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