[][src]Struct crypto_literal::algorithm::Xor

pub struct Xor {
    pub key: &'static [u8],
}

Xor algorithm.

Fields

key: &'static [u8]

Methods

impl Xor[src]

pub fn encrypt(buffer: &mut [u8], key: &[u8])[src]

pub fn decrypt(buffer: &mut [u8], key: &[u8])[src]

Trait Implementations

impl Debug for Xor[src]

impl Eq for Xor[src]

impl PartialEq<Xor> for Xor[src]

impl StructuralEq for Xor[src]

impl StructuralPartialEq for Xor[src]

Auto Trait Implementations

impl RefUnwindSafe for Xor

impl Send for Xor

impl Sync for Xor

impl Unpin for Xor

impl UnwindSafe for Xor

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> Same<T> for T

type Output = T

Should always be Self

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.