Struct openssl::hash::MessageDigest
source · pub struct MessageDigest(_);
Implementations
sourceimpl MessageDigest
impl MessageDigest
pub unsafe fn from_ptr(x: *const EVP_MD) -> Self
sourcepub fn from_nid(type_: Nid) -> Option<MessageDigest>
pub fn from_nid(type_: Nid) -> Option<MessageDigest>
Returns the MessageDigest
corresponding to an Nid
.
This corresponds to EVP_get_digestbynid
.
pub fn md5() -> MessageDigest
pub fn sha1() -> MessageDigest
pub fn sha224() -> MessageDigest
pub fn sha256() -> MessageDigest
pub fn sha384() -> MessageDigest
pub fn sha512() -> MessageDigest
pub fn ripemd160() -> MessageDigest
pub fn as_ptr(&self) -> *const EVP_MD
Trait Implementations
sourceimpl Clone for MessageDigest
impl Clone for MessageDigest
sourcefn clone(&self) -> MessageDigest
fn clone(&self) -> MessageDigest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for MessageDigest
impl Send for MessageDigest
impl Sync for MessageDigest
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more