Struct nettle::cipher::insecure_do_not_use::ArcFour
source · pub struct ArcFour { /* private fields */ }
Expand description
Ron Rivest’s RC4 stream cipher.
Note
RC4 is no longer considered a secure cipher. Only use it for legacy applications.
Implementations§
Trait Implementations§
source§impl Cipher for ArcFour
impl Cipher for ArcFour
source§const BLOCK_SIZE: usize = 1usize
const BLOCK_SIZE: usize = 1usize
Block size in bytes.
source§fn with_encrypt_key(key: &[u8]) -> Result<ArcFour>
fn with_encrypt_key(key: &[u8]) -> Result<ArcFour>
Creates a new cipher instance for encryption. Read more
source§fn with_decrypt_key(key: &[u8]) -> Result<ArcFour>
fn with_decrypt_key(key: &[u8]) -> Result<ArcFour>
Creates a new cipher instance for decryption. Read more
source§fn context(&mut self) -> *mut c_void
fn context(&mut self) -> *mut c_void
Returns a pointer to the C context struct of the cipher instance. Read more
source§fn raw_encrypt_function() -> RawCipherFunctionPointer
fn raw_encrypt_function() -> RawCipherFunctionPointer
Pointer to the *_encrypt C function. Read more
source§fn raw_decrypt_function() -> RawCipherFunctionPointer
fn raw_decrypt_function() -> RawCipherFunctionPointer
Pointer to the *_decrypt C function. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ArcFour
impl Send for ArcFour
impl Sync for ArcFour
impl Unpin for ArcFour
impl UnwindSafe for ArcFour
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