chromium/crypto/user_verifying_key.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 "crypto/user_verifying_key.h"

#include "base/check.h"

namespace crypto {

namespace {

std::unique_ptr<UserVerifyingKeyProvider> (*g_mock_provider)() =;

}  // namespace

UserVerifyingKeyProvider::Config::Config() = default;
UserVerifyingKeyProvider::Config::Config(Config&& config) = default;
UserVerifyingKeyProvider::Config& UserVerifyingKeyProvider::Config::operator=(
    Config&& config) = default;
UserVerifyingKeyProvider::Config::~Config() = default;

UserVerifyingSigningKey::~UserVerifyingSigningKey() = default;

bool UserVerifyingSigningKey::IsHardwareBacked() const {}

UserVerifyingKeyProvider::~UserVerifyingKeyProvider() = default;

RefCountedUserVerifyingSigningKey::RefCountedUserVerifyingSigningKey(
    std::unique_ptr<crypto::UserVerifyingSigningKey> key)
    :{}

RefCountedUserVerifyingSigningKey::~RefCountedUserVerifyingSigningKey() =
    default;

#if BUILDFLAG(IS_WIN)
std::unique_ptr<UserVerifyingKeyProvider> GetUserVerifyingKeyProviderWin();
void IsKeyCredentialManagerAvailable(base::OnceCallback<void(bool)> callback);
#endif

#if BUILDFLAG(IS_MAC)
std::unique_ptr<UserVerifyingKeyProvider> GetUserVerifyingKeyProviderMac(
    UserVerifyingKeyProvider::Config config);
void AreMacUnexportableKeysAvailable(UserVerifyingKeyProvider::Config config,
                                     base::OnceCallback<void(bool)> callback);
#endif

std::unique_ptr<UserVerifyingKeyProvider> GetUserVerifyingKeyProvider(
    UserVerifyingKeyProvider::Config config) {}

void AreUserVerifyingKeysSupported(UserVerifyingKeyProvider::Config config,
                                   base::OnceCallback<void(bool)> callback) {}

namespace internal {

void SetUserVerifyingKeyProviderForTesting(
    std::unique_ptr<UserVerifyingKeyProvider> (*func)()) {}

}  // namespace internal

}  // namespace crypto