Home
last modified time | relevance | path

Searched refs:ikeHeader (Results 1 – 10 of 10) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessage.java125 public final IkeHeader ikeHeader; field in IkeMessage
134 ikeHeader = header; in IkeMessage()
180 IkeHeader ikeHeader, in decode() argument
188 ikeHeader, in decode()
318 ikeHeader.encodeToByteBuffer(outputBuffer, encodedIkeBody.length); in attachEncodedHeader()
390 return !ikeHeader.isResponseMsg in isDpdRequest()
391 && ikeHeader.exchangeType == IkeHeader.EXCHANGE_TYPE_INFORMATIONAL in isDpdRequest()
393 && ikeHeader.nextPayloadType == IkePayload.PAYLOAD_TYPE_SK; in isDpdRequest()
414 if (ikeHeader.isResponseMsg) { in getIkeExchangeSubType()
419 switch (ikeHeader.exchangeType) { in getIkeExchangeSubType()
[all …]
DIkeEncryptedPayloadBody.java125 IkeHeader ikeHeader, in IkeEncryptedPayloadBody() argument
134 ikeHeader, in IkeEncryptedPayloadBody()
149 IkeHeader ikeHeader, in IkeEncryptedPayloadBody() argument
166 ikeHeader, in IkeEncryptedPayloadBody()
193 ikeHeader, in IkeEncryptedPayloadBody()
214 IkeHeader ikeHeader, in generateOutboundChecksum() argument
234 ikeHeader.encodeToByteBuffer(authenticatedSectionBuffer, encryptedPayloadLength); in generateOutboundChecksum()
291 IkeHeader ikeHeader, in combinedModeEncrypt() argument
311 ikeHeader.encodeToByteBuffer(authenticatedSectionBuffer, encryptedPayloadLength); in combinedModeEncrypt()
DIkeSkPayload.java121 IkeHeader ikeHeader, in IkeSkPayload() argument
130 ikeHeader, in IkeSkPayload()
143 IkeHeader ikeHeader, in IkeSkPayload() argument
157 ikeHeader, in IkeSkPayload()
DIkeSkfPayload.java104 IkeHeader ikeHeader, in IkeSkfPayload() argument
114 ikeHeader, in IkeSkfPayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java1086 public final IkeHeader ikeHeader; field in IkeSessionStateMachine.ReceivedIkePacket
1090 ReceivedIkePacket(IkeHeader ikeHeader, byte[] ikePacketBytes) { in ReceivedIkePacket() argument
1091 this.ikeHeader = ikeHeader; in ReceivedIkePacket()
1710 if (msg.ikeHeader.isResponseMsg) { in sendEncryptedIkeMessage()
1712 Arrays.asList(packetList), msg.ikeHeader.messageId); in sendEncryptedIkeMessage()
1992 protected IkeSaRecord getIkeSaRecordForPacket(IkeHeader ikeHeader) { in getIkeSaRecordForPacket() argument
1993 if (ikeHeader.fromIkeInitiator) { in getIkeSaRecordForPacket()
1994 return mLocalSpiToIkeSaRecordMap.get(ikeHeader.ikeResponderSpi); in getIkeSaRecordForPacket()
1996 return mLocalSpiToIkeSaRecordMap.get(ikeHeader.ikeInitiatorSpi); in getIkeSaRecordForPacket()
2007 IkeHeader ikeHeader = receivedIkePacket.ikeHeader; in handleReceivedIkePacket() local
[all …]
DIkeSocket.java94 IkeHeader ikeHeader = new IkeHeader(ikePacketBytes); in parseAndDemuxIkePacket() local
97 ikeHeader.fromIkeInitiator in parseAndDemuxIkePacket()
98 ? ikeHeader.ikeResponderSpi in parseAndDemuxIkePacket()
99 : ikeHeader.ikeInitiatorSpi; in parseAndDemuxIkePacket()
106 callback.onIkePacketReceived(ikeHeader, ikePacketBytes); in parseAndDemuxIkePacket()
274 void onIkePacketReceived(IkeHeader ikeHeader, byte[] ikePacketBytes); in onIkePacketReceived() argument
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEncryptedPayloadBodyTest.java325 IkeHeader ikeHeader = new IkeHeader(mIkeMessage); in testBuildAndEncodeOutboundIkeEncryptedPayloadBody() local
329 ikeHeader, in testBuildAndEncodeOutboundIkeEncryptedPayloadBody()
383 IkeHeader ikeHeader = new IkeHeader(message); in testBuildAndEncodeWithHmacSha13Des() local
391 ikeHeader, in testBuildAndEncodeWithHmacSha13Des()
425 IkeHeader ikeHeader = new IkeHeader(mAesGcmMsg); in testBuildAndEncodeMsgWithAesGcm() local
429 ikeHeader, in testBuildAndEncodeMsgWithAesGcm()
462 IkeHeader ikeHeader = new IkeHeader(mAesGcmFragMsg); in testBuildAndEncodeFragMsgWithAesGcm() local
468 ikeHeader, in testBuildAndEncodeFragMsgWithAesGcm()
DIkeMessageTest.java516 IkeHeader ikeHeader = in testEncodeAndEncryptEmptyMsg() local
525 IkeMessage ikeMessage = new IkeMessage(ikeHeader, new ArrayList<>()); in testEncodeAndEncryptEmptyMsg()
564 assertEquals(mFragOneHeader, resultPartial.ikeHeader); in testConstructDecodePartialFirstFragArriveFirst()
579 assertEquals(mFragTwoHeader, resultPartial.ikeHeader); in testConstructDecodePartialSecondFragArriveFirst()
597 assertEquals(mFragTwoHeader, resultPartialComplete.ikeHeader); in testConstructDecodeResultPartialWithCollectedFrags()
612 assertEquals(mFragOneHeader, resultPartialIncomplete.ikeHeader); in testReassembleAllFrags()
687 assertEquals(mFragTwoHeader, resultPartial.ikeHeader); in testRcvFirstArrivedFrag()
792 assertEquals(mFragTwoHeader, resultPartial.ikeHeader); in testRcvFragWithLargerTotalFragments()
913 IkeHeader ikeHeader = in verifyEncodeAndEncryptFragments() local
926 ikeHeader, in verifyEncodeAndEncryptFragments()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java518 .decode(0, dummyIkeMessage.ikeHeader, dummyIkePacketBytes); in makeDummyUnencryptedReceivedIkePacket()
520 return new ReceivedIkePacket(dummyIkeMessage.ikeHeader, dummyIkePacketBytes); in makeDummyUnencryptedReceivedIkePacket()
575 dummyIkeMessage.ikeHeader, in makeDummyEncryptedReceivedIkePacketWithPayloadList()
579 return new ReceivedIkePacket(dummyIkeMessage.ikeHeader, dummyIkePacketBytes); in makeDummyEncryptedReceivedIkePacketWithPayloadList()
742 eq(rcvPacket.ikeHeader), in verifyDecodeEncryptedMessage()
1922 ikeInitReqMessage.ikeHeader.ikeInitiatorSpi, in verifyNatdSrcIpFromIkeInitReqMessage()
1923 ikeInitReqMessage.ikeHeader.ikeResponderSpi, in verifyNatdSrcIpFromIkeInitReqMessage()
1947 IkeHeader ikeHeader = ikeInitReqMessage.ikeHeader; in triggerAndVerifyIkeInitReq() local
1948 assertEquals(IkeHeader.EXCHANGE_TYPE_IKE_SA_INIT, ikeHeader.exchangeType); in triggerAndVerifyIkeInitReq()
1949 assertFalse(ikeHeader.isResponseMsg); in triggerAndVerifyIkeInitReq()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionController.java289 void onIkePacketReceived(IkeHeader ikeHeader, byte[] ikePackets); in onIkePacketReceived() argument
1391 public void onIkePacketReceived(IkeHeader ikeHeader, byte[] ikePackets) { in onIkePacketReceived() argument
1394 mCallback.onIkePacketReceived(ikeHeader, ikePackets); in onIkePacketReceived()