Struct openssl::hash::MessageDigest [−][src]
pub struct MessageDigest(_);
Implementations
impl MessageDigest[src]
impl MessageDigest[src]pub unsafe fn from_ptr(x: *const EVP_MD) -> Self[src]
Creates a MessageDigest from a raw OpenSSL pointer.
Safety
The caller must ensure the pointer is valid.
pub fn from_nid(type_: Nid) -> Option<MessageDigest>[src]
Returns the MessageDigest corresponding to an Nid.
This corresponds to EVP_get_digestbynid.
pub fn from_name(name: &str) -> Option<MessageDigest>[src]
Returns the MessageDigest corresponding to an algorithm name.
This corresponds to EVP_get_digestbyname.
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 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 sm3() -> 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 Clone for MessageDigest[src]fn clone(&self) -> MessageDigest[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl PartialEq<MessageDigest> for MessageDigest[src]
impl PartialEq<MessageDigest> for MessageDigest[src]