Android-cuttlefish cvd tool
Namespaces | Functions | Variables
secure_hals.cpp File Reference
#include "cuttlefish/host/libs/config/secure_hals.h"
#include <cctype>
#include <set>
#include <string>
#include <string_view>
#include <unordered_map>
#include <android-base/no_destructor.h>
#include <android-base/strings.h>
#include "cuttlefish/common/libs/utils/result.h"
Include dependency graph for secure_hals.cpp:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{secure_hals.cpp}
 

Functions

Result< SecureHal > cuttlefish::ParseSecureHal (std::string mode)
 
Result< std::set< SecureHal > > cuttlefish::ParseSecureHals (const std::string &hals)
 
Result< void > cuttlefish::ValidateSecureHals (const std::set< SecureHal > &secure_hals)
 
std::string cuttlefish::ToString (SecureHal hal_in)
 

Variables

NoDestructor< std::unordered_map< std::string_view, SecureHal > > cuttlefish::anonymous_namespace{secure_hals.cpp}::kMapping ([] { return std::unordered_map< std::string_view, SecureHal >{ {"keymint", SecureHal::kHostKeymintSecure}, {"host_secure_keymint", SecureHal::kHostKeymintSecure}, {"host_keymint_secure", SecureHal::kHostKeymintSecure}, {"guest_keymint_trusty_insecure", SecureHal::kGuestKeymintTrustyInsecure}, {"guest_keymint_insecure_trusty", SecureHal::kGuestKeymintTrustyInsecure}, {"guest_gatekeeper_insecure", SecureHal::kGuestGatekeeperInsecure}, {"guest_insecure_gatekeeper", SecureHal::kGuestGatekeeperInsecure}, {"guest_insecure_keymint", SecureHal::kGuestKeymintInsecure}, {"guest_keymint_insecure", SecureHal::kGuestKeymintInsecure}, {"gatekeeper", SecureHal::kHostGatekeeperSecure}, {"host_gatekeeper_secure", SecureHal::kHostGatekeeperSecure}, {"host_secure_gatekeeper", SecureHal::kHostGatekeeperSecure}, {"host_gatekeeper_insecure", SecureHal::kHostGatekeeperInsecure}, {"host_insecure_gatekeeper", SecureHal::kHostGatekeeperInsecure}, {"oemlock", SecureHal::kHostOemlockSecure}, {"host_oemlock_secure", SecureHal::kHostOemlockSecure}, {"host_secure_oemlock", SecureHal::kHostOemlockSecure}, {"guest_strongbox_insecure", SecureHal::kGuestStrongboxInsecure}, };}())