Struct ades::AES_CIPHER
source · [−]pub struct AES_CIPHER { /* private fields */ }
Methods from Deref<Target = Cipher>
sourcepub fn nid(&self) -> Nid
pub fn nid(&self) -> Nid
Returns the cipher’s Nid.
This corresponds to EVP_CIPHER_nid
pub fn as_ptr(&self) -> *const EVP_CIPHER
sourcepub fn iv_len(&self) -> Option<usize>
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.
sourcepub fn block_size(&self) -> usize
pub fn block_size(&self) -> usize
Trait Implementations
sourceimpl Deref for AES_CIPHER
impl Deref for AES_CIPHER
impl LazyStatic for AES_CIPHER
Auto Trait Implementations
impl RefUnwindSafe for AES_CIPHER
impl Send for AES_CIPHER
impl Sync for AES_CIPHER
impl Unpin for AES_CIPHER
impl UnwindSafe for AES_CIPHER
Blanket Implementations
sourceimpl<T> AnyExt for T
impl<T> AnyExt for T
sourceimpl<T, R> AnyExt1<R> for T
impl<T, R> AnyExt1<R> for T
sourcefn let_ref<'a>(&'a self, f: impl FnOnce(&'a Self) -> R) -> R
fn let_ref<'a>(&'a self, f: impl FnOnce(&'a Self) -> R) -> R
Performs operation f
with &self
, returns the closure result. Read more
sourcefn let_mut<'a>(&'a mut self, f: impl FnOnce(&'a mut Self) -> R) -> R
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
sourcefn let_owned(self, f: impl FnOnce(Self) -> R) -> R
fn let_owned(self, f: impl FnOnce(Self) -> R) -> R
Consumes self
, performs operation f
with it, returns the closure result. Read more
sourcefn also_ref(self, f: impl FnOnce(&Self) -> R) -> Self
fn also_ref(self, f: impl FnOnce(&Self) -> R) -> Self
Consumes self
, performs operation f
with it, returns the receiver. Read more
sourcefn also_mut(self, f: impl FnOnce(&mut Self) -> R) -> Self
fn also_mut(self, f: impl FnOnce(&mut Self) -> R) -> Self
Consumes self
, performs operation f
on it, returns the updated value. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, R> StdAnyExt1<R> for T
impl<T, R> StdAnyExt1<R> for T
sourcefn measure_time(self, f: impl FnOnce(Self) -> R) -> Duration
fn measure_time(self, f: impl FnOnce(Self) -> R) -> Duration
Executes the given closure block and returns the duration of elapsed time interval.
sourcefn measure_time_with_value(self, f: impl FnOnce(Self) -> R) -> (R, Duration)
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. Read more