parse_sha256

Function parse_sha256 

Source
pub fn parse_sha256(string: impl AsRef<str>) -> Result<Sha256Digest>
Expand description

Parse a string containing a SHA256 digest in hexidecimal form into a Sha256Digest.

The string must contain exactly 64 characters and consist entirely of [0-9a-f], case insensitive.

In case of a failure to parse the string, this function returns ErrorKind::InvalidInput.