Home
last modified time | relevance | path

Searched refs:remotePublicKey (Results 1 – 3 of 3) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayloadTest.java191 byte[] remotePublicKey = TestUtils.hexStringToByteArray(REMOTE_PUBLIC_KEY_1024); in testGetSharedKey1024Modp()
194 privateKey, remotePublicKey, SaProposal.DH_GROUP_1024_BIT_MODP); in testGetSharedKey1024Modp()
233 byte[] remotePublicKey = TestUtils.hexStringToByteArray(publicKeyRemoteHex); in testGetSharedKey1536Modp()
236 privateKey, remotePublicKey, SaProposal.DH_GROUP_1536_BIT_MODP); in testGetSharedKey1536Modp()
244 byte[] remotePublicKey = TestUtils.hexStringToByteArray(REMOTE_PUBLIC_KEY_1024); in testGetSharedkeyWithInvalidRemoteKey()
251 privateKey, remotePublicKey, SaProposal.DH_GROUP_1536_BIT_MODP); in testGetSharedkeyWithInvalidRemoteKey()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java316 public static byte[] getSharedKey(PrivateKey privateKey, byte[] remotePublicKey, int dhGroup) in getSharedKey() argument
324 return getModpSharedKey(privateKey, remotePublicKey, dhGroup); in getSharedKey()
326 return getCurveSharedKey(privateKey, remotePublicKey, dhGroup); in getSharedKey()
333 PrivateKey privateKey, byte[] remotePublicKey, int dhGroup) in getModpSharedKey() argument
348 BigInteger publicKeyValue = BigIntegerUtils.unsignedByteArrayToBigInteger(remotePublicKey); in getModpSharedKey()
363 PrivateKey privateKey, byte[] remotePublicKey, int dhGroup) in getCurveSharedKey() argument
392 remotePublicKey, in getCurveSharedKey()
/packages/services/Car/service/src/com/android/car/bluetooth/
DFastPairGattServer.java683 final byte[] remotePublicKey = Arrays.copyOfRange(pairingRequest, 16, 80); in processKeyBasedPairing()
686 .add(calculateAntiSpoofing(Base64.decode(mPrivateAntiSpoof, 0), remotePublicKey) in processKeyBasedPairing()
751 private AccountKey calculateAntiSpoofing(byte[] localPrivateKey, byte[] remotePublicKey) { in calculateAntiSpoofing() argument
766 ECPoint publicPoint = new ECPoint(new BigInteger(1, Arrays.copyOf(remotePublicKey, 32)), in calculateAntiSpoofing()
767 new BigInteger(1, Arrays.copyOfRange(remotePublicKey, 32, 64))); in calculateAntiSpoofing()