Remove extra line from unit_tests.isolate
[chromium-blink-merge.git] / crypto / rsa_private_key_ios.cc
blobd96b3e917ab058cdb3595da02b6bb3c6db7a4732
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.
5 #include "crypto/rsa_private_key.h"
7 #include "base/logging.h"
9 namespace crypto {
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.
15 // static
16 RSAPrivateKey* RSAPrivateKey::Create(uint16 num_bits) {
17 NOTIMPLEMENTED();
18 return NULL;
21 // static
22 RSAPrivateKey* RSAPrivateKey::CreateSensitive(uint16 num_bits) {
23 NOTIMPLEMENTED();
24 return NULL;
27 // static
28 RSAPrivateKey* RSAPrivateKey::CreateFromPrivateKeyInfo(
29 const std::vector<uint8>& input) {
30 NOTIMPLEMENTED();
31 return NULL;
34 // static
35 RSAPrivateKey* RSAPrivateKey::CreateSensitiveFromPrivateKeyInfo(
36 const std::vector<uint8>& input) {
37 NOTIMPLEMENTED();
38 return NULL;
41 // static
42 RSAPrivateKey* RSAPrivateKey::FindFromPublicKeyInfo(
43 const std::vector<uint8>& input) {
44 NOTIMPLEMENTED();
45 return NULL;
48 RSAPrivateKey::RSAPrivateKey() : key_(NULL), public_key_(NULL) {}
50 RSAPrivateKey::~RSAPrivateKey() {
51 if (public_key_)
52 CFRelease(public_key_);
53 if (key_)
54 CFRelease(key_);
57 bool RSAPrivateKey::ExportPrivateKey(std::vector<uint8>* output) const {
58 NOTIMPLEMENTED();
59 return false;
62 bool RSAPrivateKey::ExportPublicKey(std::vector<uint8>* output) const {
63 NOTIMPLEMENTED();
64 return false;
67 } // namespace base