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

Side by Side Diff: chrome/browser/chromeos/cros/cert_library.h

Issue 7756025: Changed OAuth token+secret encryption to use supplemental user key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual const CertList& GetCertificates() const = 0; 89 virtual const CertList& GetCertificates() const = 0;
90 90
91 // Returns the current list of user certificates. 91 // Returns the current list of user certificates.
92 virtual const CertList& GetUserCertificates() const = 0; 92 virtual const CertList& GetUserCertificates() const = 0;
93 93
94 // Returns the current list of server certificates. 94 // Returns the current list of server certificates.
95 virtual const CertList& GetServerCertificates() const = 0; 95 virtual const CertList& GetServerCertificates() const = 0;
96 96
97 // Returns the current list of server CA certificates. 97 // Returns the current list of server CA certificates.
98 virtual const CertList& GetCACertificates() const = 0; 98 virtual const CertList& GetCACertificates() const = 0;
99
100 // Encrypts |raw_data| with supplemental user key.
101 virtual bool EncryptWithSupplementalUserKey(const std::string& raw_data,
102 std::string* encryped_data) const = 0;
103 // Decrypts |encryped_data| with supplemental user key.
104 virtual bool DecryptWithSupplementalUserKey(const std::string& encryped_data,
105 std::string* raw_data) const = 0;
99 }; 106 };
100 107
101 } // namespace chromeos 108 } // namespace chromeos
102 109
103 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ 110 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/cert_library.cc » ('j') | chrome/browser/chromeos/login/parallel_authenticator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698