Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(723)

Side by Side Diff: crypto/rsa_private_key_ios.cc

Issue 10823309: Add RSAPrivateKey stub implementation for iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« crypto/crypto.gyp ('K') | « crypto/crypto.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 given it's lack of use, that seems like doing more work
stuartmorgan 2012/08/14 10:00:39 Change everything from "given it's lack" on to jus
msarda 2012/08/14 12:55:16 Done.
14 // for unclear value.
15
16 // static
17 RSAPrivateKey* RSAPrivateKey::Create(uint16 num_bits) {
18 NOTIMPLEMENTED();
19 return NULL;
20 }
21
22 // static
23 RSAPrivateKey* RSAPrivateKey::CreateSensitive(uint16 num_bits) {
24 NOTIMPLEMENTED();
25 return NULL;
26 }
27
28 // static
29 RSAPrivateKey* RSAPrivateKey::CreateFromPrivateKeyInfo(
30 const std::vector<uint8>& input) {
31 NOTIMPLEMENTED();
32 return NULL;
33 }
34
35 // static
36 RSAPrivateKey* RSAPrivateKey::CreateSensitiveFromPrivateKeyInfo(
37 const std::vector<uint8>& input) {
38 NOTIMPLEMENTED();
39 return NULL;
40 }
41
42 // static
43 RSAPrivateKey* RSAPrivateKey::FindFromPublicKeyInfo(
44 const std::vector<uint8>& input) {
45 NOTIMPLEMENTED();
46 return NULL;
47 }
48
49 RSAPrivateKey::RSAPrivateKey() : key_(NULL), public_key_(NULL) {}
50
51 RSAPrivateKey::~RSAPrivateKey() {
52 if (public_key_)
53 CFRelease(public_key_);
54 if (key_)
55 CFRelease(key_);
56 }
57
58 bool RSAPrivateKey::ExportPrivateKey(std::vector<uint8>* output) const {
59 NOTIMPLEMENTED();
60 return false;
61 }
62
63 bool RSAPrivateKey::ExportPublicKey(std::vector<uint8>* output) const {
64 NOTIMPLEMENTED();
65 return false;
66 }
67
68 } // namespace base
OLDNEW
« crypto/crypto.gyp ('K') | « crypto/crypto.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698