/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyStoreTest.java | 561 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getProvider() 562 assertNotNull(keyStore.getProvider()); in test_KeyStore_getProvider() 573 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getType() 574 assertNotNull(keyStore.getType()); in test_KeyStore_getType() 580 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getKey() 582 keyStore.getKey(null, null); in test_KeyStore_getKey() 583 fail(keyStore.getType()); in test_KeyStore_getKey() 588 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getKey() 589 populate(keyStore); in test_KeyStore_getKey() 593 keyStore.getKey(null, null); in test_KeyStore_getKey() [all …]
|
D | KeyAttestationTest.java | 390 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testEcAttestation_NoChallenge() local 391 keyStore.load(null); in testEcAttestation_NoChallenge() 394 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_NoChallenge() 401 keyStore.deleteEntry(keystoreAlias); in testEcAttestation_NoChallenge() 430 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testEcAttestation_DeviceLocked() local 431 keyStore.load(null); in testEcAttestation_DeviceLocked() 434 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_DeviceLocked() 440 keyStore.deleteEntry(keystoreAlias); in testEcAttestation_DeviceLocked() 508 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testAttestationKmVersionMatchesFeatureVersion() local 509 keyStore.load(null); in testAttestationKmVersionMatchesFeatureVersion() [all …]
|
D | ImportWrappedKeyTest.java | 159 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey_AES() local 160 keyStore.load(null, null); in testKeyStore_ImportWrappedKey_AES() 162 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_AES() 164 Key importedKey = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_AES() 283 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey_3DES() local 284 keyStore.load(null, null); in testKeyStore_ImportWrappedKey_3DES() 286 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_3DES() 288 Key importedKey = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_3DES() 350 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey_RSA() local 351 keyStore.load(null, null); in testKeyStore_ImportWrappedKey_RSA() [all …]
|
D | AESCipherNistCavpKatTest.java | 309 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in runKatTest() local 310 keyStore.load(null); in runKatTest() 311 keyStore.setEntry(keyAlias, in runKatTest() 320 SecretKey key = (SecretKey) keyStore.getKey(keyAlias, null); in runKatTest() 339 keyStore.deleteEntry(keyAlias); in runKatTest()
|
D | KeyAgreementTest.java | 60 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in deleteKey() local 61 keyStore.load(null); in deleteKey() 62 keyStore.deleteEntry(PRIVATE_KEY_ALIAS); in deleteKey()
|
D | Curve25519Test.java | 63 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in deleteEntry() local 64 keyStore.deleteEntry(entry); in deleteEntry()
|
D | DeviceOwnerKeyManagementTest.java | 584 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in checkDeviceLocked() local 585 keyStore.load(null); in checkDeviceLocked() 588 Certificate []certificates = keyStore.getCertificateChain(keystoreAlias); in checkDeviceLocked() 596 keyStore.deleteEntry(keystoreAlias); in checkDeviceLocked()
|
D | SignatureTest.java | 488 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey() local 489 keyStore.load(null); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey() 491 (KeyStore.PrivateKeyEntry) keyStore.getEntry(key.getAlias(), null); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
|
D | AndroidKeyStoreTest.java | 777 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tearDown() local 778 keyStore.load(null, null); in tearDown() 779 Enumeration<String> aliases = keyStore.aliases(); in tearDown() 782 keyStore.deleteEntry(alias); in tearDown()
|
D | KeyPairGeneratorTest.java | 1967 serverKeyStore.keyStore.setCertificateEntry( in assertUsableForTLSPeerAuthentication() 1973 TestKeyStore.createTrustManagers(serverKeyStore.keyStore)); in assertUsableForTLSPeerAuthentication()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | Utils.java | 40 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createBiometricBoundKey() local 41 keyStore.load(null); in createBiometricBoundKey() 60 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createTimeBoundSecretKey_deprecated() local 61 keyStore.load(null); in createTimeBoundSecretKey_deprecated() 79 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in initCipher() local 80 keyStore.load(null); in initCipher() 81 SecretKey secretKey = (SecretKey) keyStore.getKey(keyName, null); in initCipher() 91 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in initAeadCipher() local 92 keyStore.load(null); in initAeadCipher() 93 SecretKey secretKey = (SecretKey) keyStore.getKey(keyName, null); in initAeadCipher() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CertificateTest.java | 154 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in createWfaKeyStore() local 155 keyStore.load(null, null); in createWfaKeyStore() 158 keyStore.setCertificateEntry(String.format("%d", index++), cert); in createWfaKeyStore() 160 return keyStore; in createWfaKeyStore() 204 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in getDeviceCertificates() local 205 keyStore.load(null, null); in getDeviceCertificates() 207 List<String> aliases = Collections.list(keyStore.aliases()); in getDeviceCertificates() 212 assertTrue(keyStore.isCertificateEntry(alias)); in getDeviceCertificates() 213 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); in getDeviceCertificates()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | LskfBoundKeysTest.java | 115 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createKey() local 116 keyStore.load(null); in createKey() 144 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tryEncrypt() local 145 keyStore.load(null); in tryEncrypt() 146 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in tryEncrypt()
|
D | UnlockedDeviceRequiredKeysTest.java | 172 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createKey() local 173 keyStore.load(null); in createKey() 202 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tryEncrypt() local 203 keyStore.load(null); in tryEncrypt() 204 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in tryEncrypt()
|
D | FingerprintBoundKeysTest.java | 185 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createKey() local 186 keyStore.load(null); in createKey() 247 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in encryptInternal() local 248 keyStore.load(null); in encryptInternal() 249 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in encryptInternal()
|
D | ProtectedConfirmationTest.java | 199 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in trySign() local 200 keyStore.load(null); in trySign() 201 KeyStore.Entry key = keyStore.getEntry(KEY_NAME, null); in trySign()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AdminActionBookkeepingTest.java | 151 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testGetPolicyInstalledCaCerts() local 152 keyStore.load(null, null); in testGetPolicyInstalledCaCerts() 153 assertWithMessage("keystore.getCertificateAlias()").that(keyStore.getCertificateAlias(cert)) in testGetPolicyInstalledCaCerts() 157 final String alias = keyStore.getCertificateAlias(cert); in testGetPolicyInstalledCaCerts()
|
/cts/hostsidetests/packagemanager/parsing/processing/ |
D | ApkGenerator.py | 31 keyStore = sys.argv[4] variable 102 "--ks", keyStore,
|
/cts/tests/tests/keystore/src/android/keystore/cts/util/ |
D | TestUtils.java | 216 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in assertImplementedByKeyMintAfter() local 217 keyStore.load(null); in assertImplementedByKeyMintAfter() 218 keyStore.deleteEntry("ecdsa-test-key"); in assertImplementedByKeyMintAfter() 356 public static void assertKeyStoreKeyPair(KeyStore keyStore, String alias, KeyPair keyPair) { in assertKeyStoreKeyPair() argument 365 entry = keyStore.getEntry(alias, null); in assertKeyStoreKeyPair() 366 cert = keyStore.getCertificate(alias); in assertKeyStoreKeyPair() 630 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in importIntoAndroidKeyStore() local 631 keyStore.load(null); in importIntoAndroidKeyStore() 632 keyStore.setEntry(alias, in importIntoAndroidKeyStore() 636 keyStore.getCertificate(alias).getPublicKey(), in importIntoAndroidKeyStore() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | AuthenticationBoundKeyTestActivity.java | 224 KeyStore keyStore = KeyStore.getInstance(KEYSTORE_NAME); in createKey() local 225 keyStore.load(null); in createKey() 252 KeyStore keyStore = KeyStore.getInstance(KEYSTORE_NAME); in loadSecretKey() local 253 keyStore.load(null); in loadSecretKey() 254 return (SecretKey) keyStore.getKey(getKeyName(testType), null); in loadSecretKey()
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/ |
D | Utils.java | 203 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createTimeBoundSecretKey_deprecated() local 204 keyStore.load(null); in createTimeBoundSecretKey_deprecated() 223 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createTimeBoundSecretKey() local 224 keyStore.load(null); in createTimeBoundSecretKey()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | DirectDelegatedCertInstallerTest.java | 104 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testCaCertsOperations() local 105 keyStore.load(null, null); in testCaCertsOperations() 107 + " beginning of the test").that(keyStore.getCertificateAlias(caCert)).isNull(); in testCaCertsOperations() 123 keyStore.getCertificateAlias(caCert)).isNotNull(); in testCaCertsOperations()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DelegatedCertInstallerTest.java | 134 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testCaCertsOperations() local 135 keyStore.load(null, null); in testCaCertsOperations() 136 assertNull(keyStore.getCertificateAlias(caCert)); in testCaCertsOperations() 147 final String alias = keyStore.getCertificateAlias(caCert); in testCaCertsOperations()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 1094 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in getHardCodedKeyManagers() local 1095 keyStore.load(inputStream, PASSWORD.toCharArray()); in getHardCodedKeyManagers() 1100 keyManagerFactory.init(keyStore, PASSWORD.toCharArray()); in getHardCodedKeyManagers() 1122 KeyStore keyStore = KeyStore.getInstance("PKCS12"); in getKeyManagersFromStreams() local 1123 keyStore.load(/*stream=*/null, /*password*/null); in getKeyManagersFromStreams() 1124 keyStore.setKeyEntry("server", privKey, EMPTY_PASSWORD, chain); in getKeyManagersFromStreams() 1128 keyManagerFactory.init(keyStore, EMPTY_PASSWORD); in getKeyManagersFromStreams()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewSslTest.java | 1054 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in onReceivedClientCertRequest() local 1055 keyStore.load(null); in onReceivedClientCertRequest() 1057 keyStore.setEntry( in onReceivedClientCertRequest() 1062 key = (PrivateKey) keyStore.getKey("fake1", null); in onReceivedClientCertRequest()
|