| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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/rsa_private_key.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 namespace crypto { | |
| 10 | |
| 11 // |RSAPrivateKey| is not used on iOS. This implementation was written so that | |
| 12 // it would compile. It may be possible to use the NSS implementation as a real | |
| 13 // implementation, but it hasn't yet been necessary. | |
| 14 | |
| 15 // static | |
| 16 RSAPrivateKey* RSAPrivateKey::Create(uint16 num_bits) { | |
| 17 NOTIMPLEMENTED(); | |
| 18 return NULL; | |
| 19 } | |
| 20 | |
| 21 // static | |
| 22 RSAPrivateKey* RSAPrivateKey::CreateSensitive(uint16 num_bits) { | |
| 23 NOTIMPLEMENTED(); | |
| 24 return NULL; | |
| 25 } | |
| 26 | |
| 27 // static | |
| 28 RSAPrivateKey* RSAPrivateKey::CreateFromPrivateKeyInfo( | |
| 29 const std::vector<uint8>& input) { | |
| 30 NOTIMPLEMENTED(); | |
| 31 return NULL; | |
| 32 } | |
| 33 | |
| 34 // static | |
| 35 RSAPrivateKey* RSAPrivateKey::CreateSensitiveFromPrivateKeyInfo( | |
| 36 const std::vector<uint8>& input) { | |
| 37 NOTIMPLEMENTED(); | |
| 38 return NULL; | |
| 39 } | |
| 40 | |
| 41 // static | |
| 42 RSAPrivateKey* RSAPrivateKey::FindFromPublicKeyInfo( | |
| 43 const std::vector<uint8>& input) { | |
| 44 NOTIMPLEMENTED(); | |
| 45 return NULL; | |
| 46 } | |
| 47 | |
| 48 RSAPrivateKey::RSAPrivateKey() : key_(NULL), public_key_(NULL) {} | |
| 49 | |
| 50 RSAPrivateKey::~RSAPrivateKey() { | |
| 51 if (public_key_) | |
| 52 CFRelease(public_key_); | |
| 53 if (key_) | |
| 54 CFRelease(key_); | |
| 55 } | |
| 56 | |
| 57 bool RSAPrivateKey::ExportPrivateKey(std::vector<uint8>* output) const { | |
| 58 NOTIMPLEMENTED(); | |
| 59 return false; | |
| 60 } | |
| 61 | |
| 62 bool RSAPrivateKey::ExportPublicKey(std::vector<uint8>* output) const { | |
| 63 NOTIMPLEMENTED(); | |
| 64 return false; | |
| 65 } | |
| 66 | |
| 67 } // namespace base | |
| OLD | NEW |