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

Side by Side Diff: crypto/rsa_private_key_ios.cc

Issue 17265013: Remove platform-specific implementations of RSAPrivateKey and SignatureCreator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix colliding serial numbers Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « crypto/rsa_private_key.h ('k') | crypto/rsa_private_key_mac.cc » ('j') | 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 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
OLDNEW
« no previous file with comments | « crypto/rsa_private_key.h ('k') | crypto/rsa_private_key_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698