Home
last modified time | relevance | path

Searched defs:privateKey (Results 1 – 19 of 19) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
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
/cts/tests/tests/keystore/src/android/keystore/cts/
DRSACipherTest.java84 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() local
118 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() local
239 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus() local
272 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingWithZeroMessage() local
DRSASignatureTest.java77 PrivateKey privateKey = keyPair.getKeystoreBackedKeyPair().getPrivate(); in testMaxMessageSizeWhenNoDigestUsed() local
DSignatureTest.java626 PrivateKey privateKey = key.getOriginalKeyPair().getPrivate(); in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore() local
1159 PrivateKey privateKey = TestUtils.importIntoAndroidKeyStore( in assertInitSignSucceeds() local
1192 PrivateKey privateKey = TestUtils.importIntoAndroidKeyStore( in assertInitSignThrowsInvalidKeyException() local
1304 PrivateKey privateKey, in generateSignatureFedUsingFixedSizeChunks()
DKeyStoreTest.java345 … public static void setPrivateKeyNoPassword(KeyStore ks, String alias, PrivateKeyEntry privateKey) in setPrivateKeyNoPassword()
357 PrivateKeyEntry privateKey) in setPrivateKey()
373 PrivateKeyEntry privateKey) in setPrivateKeyBytes()
434 PrivateKeyEntry privateKey = (PrivateKeyEntry) actual; in assertPrivateKey() local
DImportWrappedKeyTest.java331 PrivateKey privateKey = kp.getPrivate(); in testKeyStore_ImportWrappedKey_RSA() local
410 PrivateKey privateKey = kp.getPrivate(); in testKeyStore_ImportWrappedKey_EC() local
DDeviceOwnerKeyManagementTest.java124 byte[] signDataWithKey(String algoIdentifier, PrivateKey privateKey) throws Exception { in signDataWithKey()
DAndroidKeyStoreTest.java2039 PrivateKey privateKey = (PrivateKey) ks.getKey(alias, null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local
2735 PrivateKey privateKey = generatePrivateKey("RSA", FAKE_RSA_KEY_1); in createLargeNumberOfKeyStoreEntryAliases() local
DKeyPairGeneratorTest.java1955 PrivateKey privateKey, in assertUsableForTLSPeerAuthentication()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCaCertManagementTest.java281 PrivateKey privateKey = KeyFactory.getInstance("RSA").generatePrivate( in installKeyPair_installsKeyPair() local
301 PrivateKey privateKey = KeyFactory.getInstance("RSA").generatePrivate( in installKeyPair_invalidAdmin_throwsException() local
315 PrivateKey privateKey = KeyFactory.getInstance("RSA").generatePrivate( in removeKeyPair_removedKeyPair() local
324 sDeviceState.dpc().componentName(), privateKey, certificate, ALIAS); in removeKeyPair_removedKeyPair() local
DCredentialManagementAppTest.java393 private byte[] signDataWithKey(String algoIdentifier, PrivateKey privateKey) throws Exception { in signDataWithKey()
DKeyManagementTest.java373 final PrivateKey privateKey = in getPrivateKey_aliasIsGranted_returnPrivateKey() local
671 private byte[] signDataWithKey(String algoIdentifier, PrivateKey privateKey) throws Exception { in signDataWithKey()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DPreSelectedKeyAccessTest.java44 PrivateKey privateKey = KeyChain.getPrivateKey(getContext(), PRE_SELECTED_ALIAS); in testAccessingPreSelectedAliasExpectingSuccess() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DUtils.java108 PrivateKey privateKey = ((KeyStore.PrivateKeyEntry) entry).getPrivateKey(); in initSignature() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DKeyChainTestActivity.java205 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, alias); in alias() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCredentialManagementAppActivity.java274 final PrivateKey privateKey = KeyChain.getPrivateKey( in getPrivateKeyAndSignData() local
DKeyChainTest.java486 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTest.this, alias); in getPrivateKey() local
/cts/tests/tests/keystore/src/android/keystore/cts/util/
DTestUtils.java286 public static void assertKeyPairSelfConsistent(PublicKey publicKey, PrivateKey privateKey) { in assertKeyPairSelfConsistent()
627 PrivateKey privateKey, in importIntoAndroidKeyStore()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java173 byte[] signDataWithKey(String algoIdentifier, PrivateKey privateKey) throws Exception { in signDataWithKey()