Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "crypto/ec_private_key.h" |
| 6 | |
| 7 | #include "base/logging.h" |
| 8 | |
| 9 | namespace crypto { |
| 10 | |
| 11 | ECPrivateKey::~ECPrivateKey() {} |
| 12 | |
| 13 | // static |
| 14 | bool ECPrivateKey::IsSupported() { |
| 15 | return false; |
| 16 | } |
| 17 | |
| 18 | // static |
| 19 | ECPrivateKey* ECPrivateKey::Create() { |
| 20 | NOTIMPLEMENTED(); |
| 21 | return NULL; |
| 22 | } |
| 23 | |
| 24 | // static |
| 25 | ECPrivateKey* ECPrivateKey::CreateSensitive() { |
| 26 | NOTIMPLEMENTED(); |
| 27 | return NULL; |
| 28 | } |
| 29 | |
| 30 | // static |
| 31 | ECPrivateKey* ECPrivateKey::CreateFromEncryptedPrivateKeyInfo( |
| 32 | const std::string& password, |
| 33 | const std::vector<uint8>& encrypted_private_key_info, |
| 34 | const std::vector<uint8>& subject_public_key_info) { |
| 35 | NOTIMPLEMENTED(); |
| 36 | return NULL; |
| 37 | } |
| 38 | |
| 39 | // static |
| 40 | ECPrivateKey* ECPrivateKey::CreateSensitiveFromEncryptedPrivateKeyInfo( |
| 41 | const std::string& password, |
| 42 | const std::vector<uint8>& encrypted_private_key_info, |
| 43 | const std::vector<uint8>& subject_public_key_info) { |
| 44 | NOTIMPLEMENTED(); |
| 45 | return NULL; |
| 46 | } |
| 47 | |
| 48 | bool ECPrivateKey::ExportEncryptedPrivateKey( |
| 49 | const std::string& password, |
| 50 | int iterations, |
| 51 | std::vector<uint8>* output) { |
| 52 | NOTIMPLEMENTED(); |
| 53 | return false; |
| 54 | } |
| 55 | |
| 56 | bool ECPrivateKey::ExportPublicKey(std::vector<uint8>* output) { |
| 57 | NOTIMPLEMENTED(); |
| 58 | return false; |
| 59 | } |
| 60 | |
| 61 | bool ECPrivateKey::ExportValue(std::vector<uint8>* output) { |
| 62 | NOTIMPLEMENTED(); |
| 63 | return false; |
| 64 | } |
| 65 | |
| 66 | bool ECPrivateKey::ExportECParams(std::vector<uint8>* output) { |
| 67 | NOTIMPLEMENTED(); |
| 68 | return false; |
| 69 | } |
| 70 | |
| 71 | } // namespace crypto |