Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java120 AndroidKeyStoreSecretKey platformKey = generateAndroidKeyStoreKey(); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() local
123 new PlatformEncryptionKey(GENERATION_ID, platformKey), appKey, NULL_METADATA); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata()
128 new PlatformDecryptionKey(GENERATION_ID, platformKey), keysByAlias); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata()
139 AndroidKeyStoreSecretKey platformKey = generateAndroidKeyStoreKey(); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() local
142 new PlatformEncryptionKey(GENERATION_ID, platformKey), appKey, NON_NULL_METADATA); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata()
147 new PlatformDecryptionKey(GENERATION_ID, platformKey), keysByAlias); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata()
158 AndroidKeyStoreSecretKey platformKey = generateAndroidKeyStoreKey(); in decryptWrappedKeys_doesNotDieIfSomeKeysAreUnwrappable() local
161 new PlatformEncryptionKey(GENERATION_ID, platformKey), appKey, NULL_METADATA); in decryptWrappedKeys_doesNotDieIfSomeKeysAreUnwrappable()
174 AndroidKeyStoreSecretKey platformKey = generateAndroidKeyStoreKey(); in decryptWrappedKeys_throwsIfPlatformKeyGenerationIdDoesNotMatch() local
176 new PlatformEncryptionKey(GENERATION_ID, platformKey), generateKey(), in decryptWrappedKeys_throwsIfPlatformKeyGenerationIdDoesNotMatch()
[all …]
DRecoverableKeyGeneratorTest.java80 AndroidKeyStoreSecretKey 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()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
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()
DWrappedKey.java201 PlatformDecryptionKey platformKey, in unwrapKeys() argument
207 int platformKeyGenerationId = platformKey.getGenerationId(); in unwrapKeys()
218 platformKey.getGenerationId())); in unwrapKeys()
223 platformKey.getKey(), in unwrapKeys()