Searched refs:keysByAlias (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | WrappedKeyTest.java | 123 HashMap<String, WrappedKey> keysByAlias = new HashMap<>(); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() local 124 keysByAlias.put(alias, wrappedKey); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() 127 new PlatformDecryptionKey(GENERATION_ID, platformKey), keysByAlias); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() 142 HashMap<String, WrappedKey> keysByAlias = new HashMap<>(); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() local 143 keysByAlias.put(alias, wrappedKey); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() 146 new PlatformDecryptionKey(GENERATION_ID, platformKey), keysByAlias); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() 161 HashMap<String, WrappedKey> keysByAlias = new HashMap<>(); in decryptWrappedKeys_doesNotDieIfSomeKeysAreUnwrappable() local 162 keysByAlias.put(alias, wrappedKey); in decryptWrappedKeys_doesNotDieIfSomeKeysAreUnwrappable() 166 keysByAlias); in decryptWrappedKeys_doesNotDieIfSomeKeysAreUnwrappable() 177 HashMap<String, WrappedKey> keysByAlias = new HashMap<>(); in decryptWrappedKeys_throwsIfPlatformKeyGenerationIdDoesNotMatch() local [all …]
|
/frameworks/base/core/java/android/security/keystore/recovery/ |
D | RecoverySession.java | 170 ArrayMap<String, Key> keysByAlias = new ArrayMap<>(grantAliases.size()); in getKeysFromGrants() local 184 keysByAlias.put(alias, key); in getKeysFromGrants() 186 return keysByAlias; in getKeysFromGrants()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverableKeyStoreManager.java | 656 Map<String, byte[]> keysByAlias = recoverApplicationKeys(recoveryKey, in recoverKeyChainSnapshot() local 658 return importKeyMaterials(userId, uid, keysByAlias); in recoverKeyChainSnapshot() 676 int userId, int uid, Map<String, byte[]> keysByAlias) in importKeyMaterials() argument 678 ArrayMap<String, String> grantAliasesByAlias = new ArrayMap<>(keysByAlias.size()); in importKeyMaterials() 679 for (String alias : keysByAlias.keySet()) { in importKeyMaterials() 680 mApplicationKeyStorage.setSymmetricKeyEntry(userId, uid, alias, keysByAlias.get(alias)); in importKeyMaterials()
|