Home
last modified time | relevance | path

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

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayloadTest.java170 PrivateKey privateKey = in testGetSharedKey1024Modp() local
176 privateKey, remotePublicKey, SaProposal.DH_GROUP_1024_BIT_MODP); in testGetSharedKey1024Modp()
212 PrivateKey privateKey = in testGetSharedKey1536Modp() local
218 privateKey, remotePublicKey, SaProposal.DH_GROUP_1536_BIT_MODP); in testGetSharedKey1536Modp()
227 PrivateKey privateKey = in testGetSharedkeyWithInvalidRemoteKey() local
233 privateKey, remotePublicKey, SaProposal.DH_GROUP_1536_BIT_MODP); in testGetSharedkeyWithInvalidRemoteKey()
265 PrivateKey privateKey = in testGetSharedKeyWithCurve25519() local
271 privateKey, in testGetSharedKeyWithCurve25519()
DIkeAuthDigitalSignPayloadTest.java164 private void verifySignAndEncode(PrivateKey privateKey) throws Exception { in verifySignAndEncode() argument
168 privateKey, in verifySignAndEncode()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java267 PrivateKey privateKey = keyPair.getPrivate(); in createOutboundCurveKePayload() local
276 return new IkeKePayload(dh, keyExchangeData, privateKey); in createOutboundCurveKePayload()
315 public static byte[] getSharedKey(PrivateKey privateKey, byte[] remotePublicKey, int dhGroup) in getSharedKey() argument
323 return getModpSharedKey(privateKey, remotePublicKey, dhGroup); in getSharedKey()
325 return getCurveSharedKey(privateKey, remotePublicKey, dhGroup); in getSharedKey()
332 PrivateKey privateKey, byte[] remotePublicKey, int dhGroup) in getModpSharedKey() argument
341 dhKeyAgreement.init(privateKey); in getModpSharedKey()
362 PrivateKey privateKey, byte[] remotePublicKey, int dhGroup) in getCurveSharedKey() argument
375 keyAgreement.init(privateKey); in getCurveSharedKey()
DIkeAuthDigitalSignPayload.java186 PrivateKey privateKey, in IkeAuthDigitalSignPayload() argument
198 signGen.initSign(privateKey); in IkeAuthDigitalSignPayload()
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/
DUtils.java105 public static Array encodeAndSignSign1Ed25519(byte[] encodedPublicKey, byte[] privateKey) in encodeAndSignSign1Ed25519() argument
115 encodedProtectedHeaders, encodedPublicKey, privateKey)) in encodeAndSignSign1Ed25519()
121 byte[] protectedHeaders, byte[] payload, byte[] privateKey) throws Exception { in encodeAndSignSigStructure() argument
122 return encodeAndSignSigStructure(protectedHeaders, null, payload, privateKey); in encodeAndSignSigStructure()
126 byte[] payload, byte[] privateKey) in encodeAndSignSigStructure() argument
137 Ed25519Sign signer = new Ed25519Sign(privateKey); in encodeAndSignSigStructure()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java376 final PrivateKey privateKey;
382 privateKey = (PrivateKey) key;
407 mKeyStore.setKeyEntry(alias, privateKey, null, certsArray);
517 @Override public boolean installKeyPair(@Nullable byte[] privateKey,
533 if (privateKey == null && userCertificate == null && userCertificateChain == null) {
575 if (privateKey != null) {
578 privateKey1 = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(privateKey));
593 if (privateKey != null) {
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProviderTest.java392 String caCertificate, String userCertificate, String privateKey) { in assertEnterpriseConfig() argument
394 assertCertificateInformation(wifiConf, caCertificate, userCertificate, privateKey); in assertEnterpriseConfig()
414 String privateKey) { in assertCertificateInformation() argument
420 assertEquals(privateKey, Base64.getEncoder() in assertCertificateInformation()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiEnterpriseConfig.java957 public void setClientKeyEntry(PrivateKey privateKey, X509Certificate clientCertificate) { in setClientKeyEntry() argument
962 setClientKeyEntryWithCertificateChain(privateKey, clientCertificates); in setClientKeyEntry()
979 public void setClientKeyEntryWithCertificateChain(PrivateKey privateKey, in setClientKeyEntryWithCertificateChain() argument
1008 if (privateKey == null) { in setClientKeyEntryWithCertificateChain()
1011 if (privateKey.getEncoded() == null) { in setClientKeyEntryWithCertificateChain()
1016 mClientPrivateKey = privateKey; in setClientKeyEntryWithCertificateChain()
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainTestActivity.java277 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, in getPrivateKey() local
279 log("privateKey=" + privateKey); in getPrivateKey()
280 return privateKey; in getPrivateKey()
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/
DKeyChainServiceTestSupport.java47 byte[] privateKey, byte[] userCert, byte[] certChain, String alias)
52 privateKey, userCert, certChain, alias, KeyStore.UID_SELF);
DIKeyChainServiceTestSupport.aidl36 …boolean installKeyPair(in byte[] privateKey, in byte[] userCert, in byte[] certChain, String alias… in installKeyPair() argument
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DKeyChainServiceRoboTest.java244 String privateKey = mKeyChain.requestPrivateKey(NON_EXISTING_ALIAS); in testRequestPrivateKeyReturnsNullForNonExistingAlias() local
245 assertThat(privateKey).isNull(); in testRequestPrivateKeyReturnsNullForNonExistingAlias()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSessionParams.java983 @NonNull PrivateKey privateKey) { in IkeAuthDigitalSignLocalConfig() argument
987 mPrivateKey = privateKey; in IkeAuthDigitalSignLocalConfig()
1016 PrivateKey privateKey = in fromPersistableBundle() local
1020 return new IkeAuthDigitalSignLocalConfig(endCert, certList, privateKey); in fromPersistableBundle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java522 final String privateKey = "test_private"; in getDescendantUris_privateSlicesNeeded_containsPrivateSliceUri() local
525 SliceTestUtils.insertSliceToDb(mContext, privateKey /* key */, false /* isPlatformSlice */, in getDescendantUris_privateSlicesNeeded_containsPrivateSliceUri()
533 .appendPath(privateKey) in getDescendantUris_privateSlicesNeeded_containsPrivateSliceUri()
/packages/services/Car/service/src/com/android/car/
DFastPairGattServer.java391 PrivateKey privateKey = keyFactory.generatePrivate(ecPrivateKeySpec); in calculateAntiSpoofing() local
396 keyAgreement.init(privateKey); in calculateAntiSpoofing()