Home
last modified time | relevance | path

Searched refs:platformKey (Results 1 – 5 of 5) sorted by relevance

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DWrappedKeyTest.java119 SecretKey platformKey = generateAndroidKeyStoreKey(); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() local
122 new PlatformEncryptionKey(GENERATION_ID, platformKey), appKey, NULL_METADATA); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata()
127 new PlatformDecryptionKey(GENERATION_ID, platformKey), keysByAlias); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata()
138 SecretKey platformKey = generateAndroidKeyStoreKey(); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() local
141 new PlatformEncryptionKey(GENERATION_ID, platformKey), appKey, NON_NULL_METADATA); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata()
146 new PlatformDecryptionKey(GENERATION_ID, platformKey), keysByAlias); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata()
157 SecretKey platformKey = generateAndroidKeyStoreKey(); in decryptWrappedKeys_doesNotDieIfSomeKeysAreUnwrappable() local
160 new PlatformEncryptionKey(GENERATION_ID, platformKey), appKey, NULL_METADATA); in decryptWrappedKeys_doesNotDieIfSomeKeysAreUnwrappable()
173 SecretKey platformKey = generateAndroidKeyStoreKey(); in decryptWrappedKeys_throwsIfPlatformKeyGenerationIdDoesNotMatch() local
175 new PlatformEncryptionKey(GENERATION_ID, platformKey), generateKey(), in decryptWrappedKeys_throwsIfPlatformKeyGenerationIdDoesNotMatch()
[all …]
H A DRecoverableKeyGeneratorTest.java80 SecretKey platformKey = generatePlatformKey(); in setUp() local
81 mPlatformKey = new PlatformEncryptionKey(TEST_GENERATION_ID, platformKey); in setUp()
82 mDecryptKey = new PlatformDecryptionKey(TEST_GENERATION_ID, platformKey); in setUp()
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DRecoverableKeyGenerator.java98 PlatformEncryptionKey platformKey, int userId, int uid, String alias, in generateAndStoreKey() argument
104 WrappedKey wrappedKey = WrappedKey.fromSecretKey(platformKey, key, metadata); in generateAndStoreKey()
143 @NonNull PlatformEncryptionKey platformKey, int userId, int uid, @NonNull String alias, in importKey()
148 WrappedKey wrappedKey = WrappedKey.fromSecretKey(platformKey, key, metadata); in importKey()
H A DWrappedKey.java201 PlatformDecryptionKey platformKey, in unwrapKeys() argument
207 int platformKeyGenerationId = platformKey.getGenerationId(); in unwrapKeys()
218 platformKey.getGenerationId())); in unwrapKeys()
223 platformKey.getKey(), in unwrapKeys()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
H A DSettingsSliceProviderTest.java489 final String platformKey = "platform_key"; in getDescendantUris_noAuthorityNorPath_returnsAllUris() local
491 SliceTestUtils.insertSliceToDb(mContext, platformKey, true /* isPlatformSlice */, in getDescendantUris_noAuthorityNorPath_returnsAllUris()
505 .appendPath(platformKey) in getDescendantUris_noAuthorityNorPath_returnsAllUris()