diff options
author | Rubin Xu <rubinxu@google.com> | 2017-10-31 15:40:32 +0000 |
---|---|---|
committer | Rubin Xu <rubinxu@google.com> | 2017-11-04 00:18:10 +0000 |
commit | 24bfd61d3c8bac869eb4e525e382476d3b7f5eb9 (patch) | |
tree | 92635d659c740d4e4b8288a73217e7a71db12325 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 571c8a450702a23b2290796f46d38ac54a9e034c (diff) |
Swap the order of synthetic password wrapping
Synthetic password is double encrypted by both a random auth-bound keymaster
key and a secret derived from user password. In order to avoid a password
verification oracle without rate limiting, synthetic password needs to be
encrypted by the derived secret first, and then the auth-bound key. This
change corrects the order of encryptions, as well as adds an upgrade path to
refresh existing credentials.
Test: Running an old build with existing password, flash to new build,
verify the device unlocks successfully.
Bug: 68694819
Change-Id: Ifdaa01f3f4ddd5bb3f3d808d38f440ced729034f
Merged-In: Ifdaa01f3f4ddd5bb3f3d808d38f440ced729034f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions