Home
last modified time | relevance | path

Searched refs:IkeHeader (Results 1 – 20 of 20) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java171 private IkeHeader mIkeAuthHeader;
181 private IkeHeader mFragOneHeader;
182 private IkeHeader mFragTwoHeader;
239 mIkeAuthHeader = new IkeHeader(mIkeAuthPacket); in setUp()
259 mFragOneHeader = new IkeHeader(mIkeFragPacketOne); in setUp()
260 mFragTwoHeader = new IkeHeader(mIkeFragPacketTwo); in setUp()
273 byteBuffer.get(new byte[IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH]); in makeFragmentBytes()
308 IkeHeader header = new IkeHeader(inputPacket); in testDecodeIkeMessage()
326 IkeHeader header = new IkeHeader(inputPacket); in testDecodeMessageWithUnsupportedUncriticalPayload()
345 inputPacket[IkeHeader.IKE_HEADER_LENGTH + PAYLOAD_CRITICAL_BIT_OFFSET] = (byte) 0x80; in testThrowUnsupportedCriticalPayloadException()
[all …]
DIkeHeaderTest.java60 @IkeHeader.ExchangeType
61 private static final int IKE_EXCHANGE_TYPE = IkeHeader.EXCHANGE_TYPE_IKE_SA_INIT;
65 private static final int IKE_MSG_BODY_LENGTH = IKE_MSG_LENGTH - IkeHeader.IKE_HEADER_LENGTH;
77 IkeHeader header = new IkeHeader(inputPacket); in testDecodeIkeHeader()
132 IkeHeader header = new IkeHeader(inputPacket); in testEncodeIkeHeader()
134 ByteBuffer byteBuffer = ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH); in testEncodeIkeHeader()
DIkeEncryptedPayloadBodyTest.java162 IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH;
325 IkeHeader ikeHeader = new IkeHeader(mIkeMessage); in testBuildAndEncodeOutboundIkeEncryptedPayloadBody()
383 IkeHeader ikeHeader = new IkeHeader(message); in testBuildAndEncodeWithHmacSha13Des()
425 IkeHeader ikeHeader = new IkeHeader(mAesGcmMsg); in testBuildAndEncodeMsgWithAesGcm()
462 IkeHeader ikeHeader = new IkeHeader(mAesGcmFragMsg); in testBuildAndEncodeFragMsgWithAesGcm()
DIkeTestUtils.java54 IkeHeader header = new IkeHeader(inputPacket); in decodeAndVerifyUnprotectedErrorMsg()
DIkeSkfPayloadTest.java74 IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH;
196 Arrays.copyOfRange(message, IkeHeader.IKE_HEADER_LENGTH, message.length); in testEncode()
DIkeSkPayloadTest.java90 Arrays.copyOfRange(message, IkeHeader.IKE_HEADER_LENGTH, message.length); in testEncode()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessage.java80 public final IkeHeader ikeHeader;
88 public IkeMessage(IkeHeader header, List<IkePayload> payloadList) { in IkeMessage()
114 public static DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode()
135 IkeHeader ikeHeader, in decode()
272 ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH + encodedIkeBody.length); in attachEncodedHeader()
334 && ikeHeader.exchangeType == IkeHeader.EXCHANGE_TYPE_INFORMATIONAL in isDpdRequest()
382 DecodeResult decode(int expectedMsgId, IkeHeader ikeHeader, byte[] packet); in decode()
401 IkeHeader ikeHeader, in decode()
444 IkeHeader ikeHeader, in encryptAndEncode()
463 int msgLen = IkeHeader.IKE_HEADER_LENGTH + skPayload.getPayloadLength(); in encryptAndEncode()
[all …]
DIkeHeader.java40 public final class IkeHeader { class
105 public IkeHeader( in IkeHeader() method in IkeHeader
134 public IkeHeader(byte[] packet) throws IkeProtocolException { in IkeHeader() method in IkeHeader
160 IkeHeader makeSkfHeaderFromSkHeader() { in makeSkfHeaderFromSkHeader()
164 return new IkeHeader( in makeSkfHeaderFromSkHeader()
DIkeEncryptedPayloadBody.java125 IkeHeader ikeHeader, in IkeEncryptedPayloadBody()
149 IkeHeader ikeHeader, in IkeEncryptedPayloadBody()
214 IkeHeader ikeHeader, in generateOutboundChecksum()
229 int dataToAuthenticateLength = IkeHeader.IKE_HEADER_LENGTH + encryptedPayloadHeaderToPadLen; in generateOutboundChecksum()
291 IkeHeader ikeHeader, in combinedModeEncrypt()
299 IkeHeader.IKE_HEADER_LENGTH in combinedModeEncrypt()
DIkeSkPayload.java68 IkeHeader.IKE_HEADER_LENGTH + GENERIC_HEADER_LENGTH, in IkeSkPayload()
121 IkeHeader ikeHeader, in IkeSkPayload()
143 IkeHeader ikeHeader, in IkeSkPayload()
DIkeSkfPayload.java68 IkeHeader.IKE_HEADER_LENGTH + GENERIC_HEADER_LENGTH + SKF_HEADER_LEN, in IkeSkfPayload()
78 inputBuffer.get(new byte[IkeHeader.IKE_HEADER_LENGTH + GENERIC_HEADER_LENGTH]); in IkeSkfPayload()
104 IkeHeader ikeHeader, in IkeSkfPayload()
DIkePayloadFactory.java186 IkeHeader.IKE_HEADER_LENGTH, in getIkeSkPayload()
187 message.length - IkeHeader.IKE_HEADER_LENGTH); in getIkeSkPayload()
195 int bodyLength = message.length - IkeHeader.IKE_HEADER_LENGTH; in getIkeSkPayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java46 import static com.android.internal.net.ipsec.ike.message.IkeHeader.EXCHANGE_TYPE_CREATE_CHILD_SA;
47 import static com.android.internal.net.ipsec.ike.message.IkeHeader.EXCHANGE_TYPE_INFORMATIONAL;
137 import com.android.internal.net.ipsec.ike.message.IkeHeader;
364 @IkeHeader.ExchangeType int eType, in makeDummyReceivedIkeInitRespPacket()
391 @IkeHeader.ExchangeType int eType, in makeDummyUnencryptedReceivedIkePacket()
417 @IkeHeader.ExchangeType int eType, in makeDummyEncryptedReceivedIkePacket()
430 @IkeHeader.ExchangeType int eType, in makeDummyEncryptedReceivedIkePacketWithPayloadList()
447 @IkeHeader.ExchangeType int eType, in makeDummyEncryptedReceivedIkePacketWithPayloadList()
482 IkeHeader header = in makeDummyReceivedIkePacketWithDecodingError()
494 IkeHeader header = in makeDummyReceivedIkePacketWithUnprotectedError()
[all …]
DIkeUdp4SocketTest.java33 import com.android.internal.net.ipsec.ike.message.IkeHeader;
144 ArgumentCaptor<IkeHeader> ikeHeaderCaptor = ArgumentCaptor.forClass(IkeHeader.class); in testHandlePacket()
148 IkeHeader capturedIkeHeader = ikeHeaderCaptor.getValue(); in testHandlePacket()
DIkeUdp6SocketTest.java33 import com.android.internal.net.ipsec.ike.message.IkeHeader;
144 ArgumentCaptor<IkeHeader> ikeHeaderCaptor = ArgumentCaptor.forClass(IkeHeader.class); in testHandlePacket()
148 IkeHeader capturedIkeHeader = ikeHeaderCaptor.getValue(); in testHandlePacket()
DIkeUdpEncapSocketTest.java48 import com.android.internal.net.ipsec.ike.message.IkeHeader;
297 ArgumentCaptor<IkeHeader> ikeHeaderCaptor = ArgumentCaptor.forClass(IkeHeader.class); in testHandlePacket()
301 IkeHeader capturedIkeHeader = ikeHeaderCaptor.getValue(); in testHandlePacket()
DChildSessionStateMachineTest.java31 import static com.android.internal.net.ipsec.ike.message.IkeHeader.EXCHANGE_TYPE_CREATE_CHILD_SA;
32 import static com.android.internal.net.ipsec.ike.message.IkeHeader.EXCHANGE_TYPE_INFORMATIONAL;
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java28 import static com.android.internal.net.ipsec.ike.message.IkeHeader.EXCHANGE_TYPE_INFORMATIONAL;
119 import com.android.internal.net.ipsec.ike.message.IkeHeader;
120 import com.android.internal.net.ipsec.ike.message.IkeHeader.ExchangeType;
798 public void receiveIkePacket(IkeHeader ikeHeader, byte[] ikePacketBytes) { in receiveIkePacket()
808 public final IkeHeader ikeHeader;
812 ReceivedIkePacket(IkeHeader ikeHeader, byte[] ikePacketBytes) { in ReceivedIkePacket()
1295 IkeHeader ikeHeader = ikeMessage.ikeHeader; in getIkeExchangeSubType()
1302 case IkeHeader.EXCHANGE_TYPE_IKE_SA_INIT: in getIkeExchangeSubType()
1304 case IkeHeader.EXCHANGE_TYPE_IKE_AUTH: in getIkeExchangeSubType()
1306 case IkeHeader.EXCHANGE_TYPE_CREATE_CHILD_SA: in getIkeExchangeSubType()
[all …]
DIkeSocket.java29 import com.android.internal.net.ipsec.ike.message.IkeHeader;
93 IkeHeader ikeHeader = new IkeHeader(ikePacketBytes); in parseAndDemuxIkePacket()
DChildSessionStateMachine.java27 import static com.android.internal.net.ipsec.ike.message.IkeHeader.EXCHANGE_TYPE_CREATE_CHILD_SA;
28 import static com.android.internal.net.ipsec.ike.message.IkeHeader.EXCHANGE_TYPE_IKE_AUTH;
29 import static com.android.internal.net.ipsec.ike.message.IkeHeader.EXCHANGE_TYPE_INFORMATIONAL;
30 import static com.android.internal.net.ipsec.ike.message.IkeHeader.ExchangeType;