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

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

Issue 1347002: Add Mac implementations of new SymmetricKey and Encryptor classes. (Closed)
Patch Set: Responding to feedback Created 10 years, 9 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/crypto/symmetric_key.h" 5 #include "base/crypto/symmetric_key.h"
6 6
7 namespace base { 7 namespace base {
8 8
9 // TODO(albertb): Implement on Windows. 9 // TODO(albertb): Implement on Windows.
10 10
11 // static 11 // static
12 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm, unsigned int key_size) { 12 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm,
13 size_t key_size_in_bits) {
13 return NULL; 14 return NULL;
14 } 15 }
15 16
16 // static 17 // static
17 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm, 18 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm,
18 const std::string& password, 19 const std::string& password,
19 const std::string& salt, 20 const std::string& salt,
20 size_t iterations, 21 size_t iterations,
21 size_t key_size) { 22 size_t key_size_in_bits) {
22 return NULL; 23 return NULL;
23 } 24 }
24 25
25 bool SymmetricKey::GetRawKey(std::string* raw_key) { 26 bool SymmetricKey::GetRawKey(std::string* raw_key) {
26 return false; 27 return false;
27 } 28 }
28 29
29 } // namespace base 30 } // namespace base
OLDNEW
« base/crypto/symmetric_key_mac.cc ('K') | « base/crypto/symmetric_key_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698