[][src]Struct rcrypto::ZUC

pub struct ZUC { /* fields omitted */ }

ZUC stream cipher algorithm
GM/T 0001-2012

Implementations

impl ZUC[src]

pub fn set(&mut self, key: [u8; 16], iv: [u8; 16])[src]

pub fn set_slice(&mut self, key: &[u8], iv: &[u8]) -> Result<(), CryptoError>[src]

pub fn new(key: [u8; 16], iv: [u8; 16]) -> ZUC

Notable traits for ZUC

impl Iterator for ZUC type Item = u32;
[src]

pub fn from_slice(key: &[u8], iv: &[u8]) -> Result<ZUC, CryptoError>[src]

pub fn zuc(&mut self) -> u32[src]

Trait Implementations

impl Clone for ZUC[src]

impl Iterator for ZUC[src]

type Item = u32

The type of the elements being iterated over.

Auto Trait Implementations

impl RefUnwindSafe for ZUC

impl Send for ZUC

impl Sync for ZUC

impl Unpin for ZUC

impl UnwindSafe for ZUC

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.