Home
last modified time | relevance | path

Searched refs:keyAlias (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java126 public static byte[] decryptBlobV1(String keyAlias, byte[] blob, byte[] applicationId) { in decryptBlobV1() argument
131 SecretKey decryptionKey = (SecretKey) keyStore.getKey(keyAlias, null); in decryptBlobV1()
133 throw new IllegalStateException("SP key is missing: " + keyAlias); in decryptBlobV1()
143 public static byte[] decryptBlob(String keyAlias, byte[] blob, byte[] applicationId) { in decryptBlob() argument
148 SecretKey decryptionKey = (SecretKey) keyStore.getKey(keyAlias, null); in decryptBlob()
150 throw new IllegalStateException("SP key is missing: " + keyAlias); in decryptBlob()
164 public static byte[] createBlob(String keyAlias, byte[] data, byte[] applicationId, long sid) { in createBlob() argument
181 keyStore.setEntry(keyAlias, in createBlob()
196 public static void destroyBlobKey(String keyAlias) { in destroyBlobKey() argument
201 keyStore.deleteEntry(keyAlias); in destroyBlobKey()
[all …]
DSyntheticPasswordManager.java1328 protected void destroySPBlobKey(String keyAlias) { in destroySPBlobKey() argument
1329 SyntheticPasswordCrypto.destroyBlobKey(keyAlias); in destroySPBlobKey()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/fakes/
DFakeCryptoBackupServer.java59 String keyAlias, Map<String, WrappedKeyProto.WrappedKey> tertiaryKeys) { in setActiveSecondaryKeyAlias() argument
60 mActiveSecondaryKeyAlias = keyAlias; in setActiveSecondaryKeyAlias()
62 mWrappedKeyStore.putIfAbsent(keyAlias, new HashMap<>()); in setActiveSecondaryKeyAlias()
63 Map<String, WrappedKeyProto.WrappedKey> keyStore = mWrappedKeyStore.get(keyAlias); in setActiveSecondaryKeyAlias()
DFakeCryptoBackupServerTest.java59 String keyAlias = "test"; in setActiveSecondaryKeyAlias_setsTheKeyAlias() local
60 mServer.setActiveSecondaryKeyAlias(keyAlias, Collections.emptyMap()); in setActiveSecondaryKeyAlias_setsTheKeyAlias()
61 assertThat(mServer.getActiveSecondaryKeyAlias().get()).isEqualTo(keyAlias); in setActiveSecondaryKeyAlias_setsTheKeyAlias()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiConfigStoreEncryptionUtil.java142 private SecretKey getOrCreateSecretKey(String keyAlias) { in getOrCreateSecretKey() argument
146 if (keyStore.containsAlias(keyAlias)) { // The key exists in key store. Get the key. in getOrCreateSecretKey()
148 .getEntry(keyAlias, null); in getOrCreateSecretKey()
160 KeyGenParameterSpec keyGenParameterSpec = new KeyGenParameterSpec.Builder(keyAlias, in getOrCreateSecretKey()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DEncryptionKeyHelper.java62 String keyAlias = CryptoSettings.getInstance(mContext).getActiveSecondaryKeyAlias().get(); in getActiveSecondaryKey() local
63 return mSecondaryKeyManagerProvider.get().get(keyAlias).get(); in getActiveSecondaryKey()
DKeyValueEncrypter.java116 String keyAlias, Map<String, WrappedKeyProto.WrappedKey> tertiaryKeys) { in setActiveSecondaryKeyAlias() argument
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/client/
DCryptoBackupServer.java66 String keyAlias, Map<String, WrappedKeyProto.WrappedKey> tertiaryKeys); in setActiveSecondaryKeyAlias() argument
/frameworks/base/packages/BackupEncryption/test/robolectric-integration/src/com/android/server/backup/encryption/
DRoundTripTest.java296 String keyAlias, Map<String, WrappedKeyProto.WrappedKey> tertiaryKeys) { in setActiveSecondaryKeyAlias() argument
297 mSecondaryKeyAlias = keyAlias; in setActiveSecondaryKeyAlias()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DMockSyntheticPasswordManager.java89 protected void destroySPBlobKey(String keyAlias) { in destroySPBlobKey() argument
/frameworks/base/packages/SystemUI/docs/
Dplugins.md164        keyAlias 'platform'