19 #ifndef ASYLO_CRYPTO_SHA256_HASH_UTIL_H_ 20 #define ASYLO_CRYPTO_SHA256_HASH_UTIL_H_ 25 #include "asylo/crypto/sha256_hash.pb.h" 26 #include "asylo/util/statusor.h" 38 bool operator==(
const Sha256HashProto &lhs,
const Sha256HashProto &rhs);
41 bool operator!=(
const Sha256HashProto &lhs,
const Sha256HashProto &rhs);
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
bool operator==(const Sha256HashProto &lhs, const Sha256HashProto &rhs)
Compares two Sha256HashProto messages for equality.
bool operator!=(const Sha256HashProto &lhs, const Sha256HashProto &rhs)
Compares two Sha256HashProto messages for inequality.
StatusOr< Sha256HashProto > CreateSha256HashProto(absl::string_view hash_hex)
Returns a Sha256HashProto with the hash of the given |hash_hex|, or a non-OK Status if the provided s...
Status ValidateSha256HashProto(const Sha256HashProto &hash_proto)
Validates that |hash_proto| has a hash that is exactly 32 bytes.