/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeMessage.java | 80 public final IkeHeader ikeHeader; field in IkeMessage 89 ikeHeader = header; in IkeMessage() 135 IkeHeader ikeHeader, in decode() argument 143 ikeHeader, in decode() 273 ikeHeader.encodeToByteBuffer(outputBuffer, encodedIkeBody.length); in attachEncodedHeader() 333 return !ikeHeader.isResponseMsg in isDpdRequest() 334 && ikeHeader.exchangeType == IkeHeader.EXCHANGE_TYPE_INFORMATIONAL in isDpdRequest() 336 && ikeHeader.nextPayloadType == IkePayload.PAYLOAD_TYPE_SK; in isDpdRequest() 382 DecodeResult decode(int expectedMsgId, IkeHeader ikeHeader, byte[] packet); in decode() argument 401 IkeHeader ikeHeader, in decode() argument [all …]
|
D | IkeEncryptedPayloadBody.java | 125 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()
|
D | IkeSkPayload.java | 121 IkeHeader ikeHeader, in IkeSkPayload() argument 130 ikeHeader, in IkeSkPayload() 143 IkeHeader ikeHeader, in IkeSkPayload() argument 157 ikeHeader, in IkeSkPayload()
|
D | IkeSkfPayload.java | 104 IkeHeader ikeHeader, in IkeSkfPayload() argument 114 ikeHeader, in IkeSkfPayload()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachine.java | 798 public void receiveIkePacket(IkeHeader ikeHeader, byte[] ikePacketBytes) { in receiveIkePacket() argument 799 sendMessage(CMD_RECEIVE_IKE_PACKET, new ReceivedIkePacket(ikeHeader, ikePacketBytes)); in receiveIkePacket() 808 public final IkeHeader ikeHeader; field in IkeSessionStateMachine.ReceivedIkePacket 812 ReceivedIkePacket(IkeHeader ikeHeader, byte[] ikePacketBytes) { in ReceivedIkePacket() argument 813 this.ikeHeader = ikeHeader; in ReceivedIkePacket() 1295 IkeHeader ikeHeader = ikeMessage.ikeHeader; in getIkeExchangeSubType() local 1296 if (ikeHeader.isResponseMsg) { in getIkeExchangeSubType() 1300 switch (ikeHeader.exchangeType) { in getIkeExchangeSubType() 1361 + ikeHeader.exchangeType); in getIkeExchangeSubType() 1384 if (msg.ikeHeader.isResponseMsg) { in sendEncryptedIkeMessage() [all …]
|
D | IkeSocket.java | 93 IkeHeader ikeHeader = new IkeHeader(ikePacketBytes); in parseAndDemuxIkePacket() local 96 ikeHeader.fromIkeInitiator in parseAndDemuxIkePacket() 97 ? ikeHeader.ikeResponderSpi in parseAndDemuxIkePacket() 98 : ikeHeader.ikeInitiatorSpi; in parseAndDemuxIkePacket() 105 ikeStateMachine.receiveIkePacket(ikeHeader, ikePacketBytes); in parseAndDemuxIkePacket()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachineTest.java | 410 .decode(0, dummyIkeMessage.ikeHeader, dummyIkePacketBytes); in makeDummyUnencryptedReceivedIkePacket() 412 return new ReceivedIkePacket(dummyIkeMessage.ikeHeader, dummyIkePacketBytes); in makeDummyUnencryptedReceivedIkePacket() 467 dummyIkeMessage.ikeHeader, in makeDummyEncryptedReceivedIkePacketWithPayloadList() 471 return new ReceivedIkePacket(dummyIkeMessage.ikeHeader, dummyIkePacketBytes); in makeDummyEncryptedReceivedIkePacketWithPayloadList() 634 eq(rcvPacket.ikeHeader), in verifyDecodeEncryptedMessage() 1388 IkeHeader ikeHeader = ikeInitReqMessage.ikeHeader; in disableTestCreateIkeLocalIkeInit() local 1389 assertEquals(IkeHeader.EXCHANGE_TYPE_IKE_SA_INIT, ikeHeader.exchangeType); in disableTestCreateIkeLocalIkeInit() 1390 assertFalse(ikeHeader.isResponseMsg); in disableTestCreateIkeLocalIkeInit() 1391 assertTrue(ikeHeader.fromIkeInitiator); in disableTestCreateIkeLocalIkeInit() 1406 .decode(0, dummyReceivedIkePacket.ikeHeader, dummyReceivedIkePacket.ikePacketBytes); in disableTestCreateIkeLocalIkeInit() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeEncryptedPayloadBodyTest.java | 325 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()
|
D | IkeMessageTest.java | 514 IkeHeader ikeHeader = in testEncodeAndEncryptEmptyMsg() local 523 IkeMessage ikeMessage = new IkeMessage(ikeHeader, new LinkedList<>()); in testEncodeAndEncryptEmptyMsg() 562 assertEquals(mFragOneHeader, resultPartial.ikeHeader); in testConstructDecodePartialFirstFragArriveFirst() 577 assertEquals(mFragTwoHeader, resultPartial.ikeHeader); in testConstructDecodePartialSecondFragArriveFirst() 595 assertEquals(mFragTwoHeader, resultPartialComplete.ikeHeader); in testConstructDecodeResultPartialWithCollectedFrags() 610 assertEquals(mFragOneHeader, resultPartialIncomplete.ikeHeader); in testReassembleAllFrags() 685 assertEquals(mFragTwoHeader, resultPartial.ikeHeader); in testRcvFirstArrivedFrag() 790 assertEquals(mFragTwoHeader, resultPartial.ikeHeader); in testRcvFragWithLargerTotalFragments() 874 IkeHeader ikeHeader = in testEncodeAndEncryptFragments() local 887 ikeHeader, in testEncodeAndEncryptFragments()
|