pub struct MdRef(/* private fields */);
Expand description
A reference to an Md
.
Implementations§
source§impl MdRef
impl MdRef
sourcepub fn block_size(&self) -> usize
pub fn block_size(&self) -> usize
Returns the block size of the digest in bytes.
This corresponds to EVP_MD_block_size
.
sourcepub fn size(&self) -> usize
pub fn size(&self) -> usize
Returns the size of the digest in bytes.
This corresponds to EVP_MD_size
.
sourcepub fn type_(&self) -> Nid
pub fn type_(&self) -> Nid
Returns the Nid
of the digest.
This corresponds to EVP_MD_type
.
Trait Implementations§
source§impl ForeignTypeRef for MdRef
impl ForeignTypeRef for MdRef
impl Send for MdRef
impl Sync for MdRef
Auto Trait Implementations§
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