[][src]Struct openssl::hash::MessageDigest

pub struct MessageDigest(_);

Methods

impl MessageDigest[src]

pub unsafe fn from_ptr(x: *const EVP_MD) -> Self[src]

pub fn from_nid(type_: Nid) -> Option<MessageDigest>[src]

Returns the MessageDigest corresponding to an Nid.

This corresponds to EVP_get_digestbynid.

pub fn null() -> MessageDigest[src]

pub fn md5() -> MessageDigest[src]

pub fn sha1() -> MessageDigest[src]

pub fn sha224() -> MessageDigest[src]

pub fn sha256() -> MessageDigest[src]

pub fn sha384() -> MessageDigest[src]

pub fn sha512() -> MessageDigest[src]

pub fn ripemd160() -> MessageDigest[src]

pub fn as_ptr(&self) -> *const EVP_MD[src]

pub fn size(&self) -> usize[src]

The size of the digest in bytes

pub fn type_(&self) -> Nid[src]

The name of the digest

Trait Implementations

impl Clone for MessageDigest[src]

impl Copy for MessageDigest[src]

impl Eq for MessageDigest[src]

impl PartialEq<MessageDigest> for MessageDigest[src]

impl Send for MessageDigest[src]

impl StructuralEq for MessageDigest[src]

impl StructuralPartialEq for MessageDigest[src]

impl Sync for MessageDigest[src]

Auto Trait Implementations

impl RefUnwindSafe for MessageDigest

impl Unpin for MessageDigest

impl UnwindSafe for MessageDigest

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.