[−][src]Struct rcrypto::ZUCCipher
ZUC stream cipher algorithm
GM/T 0001-2012
Implementations
impl ZUCCipher
[src]
pub fn new(count: u32, bearer: u8, direction: bool, ck: [u8; 16]) -> ZUCCipher
[src]
bearer: only the lowest 5 bits are valid
pub fn from_slice(
count: u32,
bearer: u8,
direction: bool,
ck: &[u8]
) -> Result<ZUCCipher, CryptoError>
[src]
count: u32,
bearer: u8,
direction: bool,
ck: &[u8]
) -> Result<ZUCCipher, CryptoError>
bearer: only the lowest 5 bits are valid
pub fn reset(&mut self)
[src]
this will reset to the initialization status
Trait Implementations
impl Cipher for ZUCCipher
[src]
type Output = usize
fn block_size(&self) -> Option<usize>
[src]
fn encrypt(
&self,
dst: &mut Vec<u8>,
plaintext_block: &[u8]
) -> Result<usize, CryptoError>
[src]
&self,
dst: &mut Vec<u8>,
plaintext_block: &[u8]
) -> Result<usize, CryptoError>
fn decrypt(
&self,
dst: &mut Vec<u8>,
cipher_block: &[u8]
) -> Result<usize, CryptoError>
[src]
&self,
dst: &mut Vec<u8>,
cipher_block: &[u8]
) -> Result<usize, CryptoError>
impl Clone for ZUCCipher
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for ZUCCipher
impl Send for ZUCCipher
impl !Sync for ZUCCipher
impl Unpin for ZUCCipher
impl UnwindSafe for ZUCCipher
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,