[][src]Struct gcrypt::digest::MessageDigest

pub struct MessageDigest(_);

Methods

impl MessageDigest[src]

pub unsafe fn from_raw(raw: gcry_md_hd_t) -> Self[src]

pub fn as_raw(&self) -> gcry_md_hd_t[src]

pub fn into_raw(self) -> gcry_md_hd_t[src]

pub fn new(algo: Algorithm) -> Result<MessageDigest>[src]

pub fn with_flags(algo: Algorithm, flags: Flags) -> Result<MessageDigest>[src]

pub fn try_clone(&self) -> Result<MessageDigest>[src]

pub fn enable(&mut self, algo: Algorithm) -> Result<()>[src]

pub fn is_enabled(&self, algo: Algorithm) -> bool[src]

pub fn is_secure(&self) -> bool[src]

pub fn set_key(&mut self, key: impl AsRef<[u8]>) -> Result<()>[src]

pub fn reset(&mut self)[src]

pub fn update(&mut self, bytes: &[u8])[src]

pub fn finish(&mut self)[src]

pub fn get_only_digest(&mut self) -> Option<&[u8]>[src]

pub fn get_digest(&mut self, algo: Algorithm) -> Option<&[u8]>[src]

Trait Implementations

impl Debug for MessageDigest[src]

impl Drop for MessageDigest[src]

impl Write for MessageDigest[src]

Auto Trait Implementations

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, 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.