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.