Home
last modified time | relevance | path

Searched refs:privateKey (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DFakeKeys.java37 public static final byte[] privateKey = { field in FakeKeys.FAKE_RSA_1
292 public static final byte[] privateKey = { field in FakeKeys.FAKE_DSA_1
DKeyManagementTest.java84 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); in testCanInstallValidRsaKeypair()
96 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testNullKeyParamsFailPredictably()
113 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testNullAdminComponentIsDenied()
/cts/tests/tests/keystore/src/android/keystore/cts/
DRSACipherTest.java50 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() local
63 cipher.init(Cipher.DECRYPT_MODE, privateKey); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
83 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() local
92 cipher.init(Cipher.DECRYPT_MODE, privateKey); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
200 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus() local
201 BigInteger modulus = ((RSAKey) privateKey).getModulus(); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
209 cipher.init(Cipher.DECRYPT_MODE, privateKey); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
232 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingWithZeroMessage() local
242 cipher.init(Cipher.DECRYPT_MODE, privateKey); in testNoPaddingWithZeroMessage()
DRSASignatureTest.java61 PrivateKey privateKey = keyPair.getKeystoreBackedKeyPair().getPrivate(); in testMaxMessageSizeWhenNoDigestUsed() local
73 signature.initSign(privateKey); in testMaxMessageSizeWhenNoDigestUsed()
83 signature.initSign(privateKey); in testMaxMessageSizeWhenNoDigestUsed()
DTestUtils.java88 static void assertKeyPairSelfConsistent(PublicKey publicKey, PrivateKey privateKey) { in assertKeyPairSelfConsistent() argument
90 assertNotNull(privateKey); in assertKeyPairSelfConsistent()
91 assertEquals(publicKey.getAlgorithm(), privateKey.getAlgorithm()); in assertKeyPairSelfConsistent()
98 + privateKey.getClass().getName(), in assertKeyPairSelfConsistent()
99 privateKey instanceof ECKey); in assertKeyPairSelfConsistent()
102 ((ECKey) publicKey).getParams(), ((ECKey) privateKey).getParams()); in assertKeyPairSelfConsistent()
108 + privateKey.getClass().getName(), in assertKeyPairSelfConsistent()
109 privateKey instanceof RSAKey); in assertKeyPairSelfConsistent()
111 ((RSAKey) publicKey).getModulus(), ((RSAKey) privateKey).getModulus()); in assertKeyPairSelfConsistent()
404 PrivateKey privateKey, in importIntoAndroidKeyStore() argument
[all …]
DSignatureTest.java535 PrivateKey privateKey = key.getOriginalKeyPair().getPrivate(); in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore() local
541 signature.initSign(privateKey); in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
583 PrivateKey privateKey = keyPair.getPrivate(); in DISABLED_testEntropyConsumption() local
588 signature.initSign(privateKey, rng); in DISABLED_testEntropyConsumption()
604 (TestUtils.getKeySizeBits(privateKey) + 7) / 8; in DISABLED_testEntropyConsumption()
1105 PrivateKey privateKey = TestUtils.importIntoAndroidKeyStore( in assertInitSignSucceeds() local
1110 signature.initSign(privateKey); in assertInitSignSucceeds()
1138 PrivateKey privateKey = TestUtils.importIntoAndroidKeyStore( in assertInitSignThrowsInvalidKeyException() local
1144 signature.initSign(privateKey); in assertInitSignThrowsInvalidKeyException()
1250 PrivateKey privateKey, in generateSignatureFedUsingFixedSizeChunks() argument
[all …]
DKeyPairGeneratorTest.java1327 PrivateKey privateKey, in assertUsableForTLSPeerAuthentication() argument
1343 TestKeyManager.wrap(new MyKeyManager(privateKey, x509CertificateChain)) in assertUsableForTLSPeerAuthentication()
1348 if ("EC".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1353 } else if ("RSA".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1380 fail("Unsupported key algorithm: " + privateKey.getAlgorithm()); in assertUsableForTLSPeerAuthentication()
DAndroidKeyStoreTest.java1928 PrivateKey privateKey = (PrivateKey) ks.getKey(alias, null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local
1929 assertNotNull(privateKey); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1932 String cipher = privateKey.getAlgorithm() + "/NONE/NOPADDING"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1935 encrypt.init(Cipher.ENCRYPT_MODE, privateKey); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java419 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTest.this, alias); in getPrivateKey() local
420 Log.d(TAG, "privateKey = " + privateKey); in getPrivateKey()
421 return privateKey; in getPrivateKey()
/cts/tests/tests/security/src/android/security/cts/
DOpenSSLHeartbleedTest.java267 PrivateKey privateKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec( in serverBind() local
281 new KeyManager[] {new HardcodedCertX509KeyManager(privateKey, certChain)}, in serverBind()
948 HardcodedCertX509KeyManager(PrivateKey privateKey, X509Certificate[] certChain) { in HardcodedCertX509KeyManager() argument
949 mPrivateKey = privateKey; in HardcodedCertX509KeyManager()
DOpenSSLEarlyCCSTest.java265 PrivateKey privateKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec( in serverBind() local
279 new KeyManager[] {new HardcodedCertX509KeyManager(privateKey, certChain)}, in serverBind()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex32175 private final java.security.PrivateKey privateKey
32600 private java.security.PrivateKey privateKey
34028 private java.security.PrivateKey privateKey
75826 private byte[] privateKey
99207 boolean privateKey