diff options
| author | 2022-07-28 20:05:19 +0000 | |
|---|---|---|
| committer | 2022-07-29 17:32:42 +0000 | |
| commit | f2f861c0a8913149d648370527ddbe2fa95d2a90 (patch) | |
| tree | 807c324a112e3130c08d4c22c42bed9176e130db /libs/androidfw/ResourceTimer.cpp | |
| parent | 2c06b9e0b9e50fe7456a459db548c9f3bc8395ee (diff) | |
SyntheticPasswordCrypto: clean up AES-GCM constants
SyntheticPasswordCrypto.PROFILE_KEY_IV_SIZE was apparently copied from
LockSettingsService.PROFILE_KEY_IV_SIZE, which is the IV size used when
encrypting profile passwords. But in SyntheticPasswordCrypto it has
nothing to do with profiles. Rename it to AES_GCM_IV_SIZE.
For consistency, also rename AES_KEY_LENGTH to AES_GCM_KEY_SIZE and
DEFAULT_TAG_LENGTH_BITS to AES_GCM_TAG_SIZE, and change the latter from
bits to bytes.
No change in behavior; this is just a cleanup.
Test: atest com.android.server.locksettings (on Cuttlefish)
Change-Id: I3358826a7299b62e5be46682291bfc02733c8b1f
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions