Home
last modified time | relevance | path

Searched refs:IkePayload (Results 1 – 25 of 48) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachine.java33 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_CP;
34 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_DELETE;
35 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_KE;
36 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_NONCE;
37 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_NOTIFY;
38 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_SA;
39 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_TS_INITIATOR;
40 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_TS_RESPONDER;
41 import static com.android.internal.net.ipsec.ike.message.IkePayload.PROTOCOL_ID_ESP;
90 import com.android.internal.net.ipsec.ike.message.IkePayload;
[all …]
DIkeSessionStateMachine.java38 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_AUTH;
39 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_CP;
40 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_DELETE;
41 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_EAP;
42 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_NOTIFY;
43 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_SA;
44 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_TS_INITIATOR;
45 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_TS_RESPONDER;
46 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_VENDOR;
132 import com.android.internal.net.ipsec.ike.message.IkePayload;
[all …]
DSaRecord.java41 import com.android.internal.net.ipsec.ike.message.IkePayload;
207 IkePayload.PAYLOAD_TYPE_NONCE, IkeNoncePayload.class) in makeFirstIkeSaRecord()
211 IkePayload.PAYLOAD_TYPE_NONCE, IkeNoncePayload.class) in makeFirstIkeSaRecord()
233 IkePayload.PAYLOAD_TYPE_NONCE, IkeNoncePayload.class) in makeRekeyedIkeSaRecord()
237 IkePayload.PAYLOAD_TYPE_NONCE, IkeNoncePayload.class) in makeRekeyedIkeSaRecord()
256 IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class); in getSharedKey()
259 IkePayload.PAYLOAD_TYPE_KE, IkeKePayload.class); in getSharedKey()
280 nonceInit.length + nonceResp.length + 2 * IkePayload.SPI_LEN_IKE); in makeIkeSaRecord()
333 List<IkePayload> reqPayloads, in makeChildSaRecord()
334 List<IkePayload> respPayloads, in makeChildSaRecord()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkePayloadFactory.java59 public IkePayload decodeIkePayload( in decodeIkePayload()
63 case IkePayload.PAYLOAD_TYPE_SA: in decodeIkePayload()
65 case IkePayload.PAYLOAD_TYPE_KE: in decodeIkePayload()
67 case IkePayload.PAYLOAD_TYPE_ID_INITIATOR: in decodeIkePayload()
69 case IkePayload.PAYLOAD_TYPE_ID_RESPONDER: in decodeIkePayload()
71 case IkePayload.PAYLOAD_TYPE_CERT: in decodeIkePayload()
75 case IkePayload.PAYLOAD_TYPE_AUTH: in decodeIkePayload()
77 case IkePayload.PAYLOAD_TYPE_NONCE: in decodeIkePayload()
79 case IkePayload.PAYLOAD_TYPE_NOTIFY: in decodeIkePayload()
81 case IkePayload.PAYLOAD_TYPE_DELETE: in decodeIkePayload()
[all …]
DIkeMessage.java21 import static com.android.internal.net.ipsec.ike.message.IkePayload.PayloadType;
73 REPEATABLE_PAYLOAD_TYPES.add(IkePayload.PAYLOAD_TYPE_CERT);
74 REPEATABLE_PAYLOAD_TYPES.add(IkePayload.PAYLOAD_TYPE_CERT_REQUEST);
75 REPEATABLE_PAYLOAD_TYPES.add(IkePayload.PAYLOAD_TYPE_NOTIFY);
76 REPEATABLE_PAYLOAD_TYPES.add(IkePayload.PAYLOAD_TYPE_DELETE);
77 REPEATABLE_PAYLOAD_TYPES.add(IkePayload.PAYLOAD_TYPE_VENDOR);
81 public final List<IkePayload> ikePayloadList;
88 public IkeMessage(IkeHeader header, List<IkePayload> payloadList) { in IkeMessage()
148 private static List<IkePayload> decodePayloadList( in decodePayloadList()
154 List<IkePayload> supportedPayloadList = new LinkedList<>(); in decodePayloadList()
[all …]
DIkePayload.java37 public abstract class IkePayload { class
156 IkePayload(int payload, boolean critical) { in IkePayload() method in IkePayload
174 public static <T extends IkePayload> List<T> getPayloadListForTypeInProvidedList( in getPayloadListForTypeInProvidedList()
175 @IkePayload.PayloadType int payloadType, in getPayloadListForTypeInProvidedList()
177 List<IkePayload> searchList) { in getPayloadListForTypeInProvidedList()
180 for (IkePayload payload : searchList) { in getPayloadListForTypeInProvidedList()
202 public static <T extends IkePayload> T getPayloadForTypeInProvidedList( in getPayloadForTypeInProvidedList()
203 @IkePayload.PayloadType int payloadType, in getPayloadForTypeInProvidedList()
205 List<IkePayload> searchList) { in getPayloadForTypeInProvidedList()
DIkeEncryptedPayloadBody.java126 @IkePayload.PayloadType int firstPayloadType, in IkeEncryptedPayloadBody()
150 @IkePayload.PayloadType int firstPayloadType, in IkeEncryptedPayloadBody()
215 @IkePayload.PayloadType int firstPayloadType, in generateOutboundChecksum()
223 IkePayload.GENERIC_HEADER_LENGTH in generateOutboundChecksum()
235 IkePayload.encodePayloadHeaderToByteBuffer( in generateOutboundChecksum()
292 @IkePayload.PayloadType int firstPayloadType, in combinedModeEncrypt()
300 + IkePayload.GENERIC_HEADER_LENGTH in combinedModeEncrypt()
306 IkePayload.GENERIC_HEADER_LENGTH in combinedModeEncrypt()
312 IkePayload.encodePayloadHeaderToByteBuffer( in combinedModeEncrypt()
DIkeHeader.java19 import static com.android.internal.net.ipsec.ike.message.IkePayload.PayloadType;
161 if (nextPayloadType != IkePayload.PAYLOAD_TYPE_SK) { in makeSkfHeaderFromSkHeader()
167 IkePayload.PAYLOAD_TYPE_SKF, in makeSkfHeaderFromSkHeader()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java53 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_AUTH;
54 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_NOTIFY;
55 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_SA;
151 import com.android.internal.net.ipsec.ike.message.IkePayload;
358 private ArgumentCaptor<List<IkePayload>> mPayloadListCaptor =
371 List<IkePayload> payloadList = in makeDummyReceivedIkeInitRespPacket()
375 IkePayload sourceNatPayload = in makeDummyReceivedIkeInitRespPacket()
394 List<IkePayload> payloadList) in makeDummyUnencryptedReceivedIkePacket()
422 List<IkePayload> payloadList = in makeDummyEncryptedReceivedIkePacket()
432 List<IkePayload> payloadList) in makeDummyEncryptedReceivedIkePacketWithPayloadList()
[all …]
DChildSessionStateMachineTest.java33 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_CP;
34 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_DELETE;
35 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_KE;
36 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_NONCE;
37 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_NOTIFY;
38 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_SA;
39 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_TS_INITIATOR;
40 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_TS_RESPONDER;
41 import static com.android.internal.net.ipsec.ike.message.IkePayload.PROTOCOL_ID_ESP;
111 import com.android.internal.net.ipsec.ike.message.IkePayload;
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeDeletePayloadTest.java19 import static com.android.internal.net.ipsec.ike.message.IkePayload.PROTOCOL_ID_ESP;
20 import static com.android.internal.net.ipsec.ike.message.IkePayload.PROTOCOL_ID_IKE;
21 import static com.android.internal.net.ipsec.ike.message.IkePayload.SPI_LEN_IPSEC;
22 import static com.android.internal.net.ipsec.ike.message.IkePayload.SPI_LEN_NOT_INCLUDED;
57 IkePayload payload = in testDecodeDeleteIkePayload()
59 IkePayload.PAYLOAD_TYPE_DELETE, false /*is request*/, inputBuffer) in testDecodeDeleteIkePayload()
65 assertEquals(IkePayload.PROTOCOL_ID_IKE, deletePayload.protocolId); in testDecodeDeleteIkePayload()
66 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, deletePayload.spiSize); in testDecodeDeleteIkePayload()
76 IkePayload payload = in testDecodeDeleteChildPayload()
78 IkePayload.PAYLOAD_TYPE_DELETE, false /*is request*/, inputBuffer) in testDecodeDeleteChildPayload()
[all …]
DIkeIdPayloadTest.java110 assertEquals(IkePayload.PAYLOAD_TYPE_ID_RESPONDER, payload.payloadType); in testDecodeIpv4AddrIdPayload()
123 assertEquals(IkePayload.PAYLOAD_TYPE_ID_RESPONDER, payload.payloadType); in testDecodeIpv6AddrIdPayload()
136 assertEquals(IkePayload.PAYLOAD_TYPE_ID_RESPONDER, payload.payloadType); in testDecodeFqdnIdPayload()
149 assertEquals(IkePayload.PAYLOAD_TYPE_ID_INITIATOR, payload.payloadType); in testDecodeRfc822AddrIdPayload()
161 assertEquals(IkePayload.PAYLOAD_TYPE_ID_INITIATOR, payload.payloadType); in testDecodeKeyIdPayload()
173 assertEquals(IkePayload.PAYLOAD_TYPE_ID_INITIATOR, payload.payloadType); in testDecodeDerAsn1DnIdPayload()
212 payload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_AUTH, inputBuffer); in testConstructAndEncodeIpv4AddrIdPayload()
225 payload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_AUTH, inputBuffer); in testConstructAndEncodeIpv6AddrIdPayload()
238 payload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_CERT, inputBuffer); in testConstructAndEncodeFqdnIdPayload()
251 payload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_CERT, inputBuffer); in testConstructAndEncodeRfc822AddrIdPayload()
[all …]
DIkeMessageTest.java22 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_AUTH;
23 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_ID_INITIATOR;
24 import static com.android.internal.net.ipsec.ike.message.IkePayload.PAYLOAD_TYPE_NO_NEXT;
188 IkePayload.PAYLOAD_TYPE_SA,
189 IkePayload.PAYLOAD_TYPE_KE,
190 IkePayload.PAYLOAD_TYPE_NONCE,
191 IkePayload.PAYLOAD_TYPE_NOTIFY,
192 IkePayload.PAYLOAD_TYPE_NOTIFY,
193 IkePayload.PAYLOAD_TYPE_VENDOR
196 class TestIkeSupportedPayload extends IkePayload {
[all …]
DIkeCertReqPayloadTest.java34 private static final int NEXT_PAYLOAD_TYPE = IkePayload.PAYLOAD_TYPE_AUTH;
42 Pair<IkePayload, Integer> pair = in testDecode()
44 IkePayload.PAYLOAD_TYPE_CERT_REQUEST, in testDecode()
58 Pair<IkePayload, Integer> pair = in testEncode()
60 IkePayload.PAYLOAD_TYPE_CERT_REQUEST, in testEncode()
DIkeNotifyPayloadTest.java68 assertEquals(IkePayload.PROTOCOL_ID_UNSET, payload.protocolId); in testDecodeNotifyPayloadSpiUnset()
69 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, payload.spiSize); in testDecodeNotifyPayloadSpiUnset()
71 assertEquals(IkePayload.SPI_NOT_INCLUDED, payload.spi); in testDecodeNotifyPayloadSpiUnset()
80 assertEquals(IkePayload.PROTOCOL_ID_ESP, payload.protocolId); in testDecodeNotifyPayloadSpiSet()
81 assertEquals(IkePayload.SPI_LEN_IPSEC, payload.spiSize); in testDecodeNotifyPayloadSpiSet()
151 payload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_NOTIFY, byteBuffer); in testEncodeNotifyPayload()
DIkeSaPayloadTest.java641 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId);
642 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, proposal.spiSize);
643 assertEquals(IkePayload.SPI_NOT_INCLUDED, proposal.spi);
659 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId);
670 IkePayload.SPI_LEN_NOT_INCLUDED,
705 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId);
706 assertEquals(IkePayload.SPI_LEN_IKE, proposal.spiSize);
722 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId);
723 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, proposal.spiSize);
744 assertEquals(IkePayload.PROTOCOL_ID_ESP, proposal.protocolId);
[all …]
DIkeTsPayloadTest.java79 IkePayload payload = in testDecodeTsInitiatorPayload()
81 IkePayload.PAYLOAD_TYPE_TS_INITIATOR, false, inputBuffer) in testDecodeTsInitiatorPayload()
86 assertEquals(IkePayload.PAYLOAD_TYPE_TS_INITIATOR, tsPayload.payloadType); in testDecodeTsInitiatorPayload()
96 tsPayload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_TS_RESPONDER, byteBuffer); in testBuildAndEncodeTsPayload()
DIkeEapPayloadTest.java40 IkePayload result = IkePayloadFactory in testDecodeIkeEapPayload()
41 .getIkePayload(IkePayload.PAYLOAD_TYPE_EAP, true, input).first; in testDecodeIkeEapPayload()
53 ikeEapPayload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_NO_NEXT, result); in testEncodeToByteBuffer()
DIkeEncryptedPayloadBodyTest.java162 IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH;
330 IkePayload.PAYLOAD_TYPE_ID_INITIATOR, in testBuildAndEncodeOutboundIkeEncryptedPayloadBody()
392 IkePayload.PAYLOAD_TYPE_NO_NEXT, in testBuildAndEncodeWithHmacSha13Des()
430 IkePayload.PAYLOAD_TYPE_AUTH, in testBuildAndEncodeMsgWithAesGcm()
469 IkePayload.PAYLOAD_TYPE_NO_NEXT, in testBuildAndEncodeFragMsgWithAesGcm()
DIkeTestUtils.java42 public static IkePayload hexStringToIkePayload( in hexStringToIkePayload()
43 @IkePayload.PayloadType int payloadType, boolean isResp, String payloadHexString) in hexStringToIkePayload()
47 Pair<IkePayload, Integer> pair = in hexStringToIkePayload()
DIkeSkfPayloadTest.java74 IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH;
129 assertEquals(IkePayload.PAYLOAD_TYPE_SKF, payload.payloadType); in testDecode()
193 payload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_NO_NEXT, buffer); in testEncode()
DIkeNoncePayloadTest.java34 @IkePayload.PayloadType
35 private static final int NEXT_PAYLOAD_TYPE = IkePayload.PAYLOAD_TYPE_NOTIFY;
DIkeHeaderTest.java54 @IkePayload.PayloadType
55 private static final byte IKE_FIRST_PAYLOAD_TYPE = IkePayload.PAYLOAD_TYPE_SA;
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java25 import com.android.internal.net.ipsec.ike.message.IkePayload;
210 @IkePayload.ProtocolId private final int mProtocolId;
217 @IkePayload.ProtocolId int protocol, in SaProposal()
306 @IkePayload.ProtocolId
475 sb.append(IkePayload.getProtocolTypeString(mProtocolId)).append(": "); in toString()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DSaProposalTest.java35 import com.android.internal.net.ipsec.ike.message.IkePayload;
80 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.getProtocolId()); in testBuildIkeSaProposalWithNormalModeCipher()
104 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.getProtocolId()); in testBuildIkeSaProposalWithCombinedModeCipher()
125 assertEquals(IkePayload.PROTOCOL_ID_ESP, proposal.getProtocolId()); in testBuildChildSaProposalWithNormalCipher()

12