OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "net/base/x509_certificate.h" | 11 #include "net/cert/x509_certificate.h" |
12 | 12 |
13 namespace crypto { | 13 namespace crypto { |
14 class SymmetricKey; | 14 class SymmetricKey; |
15 } | 15 } |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 class CertLibrary { | 19 class CertLibrary { |
20 public: | 20 public: |
21 | 21 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual std::string EncryptWithUserKey(const std::string& token) = 0; | 115 virtual std::string EncryptWithUserKey(const std::string& token) = 0; |
116 | 116 |
117 // Decrypts |token| with supplemental user key (unique for each user). | 117 // Decrypts |token| with supplemental user key (unique for each user). |
118 virtual std::string DecryptWithUserKey( | 118 virtual std::string DecryptWithUserKey( |
119 const std::string& encrypted_token_hex) = 0; | 119 const std::string& encrypted_token_hex) = 0; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace chromeos | 122 } // namespace chromeos |
123 | 123 |
124 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 124 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
OLD | NEW |