[][src]Struct rcrypto::ZUCCipher

pub struct ZUCCipher { /* fields omitted */ }

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]

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

impl Clone for ZUCCipher[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.