History log of /frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/SecureBoxTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b9a220b9b50ef8d0e19d619721209233b3253c2c 21-Dec-2017 Robert Berry <robertberry@google.com> Implement recoverKeys

This implements all of recoverKeys, except for loading keys into the
AndroidKeyStore. Also omitting re-enrolling keys into the recoverable
store for now, as it is not clear whether the user will have a lock
screen set at this point. If they do not have a lock screen set, we
cannot re-enroll keys, as the platform-decrypt key is bound to the
lock screen. Also modifies SecureBox to throw AEADBadTagException for
any issues with the encrypted payload. IllegalArgumentException is
a runtime exception, so would be unexpected, but might occur if the
encrypted payload is for some reason garbage. Also, throw NPE if the
payload is null, as that is a programmer error - not something that
should ever occur at runtime.

Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I4f0be412c3044f3472a6aed514f1caf54b7ee41f
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/SecureBoxTest.java
c69d8097e5fb63de6ff66f252012506bd5406c7c 19-Dec-2017 Bo Zhu <bozhu@google.com> Implement the SecureBox crypto functions

SecureBox provides a set of simple interfaces for performing encryptions
and decryptions, by using a public key owned by the recipient and/or a
secret shared by the sender and the recipient.

Bug: 69056040
Change-Id: I45abd7ec5d6f1fd6f6e3ad6d84352958dd838dd7
Fixes: 69056040
Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/SecureBoxTest.java