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

Side by Side Diff: chromeos/dbus/cryptohome_client.h

Issue 13818032: Added dbus bindings for new cryptohomed attestation APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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) 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 CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_
6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 // A nonce will be appended to the challenge before signing; this method 317 // A nonce will be appended to the challenge before signing; this method
318 // cannot be used to sign arbitrary data. The |callback| will be called when 318 // cannot be used to sign arbitrary data. The |callback| will be called when
319 // the dbus call completes. When the operation completes, the 319 // the dbus call completes. When the operation completes, the
320 // AsyncCallStatusWithDataHandler signal handler is called. 320 // AsyncCallStatusWithDataHandler signal handler is called.
321 virtual void TpmAttestationSignSimpleChallenge( 321 virtual void TpmAttestationSignSimpleChallenge(
322 AttestationKeyType key_type, 322 AttestationKeyType key_type,
323 const std::string& key_name, 323 const std::string& key_name,
324 const std::string& challenge, 324 const std::string& challenge,
325 const AsyncMethodCallback& callback) = 0; 325 const AsyncMethodCallback& callback) = 0;
326 326
327 // Gets the payload associated with the key specified by |key_type| and
328 // |key_name|. The |callback| will be called when the operation completes.
329 // If the key does not exist the callback |result| parameter will be false.
330 // If no payload has been set for the key the callback |result| parameter will
331 // be true and the |data| parameter will be empty.
332 virtual void TpmAttestationGetKeyPayload(
333 AttestationKeyType key_type,
334 const std::string& key_name,
335 const DataMethodCallback& callback) = 0;
336
337 // Sets the |payload| associated with the key specified by |key_type| and
338 // |key_name|. The |callback| will be called when the operation completes.
339 // If the operation succeeds, the callback |result| parameter will be true.
340 virtual void TpmAttestationSetKeyPayload(
341 AttestationKeyType key_type,
342 const std::string& key_name,
343 const std::string& payload,
344 const BoolDBusMethodCallback& callback) = 0;
345
327 protected: 346 protected:
328 // Create() should be used instead. 347 // Create() should be used instead.
329 CryptohomeClient(); 348 CryptohomeClient();
330 349
331 private: 350 private:
332 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); 351 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient);
333 }; 352 };
334 353
335 } // namespace chromeos 354 } // namespace chromeos
336 355
337 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 356 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/device_local_account_browsertest.cc ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698