keystore2: Cleanup when user storage is locked
Adds functionality to clear sensitive key material in SUPER_KEY for a
particular user from Keystore when that user's storage is locked.
In addition, renames AfterFirstUnlock and BeforeFirstUnlock terminology
to better indicate what states clears a user's super keys.
Bug: b/376496265
Test: atest com.android.server.locksettings \
&& atest -p --include-subdirs system/security/keystore2 \
&& atest CtsKeystoreTestCases
Change-Id: I2441a99fa916209f4b63375deba2c87bd5f70563
11 files changed