OLD | NEW |
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 |
OLD | NEW |