summaryrefslogtreecommitdiffstats
path: root/crypto/ec_private_key_openssl.cc
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-09 05:08:51 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-09 05:08:51 +0000
commiteaa60485f027b00047a2e142d9616ede4333a46b (patch)
treeeb20edb20255f8f76d76f3ff4f1399a04a6d9398 /crypto/ec_private_key_openssl.cc
parente80f64a0f8ed441443bec21eeb5c732398d11377 (diff)
downloadchromium_src-eaa60485f027b00047a2e142d9616ede4333a46b.zip
chromium_src-eaa60485f027b00047a2e142d9616ede4333a46b.tar.gz
chromium_src-eaa60485f027b00047a2e142d9616ede4333a46b.tar.bz2
Add ECPrivateKey for Elliptic Curve keypair generation.
The implementation uses NSS on all platforms unless USE_OPENSSL is defined (which is only stubbed out in this CL). BUG=88782 TEST=ECPrivateKeyUnitTest Review URL: http://codereview.chromium.org/8413024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109188 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/ec_private_key_openssl.cc')
-rw-r--r--crypto/ec_private_key_openssl.cc66
1 files changed, 66 insertions, 0 deletions
diff --git a/crypto/ec_private_key_openssl.cc b/crypto/ec_private_key_openssl.cc
new file mode 100644
index 0000000..40e6f04
--- /dev/null
+++ b/crypto/ec_private_key_openssl.cc
@@ -0,0 +1,66 @@
+// Copyright (c) 2011 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_private_key.h"
+
+#include "base/logging.h"
+
+namespace crypto {
+
+ECPrivateKey::~ECPrivateKey() {}
+
+// static
+ECPrivateKey* ECPrivateKey::Create() {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+// static
+ECPrivateKey* ECPrivateKey::CreateSensitive() {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+// static
+ECPrivateKey* ECPrivateKey::CreateFromEncryptedPrivateKeyInfo(
+ const std::string& password,
+ const std::vector<uint8>& encrypted_private_key_info,
+ const std::vector<uint8>& subject_public_key_info) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+// static
+ECPrivateKey* ECPrivateKey::CreateSensitiveFromEncryptedPrivateKeyInfo(
+ const std::string& password,
+ const std::vector<uint8>& encrypted_private_key_info,
+ const std::vector<uint8>& subject_public_key_info) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+bool ECPrivateKey::ExportEncryptedPrivateKey(
+ const std::string& password,
+ int iterations,
+ std::vector<uint8>* output) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool ECPrivateKey::ExportPublicKey(std::vector<uint8>* output) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool ECPrivateKey::ExportValue(std::vector<uint8>* output) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool ECPrivateKey::ExportECParams(std::vector<uint8>* output) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+} // namespace crypto