Enum vsmtp_auth::dkim::HashAlgorithm
pub enum HashAlgorithm {
Sha1,
Sha256,
}Expand description
Hash algorithms exposed in the DKIM record,
used to describe the content of the “p=” tag in the record.
Variants§
Sha1
Available on crate feature
historic only.The SHA-1 hash function should be considered cryptographically broken and unsuitable for further use in any security critical capacity.
See the implementation https://docs.rs/sha1
Sha256
See the implementation https://docs.rs/sha2
Implementations§
Trait Implementations§
§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
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 more§impl Debug for HashAlgorithm
impl Debug for HashAlgorithm
§impl Display for HashAlgorithm
impl Display for HashAlgorithm
§impl FromStr for HashAlgorithm
impl FromStr for HashAlgorithm
§impl PartialEq<HashAlgorithm> for HashAlgorithm
impl PartialEq<HashAlgorithm> for HashAlgorithm
§fn eq(&self, other: &HashAlgorithm) -> bool
fn eq(&self, other: &HashAlgorithm) -> bool
This method tests for
self and other values to be equal, and is used
by ==.