pub struct MessageDigest(/* private fields */);
Implementations§
Source§impl MessageDigest
impl MessageDigest
Sourcepub unsafe fn from_ptr(x: *const env_md_st) -> MessageDigest
pub unsafe fn from_ptr(x: *const env_md_st) -> MessageDigest
Creates a MessageDigest
from a raw OpenSSL pointer.
§Safety
The caller must ensure the pointer is valid.
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 sha512_256() -> MessageDigest
pub fn as_ptr(&self) -> *const env_md_st
Trait Implementations§
Source§impl Clone for MessageDigest
impl Clone for MessageDigest
Source§fn clone(&self) -> MessageDigest
fn clone(&self) -> MessageDigest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for MessageDigest
impl PartialEq for MessageDigest
impl Copy for MessageDigest
impl Eq for MessageDigest
impl Send for MessageDigest
impl StructuralPartialEq for MessageDigest
impl Sync for MessageDigest
Auto Trait Implementations§
impl Freeze for MessageDigest
impl RefUnwindSafe for MessageDigest
impl Unpin for MessageDigest
impl UnwindSafe for MessageDigest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)