Home
last modified time | relevance | path

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

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeDeletePayload.java57 @ProtocolId public final int protocolId; field in IkeDeletePayload
78 protocolId = Byte.toUnsignedInt(inputBuffer.get()); in IkeDeletePayload()
83 switch (protocolId) { in IkeDeletePayload()
117 protocolId = PROTOCOL_ID_IKE; in IkeDeletePayload()
135 protocolId = PROTOCOL_ID_ESP; in IkeDeletePayload()
150 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) numSpi); in encodeToByteBuffer()
DIkeNotifyPayload.java264 public final int protocolId; field in IkeNotifyPayload
283 protocolId = Byte.toUnsignedInt(inputBuffer.get()); in IkeNotifyPayload()
308 if (protocolId != PROTOCOL_ID_AH && protocolId != PROTOCOL_ID_ESP) { in validateNotifyPayloadForExistingChildSa()
310 "Expected Procotol ID AH(2) or ESP(3): Protocol ID is " + protocolId); in validateNotifyPayloadForExistingChildSa()
320 if (protocolId != PROTOCOL_ID_UNSET) { in validateNotifyPayloadForIkeAndNewChild()
321 getIkeLog().w(TAG, "Expected Procotol ID unset: Protocol ID is " + protocolId); in validateNotifyPayloadForIkeAndNewChild()
408 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) notifyType); in encodeToByteBuffer()
426 @ProtocolId int protocolId, byte spiSize, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload()
428 this.protocolId = protocolId; in IkeNotifyPayload()
470 @ProtocolId int protocolId, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload()
[all …]
DIkeSaPayload.java98 boolean firstIsIkeProposal = (proposalList.get(0).protocolId == PROTOCOL_ID_IKE); in IkeSaPayload()
100 boolean isIkeProposal = (proposalList.get(i).protocolId == PROTOCOL_ID_IKE); in IkeSaPayload()
623 public final int protocolId; field in IkeSaPayload.Proposal
633 int protocolId, in Proposal() argument
638 this.protocolId = protocolId; in Proposal()
656 int protocolId = Byte.toUnsignedInt(inputBuffer.get()); in readFrom() local
714 if (protocolId == PROTOCOL_ID_IKE) { in readFrom()
762 if (protocolId != reqProposal.protocolId || number != reqProposal.number) { in isNegotiatedFrom()
777 .put((byte) protocolId) in encodeToByteBuffer()
DIkeMessage.java440 if (saPayload.proposalList.get(0).protocolId == IkePayload.PROTOCOL_ID_IKE) { in getIkeExchangeSubType()
470 if (deletePayload.protocolId == IkePayload.PROTOCOL_ID_IKE) { in getIkeExchangeSubType()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeDeletePayloadTest.java66 assertEquals(IkePayload.PROTOCOL_ID_IKE, deletePayload.protocolId); in testDecodeDeleteIkePayload()
85 assertEquals(IkePayload.PROTOCOL_ID_ESP, deletePayload.protocolId); in testDecodeDeleteChildPayload()
158 assertEquals(PROTOCOL_ID_IKE, deletePayload.protocolId); in testOutboundConstructorForIke()
169 assertEquals(PROTOCOL_ID_ESP, deletePayload.protocolId); in testOutboundConstructorWithSingleChildSa()
180 assertEquals(PROTOCOL_ID_ESP, deletePayload.protocolId); in testOutboundConstructorWithMultipleChildSas()
DIkeSaPayloadTest.java650 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId);
668 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId);
714 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId);
731 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId);
753 assertEquals(IkePayload.PROTOCOL_ID_ESP, proposal.protocolId);
DIkeNotifyPayloadTest.java103 assertEquals(IkePayload.PROTOCOL_ID_UNSET, payload.protocolId); in testDecodeNotifyPayloadSpiUnset()
115 assertEquals(IkePayload.PROTOCOL_ID_ESP, payload.protocolId); in testDecodeNotifyPayloadSpiSet()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java284 int protocolId = in.getInt(PROTOCOL_ID_KEY); in fromPersistableBundle() local
285 switch (protocolId) { in fromPersistableBundle()
291 throw new IllegalArgumentException("Invalid protocol ID " + protocolId); in fromPersistableBundle()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java1093 assertEquals(PROTOCOL_ID_ESP, notifyPayload.protocolId); in verifyOutboundRekeyNotifyPayload()
1356 assertEquals(deletePayload.protocolId, IkePayload.PROTOCOL_ID_IKE); in verifySendOutboundIkeDeleteRequest()
DIkeSessionStateMachineTest.java4023 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId); in testRekeyIkeLocalCreateSendsRequest()
4317 assertEquals(IkePayload.PROTOCOL_ID_IKE, deletePayload.protocolId); in testRekeyIkeLocalDeleteSendsRequest()
5169 assertEquals(IkePayload.PROTOCOL_ID_IKE, deletePayload.protocolId); in testDeleteIkeLocalDeleteRequest()