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

Unified Diff: vault_keyset.h

Issue 2645008: Update on feedback, update dbus API, add unit tests. TEST=manual,unit,BVT BUG=3628 323 (Closed) Base URL: ssh://git@chromiumos-git/cryptohome.git
Patch Set: Address second round of feedback. Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « username_passkey_unittest.cc ('k') | vault_keyset.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vault_keyset.h
diff --git a/vault_keyset.h b/vault_keyset.h
index 7509162c10a2b6812a62e1e7071a5f190c969bb7..f14169cfb6ba2f9e84e23f454265ae53bcdade5f 100644
--- a/vault_keyset.h
+++ b/vault_keyset.h
@@ -5,8 +5,10 @@
#ifndef VAULT_KEYSET_H_
#define VAULT_KEYSET_H_
-#include "cryptohome/entropy_source.h"
-#include "cryptohome/secure_blob.h"
+#include <base/basictypes.h>
+
+#include "entropy_source.h"
+#include "secure_blob.h"
namespace cryptohome {
@@ -20,10 +22,9 @@ const char kVaultKeysetSignature[] = "ch";
class VaultKeyset {
public:
VaultKeyset();
- VaultKeyset(const SecureBlob& source);
bool AssignBuffer(const SecureBlob& buffer);
- SecureBlob ToBuffer() const;
+ bool ToBuffer(SecureBlob* buffer) const;
void CreateRandom(const EntropySource& entropy_source);
@@ -37,6 +38,7 @@ class VaultKeyset {
static unsigned int SerializedSize();
private:
+
SecureBlob fek_;
SecureBlob fek_sig_;
SecureBlob fek_salt_;
@@ -49,6 +51,6 @@ class VaultKeyset {
DISALLOW_COPY_AND_ASSIGN(VaultKeyset);
};
-} // cryptohome
+} // namespace cryptohome
#endif // VAULT_KEYSET_H_
« no previous file with comments | « username_passkey_unittest.cc ('k') | vault_keyset.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698