[][src]Struct nettle::cipher::Blowfish

pub struct Blowfish { /* fields omitted */ }

The Blowfish block cipher.

Blowfish is defined in B. Schneiers 1993 paper "Description of a New Variable-Length Key, 64-Bit Block Cipher (Blowfish)" published in "Fast Software Encryption, Cambridge Security Workshop Proceedings" (December 1993), Springer-Verlag, 1994, pp. 191-204.


impl Blowfish[src]

pub fn with_key(key: &[u8]) -> Self[src]

Creates a new instance with key that can be used for both encryption and decryption.

Trait Implementations

impl Cipher for Blowfish[src]

Auto Trait Implementations

impl RefUnwindSafe for Blowfish

impl Send for Blowfish

impl Sync for Blowfish

impl Unpin for Blowfish

impl UnwindSafe for Blowfish

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.