[][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 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 sha3_224() -> MessageDigest[src]

pub fn sha3_256() -> MessageDigest[src]

pub fn sha3_384() -> MessageDigest[src]

pub fn sha3_512() -> MessageDigest[src]

pub fn shake_128() -> MessageDigest[src]

pub fn shake_256() -> 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 Send for MessageDigest[src]

impl Eq for MessageDigest[src]

impl Sync for MessageDigest[src]

impl Clone for MessageDigest[src]

impl PartialEq<MessageDigest> for MessageDigest[src]

impl Copy for MessageDigest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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