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.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 …]
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()
/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()