Searched refs:platformKey (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | WrappedKeyTest.java | 120 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 …]
|
D | RecoverableKeyGeneratorTest.java | 80 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/ |
D | RecoverableKeyGenerator.java | 98 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()
|
D | WrappedKey.java | 201 PlatformDecryptionKey platformKey, in unwrapKeys() argument 207 int platformKeyGenerationId = platformKey.getGenerationId(); in unwrapKeys() 218 platformKey.getGenerationId())); in unwrapKeys() 223 platformKey.getKey(), in unwrapKeys()
|