History log of /system/vold/KeyStorage.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
df528a7011b302c91579898c4a37361214ab05bb 09-Mar-2016 Paul Crowley <paulcrowley@google.com> Run clang-format over ext4crypt related code

The formatting here is inconsistent with Android house style; use
clang-format to bring it back into line.

Change-Id: Id1fe6ff54e9b668ca88c3fc021ae0a5bdd1327eb
/system/vold/KeyStorage.h
a051eb7a22b7cd97e66d2f22b64884f8ebc73952 09-Mar-2016 Paul Crowley <paulcrowley@google.com> Use pointers not references for out arguments

Google/Android C++ style requires that arguments passed in for writing
should be pointers, not references, so that it's visible in the caller
that they'll be written to.

Bug: 27566014
Change-Id: I5cd55906cc4b2f61c8b97b223786be0b3ce28862
/system/vold/KeyStorage.h
0572080814ea5f7456d9feea05f936c858178159 08-Feb-2016 Paul Crowley <paulcrowley@google.com> Password security for FBE disk encryption keys

Added a new call change_user_key which changes the way that disk
encryption keys are protected; a key can now be protected with a
combination of an auth token and a secret which is a hashed password.
Both of these are passed to unlock_user_key.

This change introduces a security bug, b/26948053, which must be fixed
before we ship.

Bug: 22950892
Change-Id: Iac1e45bb6f86f2af5c472c70a0fe3228b02115bf
/system/vold/KeyStorage.h
13ffd8ef7a02a1b4b4d9a74f45d4a5bb6b814313 27-Jan-2016 Paul Crowley <paulcrowley@google.com> Improvements to the key storage module

The key storage module didn't comply with Android coding standards
and had room for improvemnet in a few other ways, so have cleaned up.

Change-Id: I260ccff316423169cf887e538113b5ea400892f2
/system/vold/KeyStorage.h
1ef255816c50e462acc23383a9ff747c5f55c4ff 21-Jan-2016 Paul Crowley <paulcrowley@google.com> Use a keymaster-based key storage module

Instead of writing raw keys, encrypt the keys with keymaster. This
paves the way to protecting them with auth tokens and passwords later.
In addition, fold in the hash of a 16k file into their encryption, to
ensure secure deletion works properly.

Now even C++ier!

Bug: 22502684
Bug: 22950892
Change-Id: If70f139e342373533c42d5a298444b8438428322
/system/vold/KeyStorage.h