Home
last modified time | relevance | path

Searched refs:privKey (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DKeyManagementTest.java88 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); in testCanInstallAndRemoveValidRsaKeypair() local
92 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, cert, alias)); in testCanInstallAndRemoveValidRsaKeypair() local
112 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); in testCanInstallWithAutomaticAccess() local
116 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testCanInstallWithAutomaticAccess() local
118 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testCanInstallWithAutomaticAccess() local
139 final PrivateKey privKey = loadPrivateKeyFromAsset("user-cert-chain.key"); in testCanInstallCertChain() local
150 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, certChain, alias, true)); in testCanInstallCertChain() local
171 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); in testGrantsDoNotPersistBetweenInstallations() local
175 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testGrantsDoNotPersistBetweenInstallations() local
186 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testGrantsDoNotPersistBetweenInstallations() local
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1119 final PrivateKey privKey = keyEntry.getPrivateKey(); in assertPrivateKeyEntryEquals() local
1123 assertTrue("Returned PrivateKey " + privKey.getClass() + " should be instanceof ECKey", in assertPrivateKeyEntryEquals()
1124 privKey instanceof ECKey); in assertPrivateKeyEntryEquals()
1127 ((ECKey) privKey).getParams().getCurve()); in assertPrivateKeyEntryEquals()
1129 assertTrue("Returned PrivateKey " + privKey.getClass() + " should be instanceof RSAKey", in assertPrivateKeyEntryEquals()
1130 privKey instanceof RSAKey); in assertPrivateKeyEntryEquals()
1133 ((RSAKey) privKey).getModulus()); in assertPrivateKeyEntryEquals()
1136 assertNull("getFormat() should return null", privKey.getFormat()); in assertPrivateKeyEntryEquals()
1137 assertNull("getEncoded() should return null", privKey.getEncoded()); in assertPrivateKeyEntryEquals()
1631 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java210 final Key privKey; in doInBackground() local
230 privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(userKey.toByteArray())); in doInBackground()
244 ks.setKeyEntry(ALIAS, privKey, EMPTY_PASSWORD, chain); in doInBackground()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex87128 private java.security.PrivateKey privKey
92156 private org.bouncycastle.asn1.DERObject privKey
100543 private transient java.security.PrivateKey privKey
106267 private java.security.PrivateKey privKey