Struct ades::DES_CIPHER

source ·
pub struct DES_CIPHER { /* private fields */ }

Methods from Deref<Target = Cipher>§

source

pub fn nid(&self) -> Nid

Returns the cipher’s Nid.

This corresponds to EVP_CIPHER_nid

source

pub fn as_ptr(&self) -> *const EVP_CIPHER

source

pub fn key_len(&self) -> usize

Returns the length of keys used with this cipher.

source

pub fn iv_len(&self) -> Option<usize>

Returns the length of the IV used with this cipher, or None if the cipher does not use an IV.

source

pub fn block_size(&self) -> usize

Returns the block size of the cipher.

Note

Stream ciphers such as RC4 have a block size of 1.

Trait Implementations§

source§

impl Deref for DES_CIPHER

§

type Target = Cipher

The resulting type after dereferencing.
source§

fn deref(&self) -> &Cipher

Dereferences the value.
source§

impl LazyStatic for DES_CIPHER

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AnyExt for T

source§

fn drop(self)

Chainable drop
source§

fn as_some(self) -> Option<Self>

Convert value to Some(value)
source§

fn as_ok<B>(self) -> Result<Self, B>

Convert value to Ok(value)
source§

fn as_err<A>(self) -> Result<A, Self>

Convert value to Err(value)
source§

fn as_box(self) -> Box<Self>

Convert value to Box::new(value)
source§

fn as_cell(self) -> Cell<Self>

Convert value to Cell(value)
source§

fn as_ref_cell(self) -> RefCell<Self>

Convert value to RefCell(value)
source§

fn as_rc(self) -> Rc<Self>

Convert value to Rc::new(value)
source§

fn as_arc(self) -> Arc<Self>

Convert value to Arc::new(value)
source§

fn type_name(&self) -> &str

Returns the name of a type as a string slice. Read more
source§

fn type_size(&self) -> usize

Returns the size of a type in bytes. Read more
source§

fn take_if(self, f: impl FnOnce(&Self) -> bool) -> Option<Self>

Returns Some(self) if it satisfies the given predicate function, or None if it doesn’t. Read more
source§

fn take_unless(self, f: impl FnOnce(&Self) -> bool) -> Option<Self>

Returns Some(self) if it doesn’t satisfy the given predicate function, or None if it does. Read more
source§

impl<T, R> AnyExt1<R> for T

source§

fn let_ref<'a>(&'a self, f: impl FnOnce(&'a Self) -> R) -> R

Performs operation f with &self, returns the closure result. Read more
source§

fn let_mut<'a>(&'a mut self, f: impl FnOnce(&'a mut Self) -> R) -> R

Performs operation f with &mut self, returns the closure result. Read more
source§

fn let_owned(self, f: impl FnOnce(Self) -> R) -> R

Consumes self, performs operation f with it, returns the closure result. Read more
source§

fn also_ref(self, f: impl FnOnce(&Self) -> R) -> Self

Consumes self, performs operation f with it, returns the receiver. Read more
source§

fn also_mut(self, f: impl FnOnce(&mut Self) -> R) -> Self

Consumes self, performs operation f on it, returns the updated value. Read more
source§

fn y(self, f: impl Copy + Fn(&dyn Fn(Self) -> R, Self) -> R) -> R

The Y Combinator Read more
source§

fn then_if( self, f1: impl FnOnce(&Self) -> bool, f2: impl FnOnce(Self) -> R ) -> Option<R>

Returns Some(f()) if it satisfies the given predicate function, or None if it doesn’t. Read more
source§

fn then_unless( self, f1: impl FnOnce(&Self) -> bool, f2: impl FnOnce(Self) -> R ) -> Option<R>

Returns Some(f()) if it doesn’t satisfy the given predicate function, or None if it does. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StdAnyExt for T

source§

fn dbg(self) -> Self
where Self: Debug,

System output -> with :#?’s println!. Read more
source§

fn sout(self) -> Self
where Self: Debug,

System output -> with :?’s println!. Read more
source§

fn echo(self) -> Self
where Self: Display,

Consumes self, println! as it is, returns self.
source§

impl<T, R> StdAnyExt1<R> for T

source§

fn measure_time(self, f: impl FnOnce(Self) -> R) -> Duration

Executes the given closure block and returns the duration of elapsed time interval.
source§

fn measure_time_with_value(self, f: impl FnOnce(Self) -> R) -> (R, Duration)

Executes the given closure block, returns the result of the closure execution and the duration of elapsed time interval.
source§

fn measure_time_with_self(self, f: impl FnOnce(&Self) -> R) -> (Self, Duration)

Executes the given closure block, returns the receiver self and the duration of elapsed time interval.
source§

fn measure_time_with_mut_self( self, f: impl FnOnce(&mut Self) -> R ) -> (Self, Duration)

Executes the given closure block, returns the receiver self and the duration of elapsed time interval.
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.