chromium/device/fido/enclave/constants.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "device/fido/enclave/constants.h"

#include <array>

#include "base/command_line.h"
#include "base/logging.h"
#include "device/fido/enclave/types.h"
#include "device/fido/fido_constants.h"

namespace device::enclave {

namespace {

const EnclaveIdentity* g_enclave_override =;

constexpr char kEnclaveUrl[] =;

// The name of the commandline flag that allows to specify the enclave URL.
constexpr char kEnclaveUrlSwitch[] =;

// This is the public key of the `cloud_authenticator_test_service` that
// can be built in the Chromium source tree.
constexpr std::array<uint8_t, device::kP256X962Length> kLocalPublicKey =;

// This is the public key of the production enclave service.
constexpr std::array<uint8_t, device::kP256X962Length> kProdPublicKey =;

}  // namespace

EnclaveIdentity GetEnclaveIdentity() {}

ScopedEnclaveOverride::ScopedEnclaveOverride(EnclaveIdentity identity)
    :{}

ScopedEnclaveOverride::~ScopedEnclaveOverride() {}

const char kCommandEncodedRequestsKey[] =;
const char kCommandDeviceIdKey[] =;
const char kCommandSigKey[] =;
const char kCommandAuthLevelKey[] =;

const char kRequestCommandKey[] =;
const char kRequestWrappedSecretKey[] =;
const char kRequestSecretKey[] =;
const char kRequestCounterIDKey[] =;
const char kRequestVaultHandleWithoutTypeKey[] =;
const char kRequestWrappedPINDataKey[] =;

const char kResponseSuccessKey[] =;
const char kResponseErrorKey[] =;

const char kRegisterCommandName[] =;
const char kForgetCommandName[] =;
const char kWrapKeyCommandName[] =;
const char kGenKeyPairCommandName[] =;
const char kRecoveryKeyStoreWrapCommandName[] =;
const char kPasskeysWrapPinCommandName[] =;
const char kRecoveryKeyStoreWrapAsMemberCommandName[] =;
const char kRecoveryKeyStoreRewrapCommandName[] =;

const char kRegisterPubKeysKey[] =;
const char kRegisterDeviceIdKey[] =;
const char kRegisterUVKeyPending[] =;

const char kHardwareKey[] =;
const char kSoftwareKey[] =;
const char kUserVerificationKey[] =;
const char kSoftwareUserVerificationKey[] =;

const char kWrappingPurpose[] =;
const char kWrappingKeyToWrap[] =;

const char kPinHash[] =;
const char kGeneration[] =;
const char kClaimKey[] =;

const char kWrappingResponsePublicKey[] =;
const char kWrappingResponseWrappedPrivateKey[] =;

const char kKeyPurposeSecurityDomainMemberKey[] =;
const char kKeyPurposeSecurityDomainSecret[] =;

const char kRecoveryKeyStorePinHash[] =;
const char kRecoveryKeyStoreCertXml[] =;
const char kRecoveryKeyStoreSigXml[] =;

const char kRecoveryKeyStoreURL[] =;
const char kRecoveryKeyStoreCertFileURL[] =;
const char kRecoveryKeyStoreSigFileURL[] =;

}  // namespace device::enclave