19 #ifndef ASYLO_IDENTITY_PLATFORM_SGX_ATTRIBUTES_UTIL_H_ 20 #define ASYLO_IDENTITY_PLATFORM_SGX_ATTRIBUTES_UTIL_H_ 24 #include "absl/strings/string_view.h" 25 #include "asylo/identity/platform/sgx/architecture_bits.h" 26 #include "asylo/identity/platform/sgx/attributes.pb.h" 27 #include "asylo/util/status.h" 28 #include "asylo/util/statusor.h" 41 bool operator==(
const Attributes &lhs,
const Attributes &rhs);
44 bool operator!=(
const Attributes &lhs,
const Attributes &rhs);
Attributes operator &(const Attributes &lhs, const Attributes &rhs)
Computes the bitwise AND of two Attributes protos.
bool operator==(const Miscselect &lhs, const Miscselect &rhs)
Checks two Miscselect protos for equality.
bool operator!=(const Miscselect &lhs, const Miscselect &rhs)
Checks two Miscselect protos for inequality.
Status SetAttributeBit(AttributeBit bit, Attributes *attributes)
Sets the given bit of attributes to true, or returns a non-OK Status if the bit was invalid...
Status ClearAttributeBit(AttributeBit bit, Attributes *attributes)
Sets the given bit of attributes to false, or returns a non-OK Status if the bit was invalid...
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
Definition: architecture_bits.h:26
StatusOr< bool > IsAttributeBitSet(AttributeBit bit, const Attributes &attributes)
Returns whether the given bit of attributes is set, or a non-OK Status if the bit was invalid...
std::vector< absl::string_view > GetPrintableAttributeList(const Attributes &attributes)
Returns a printable list of the bits set in attributes.