Skip to content

Commit

Permalink
AA: deps/crypto: Allow HashAlgorithms to be compared
Browse files Browse the repository at this point in the history
Implement `PartialEq` for `HashAlgorithm` to allow two hash algorith
values to be compared.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Sep 24, 2024
1 parent 5953c67 commit 1e6380a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attestation-agent/deps/crypto/src/algorithms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::fmt;
use std::str::FromStr;

/// Hash algorithms used to calculate runtime/init data binding
#[derive(Serialize, Deserialize, Clone, Debug, Display, Copy)]
#[derive(Serialize, Deserialize, Clone, Debug, Display, Copy, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum HashAlgorithm {
Sha256,
Expand Down

0 comments on commit 1e6380a

Please sign in to comment.