OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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 "base/crypto/rsa_private_key.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace base { |
| 10 |
| 11 // static |
| 12 RSAPrivateKey* RSAPrivateKey::CreateWithParams(uint16 num_bits, |
| 13 bool permanent, |
| 14 bool sensitive) { |
| 15 NOTIMPLEMENTED(); |
| 16 return NULL; |
| 17 } |
| 18 |
| 19 // static |
| 20 RSAPrivateKey* RSAPrivateKey::Create(uint16 num_bits) { |
| 21 return CreateWithParams(num_bits, |
| 22 false /* not permanent */, |
| 23 false /* not sensitive */); |
| 24 } |
| 25 |
| 26 // static |
| 27 RSAPrivateKey* RSAPrivateKey::CreateSensitive(uint16 num_bits) { |
| 28 return CreateWithParams(num_bits, |
| 29 true /* permanent */, |
| 30 true /* sensitive */); |
| 31 } |
| 32 |
| 33 // static |
| 34 RSAPrivateKey* RSAPrivateKey::CreateFromPrivateKeyInfoWithParams( |
| 35 const std::vector<uint8>& input, bool permanent, bool sensitive) { |
| 36 NOTIMPLEMENTED(); |
| 37 return NULL; |
| 38 } |
| 39 |
| 40 // static |
| 41 RSAPrivateKey* RSAPrivateKey::CreateFromPrivateKeyInfo( |
| 42 const std::vector<uint8>& input) { |
| 43 return CreateFromPrivateKeyInfoWithParams(input, |
| 44 false /* not permanent */, |
| 45 false /* not sensitive */); |
| 46 } |
| 47 |
| 48 // static |
| 49 RSAPrivateKey* RSAPrivateKey::CreateSensitiveFromPrivateKeyInfo( |
| 50 const std::vector<uint8>& input) { |
| 51 return CreateFromPrivateKeyInfoWithParams(input, |
| 52 true /* permanent */, |
| 53 true /* seneitive */); |
| 54 } |
| 55 |
| 56 // static |
| 57 RSAPrivateKey* RSAPrivateKey::FindFromPublicKeyInfo( |
| 58 const std::vector<uint8>& input) { |
| 59 NOTIMPLEMENTED(); |
| 60 return NULL; |
| 61 } |
| 62 |
| 63 RSAPrivateKey::RSAPrivateKey() { |
| 64 } |
| 65 |
| 66 RSAPrivateKey::~RSAPrivateKey() { |
| 67 } |
| 68 |
| 69 bool RSAPrivateKey::ExportPrivateKey(std::vector<uint8>* output) { |
| 70 NOTIMPLEMENTED(); |
| 71 return false; |
| 72 } |
| 73 |
| 74 bool RSAPrivateKey::ExportPublicKey(std::vector<uint8>* output) { |
| 75 NOTIMPLEMENTED(); |
| 76 return false; |
| 77 } |
| 78 |
| 79 } // namespace base |
OLD | NEW |