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

Side by Side Diff: base/crypto/rsa_private_key_openssl.cc

Issue 3855004: Make USE_OPENSSL and USE_NSS mutually exclusive (Closed)
Patch Set: wtc comments Created 10 years, 2 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
« no previous file with comments | « base/crypto/encryptor_openssl.cc ('k') | base/crypto/signature_creator_openssl.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) 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
OLDNEW
« no previous file with comments | « base/crypto/encryptor_openssl.cc ('k') | base/crypto/signature_creator_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698