Asylo
Namespaces | Functions
sha256_hash_util.h File Reference
#include <cstdint>
#include <string>
#include "asylo/crypto/sha256_hash.pb.h"
#include "asylo/util/statusor.h"
Include dependency graph for sha256_hash_util.h:

Go to the source code of this file.

Namespaces

 asylo
 

Functions

StatusOr< Sha256HashProto > asylo::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 string is an invalid hex-encoded SHA-256 hash. More...
 
Status asylo::ValidateSha256HashProto (const Sha256HashProto &hash_proto)
 Validates that |hash_proto| has a hash that is exactly 32 bytes. More...
 
bool asylo::operator== (const Sha256HashProto &lhs, const Sha256HashProto &rhs)
 Compares two Sha256HashProto messages for equality. More...
 
bool asylo::operator!= (const Sha256HashProto &lhs, const Sha256HashProto &rhs)
 Compares two Sha256HashProto messages for inequality. More...