Asylo
Namespaces | Functions
attributes_util.h File Reference

This library implements operations and utility functions on Attributes messages. More...

#include <vector>
#include "absl/strings/string_view.h"
#include "asylo/identity/platform/sgx/architecture_bits.h"
#include "asylo/identity/platform/sgx/attributes.pb.h"
#include "asylo/util/status.h"
#include "asylo/util/statusor.h"
Include dependency graph for attributes_util.h:

Go to the source code of this file.

Namespaces

 asylo
 
 asylo::sgx
 

Functions

Attributes asylo::sgx::operator & (const Attributes &lhs, const Attributes &rhs)
 Computes the bitwise AND of two Attributes protos. More...
 
bool asylo::sgx::operator== (const Attributes &lhs, const Attributes &rhs)
 Checks two Attributes protos for equality. More...
 
bool asylo::sgx::operator!= (const Attributes &lhs, const Attributes &rhs)
 Checks two Attributes protos for inequality. More...
 
Status asylo::sgx::SetAttributeBit (AttributeBit bit, Attributes *attributes)
 Sets the given bit of attributes to true, or returns a non-OK Status if the bit was invalid. More...
 
Status asylo::sgx::ClearAttributeBit (AttributeBit bit, Attributes *attributes)
 Sets the given bit of attributes to false, or returns a non-OK Status if the bit was invalid. More...
 
StatusOr< bool > asylo::sgx::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. More...
 
std::vector< absl::string_view > asylo::sgx::GetPrintableAttributeList (const Attributes &attributes)
 Returns a printable list of the bits set in attributes. More...
 

Detailed Description

This library implements operations and utility functions on Attributes messages.