#include "components/enterprise/client_certificates/core/ec_private_key_factory.h"
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "components/enterprise/client_certificates/core/ec_private_key.h"
#include "components/enterprise/client_certificates/core/private_key.h"
#include "crypto/ec_private_key.h"
#include "net/ssl/ssl_private_key.h"
namespace client_certificates {
namespace {
scoped_refptr<ECPrivateKey> CreateKey() { … }
scoped_refptr<ECPrivateKey> LoadKeyFromWrapped(
const std::vector<uint8_t>& wrapped_key) { … }
}
ECPrivateKeyFactory::ECPrivateKeyFactory() = default;
ECPrivateKeyFactory::~ECPrivateKeyFactory() = default;
void ECPrivateKeyFactory::CreatePrivateKey(PrivateKeyCallback callback) { … }
void ECPrivateKeyFactory::LoadPrivateKey(
const client_certificates_pb::PrivateKey& serialized_private_key,
PrivateKeyCallback callback) { … }
}