pub struct Rc4<const KEY_LEN: usize, D: DropStrategy = Zeroize>(/* private fields */);Expand description
An algorithm that performs RC4 encryption and decryption. This algorithm is generic over drop strategy.
RC4 is a stream cipher that uses a variable-length key (1-256 bytes). The key is stored alongside the encrypted data and is used to reproduce the keystream for decryption at runtime.
Trait Implementations§
Auto Trait Implementations§
impl<const KEY_LEN: usize, D> Freeze for Rc4<KEY_LEN, D>
impl<const KEY_LEN: usize, D> RefUnwindSafe for Rc4<KEY_LEN, D>where
D: RefUnwindSafe,
impl<const KEY_LEN: usize, D> Send for Rc4<KEY_LEN, D>where
D: Send,
impl<const KEY_LEN: usize, D> Sync for Rc4<KEY_LEN, D>where
D: Sync,
impl<const KEY_LEN: usize, D> Unpin for Rc4<KEY_LEN, D>where
D: Unpin,
impl<const KEY_LEN: usize, D> UnsafeUnpin for Rc4<KEY_LEN, D>
impl<const KEY_LEN: usize, D> UnwindSafe for Rc4<KEY_LEN, D>where
D: UnwindSafe,
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