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

Side by Side Diff: crypto/rsa_private_key_ios.cc

Issue 10830183: Built crypto and crypto_unittests 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
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 // TODO(ios): see Apple's CryptoExercise sample code,
12 // Classes/SecKeyWrapper.{h,m} and Jens Alfke's MYCrypto, MYPrivateKey.m for
13 // ideas.
stuartmorgan 2012/08/06 16:07:31 Remove this from the CL, and start a discussion ab
msarda 2012/08/07 08:39:44 Done.
14
15 // static
16 RSAPrivateKey* RSAPrivateKey::Create(uint16 num_bits) {
17 // TODO(ios): call SecKeyGeneratePair.
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 // TODO(ios): call SecKeychainItemExport with kSecFormatOpenSSL.
65 NOTIMPLEMENTED();
66 return false;
67 }
68
69 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698