Struct nettle::cipher::insecure_do_not_use::ArcFour [−][src]
Ron Rivest's RC4 stream cipher.
Note
RC4 is no longer considered a secure cipher. Only use it for legacy applications.
Implementations
impl ArcFour
[src]
pub fn with_key(key: &[u8]) -> Self
[src]
Create a new instance with key
.
pub fn crypt(&mut self, dst: &mut [u8], src: &[u8])
[src]
Encrypt/decrypt data from src
to dst
.
Trait Implementations
impl Cipher for ArcFour
[src]
const BLOCK_SIZE: usize
[src]
const KEY_SIZE: usize
[src]
fn with_encrypt_key(key: &[u8]) -> Result<ArcFour>
[src]
fn with_decrypt_key(key: &[u8]) -> Result<ArcFour>
[src]
fn encrypt(&mut self, dst: &mut [u8], src: &[u8])
[src]
fn decrypt(&mut self, dst: &mut [u8], src: &[u8])
[src]
fn context(&mut self) -> *mut c_void
[src]
fn raw_encrypt_function() -> RawCipherFunctionPointer
[src]
fn raw_decrypt_function() -> RawCipherFunctionPointer
[src]
Auto Trait Implementations
impl RefUnwindSafe for ArcFour
[src]
impl Send for ArcFour
[src]
impl Sync for ArcFour
[src]
impl Unpin for ArcFour
[src]
impl UnwindSafe for ArcFour
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,