chromium/chrome/browser/enterprise/connectors/device_trust/attestation/browser/google_keys.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "chrome/browser/enterprise/connectors/device_trust/attestation/browser/google_keys.h"

namespace enterprise_connectors {

namespace {
// VA server instance for prod.
// http://test-dvproxy-server.sandbox.google.com
constexpr char kDefaultVASigningPublicKey[] =;
constexpr char kDefaultVAEncryptionPublicKey[] =;
constexpr char kDefaultVAEncryptionPublicKeyID[] =;

// VA server instance for QA.
// https://qa-dvproxy-server-gws.sandbox.google.com
constexpr char kTestVASigningPublicKey[] =;
constexpr char kTestVAEncryptionPublicKey[] =;
constexpr char kTestVAEncryptionPublicKeyID[] =;

// Ignores the extra null-terminated element and converts only the effective
// part to std::string.
template <size_t size>
std::string ZeroTerminatedCharArrayToString(
    const char (&array)[size]) noexcept {}

}  // namespace

GoogleKeys ::GoogleKeys() {}

GoogleKeys::GoogleKeys(const DefaultGoogleRsaPublicKeySet& default_key_set)
    :{}

GoogleKeys::~GoogleKeys() = default;

const GoogleRsaPublicKey& GoogleKeys::va_signing_key(VAType va_type) const {}
const GoogleRsaPublicKey& GoogleKeys::va_encryption_key(VAType va_type) const {}

}  // namespace enterprise_connectors