Struct nettle::cipher::insecure_do_not_use::ArcTwo [−][src]
Ron Rivest's RC2 block cipher defined RFC 2268.
Note
RC2 is no longer considered a secure cipher. Only use it for legacy applications.
Implementations
impl ArcTwo
[src]
pub fn with_key(key: &[u8]) -> Self
[src]
Creates a new instance with key
that can be used for both encryption and decryption.
pub fn with_key_ekb(key: &[u8], ekb: u32) -> Self
[src]
Creates a new instance with key
that can be used for both encryption and decryption. The
ekb
parameter can be used to limit the effective key size to ekb
bits. A value of 0
is handled as 1024
.
Trait Implementations
impl Cipher for ArcTwo
[src]
const BLOCK_SIZE: usize
[src]
const KEY_SIZE: usize
[src]
fn with_encrypt_key(key: &[u8]) -> Result<ArcTwo>
[src]
fn with_decrypt_key(key: &[u8]) -> Result<ArcTwo>
[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 ArcTwo
[src]
impl Send for ArcTwo
[src]
impl Sync for ArcTwo
[src]
impl Unpin for ArcTwo
[src]
impl UnwindSafe for ArcTwo
[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>,