Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Unified Diff: crypto/ec_signature_creator.cc

Issue 956613002: Reland "Cut down /crypto and switch what is left of it to boringssl". (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/ec_signature_creator.h ('k') | crypto/ec_signature_creator_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/ec_signature_creator.cc
diff --git a/crypto/ec_signature_creator.cc b/crypto/ec_signature_creator.cc
deleted file mode 100644
index a6887bc117b7f5e7206e42d62367a9c3be571ad3..0000000000000000000000000000000000000000
--- a/crypto/ec_signature_creator.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "crypto/ec_signature_creator.h"
-
-#include "base/logging.h"
-#include "crypto/ec_signature_creator_impl.h"
-
-namespace crypto {
-
-namespace {
-
-ECSignatureCreatorFactory* g_factory_ = NULL;
-
-} // namespace
-
-// static
-ECSignatureCreator* ECSignatureCreator::Create(ECPrivateKey* key) {
- if (g_factory_)
- return g_factory_->Create(key);
- return new ECSignatureCreatorImpl(key);
-}
-
-// static
-void ECSignatureCreator::SetFactoryForTesting(
- ECSignatureCreatorFactory* factory) {
- // We should always clear the factory after each test to avoid
- // use-after-free problems.
- DCHECK(!g_factory_ || !factory);
- g_factory_ = factory;
-}
-
-} // namespace crypto
« no previous file with comments | « crypto/ec_signature_creator.h ('k') | crypto/ec_signature_creator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698