Searched refs:spiSize (Results 1 – 7 of 7) sorted by relevance
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSaPayload.java | 113 byte spiSize, in IkeSaPayload() argument 118 this(isResp, spiSize, localAddress); in IkeSaPayload() 129 spiSize, in IkeSaPayload() 142 byte spiSize, in IkeSaPayload() argument 148 this(isResp, spiSize, localAddress); in IkeSaPayload() 153 spiSize, in IkeSaPayload() 161 private IkeSaPayload(boolean isResp, byte spiSize, InetAddress localAddress) in IkeSaPayload() argument 390 if (reqProposal.spiSize != SPI_NOT_INCLUDED in getVerifiedNegotiatedIkeProposalPair() 395 if (respProposal.spiSize != SPI_NOT_INCLUDED in getVerifiedNegotiatedIkeProposalPair() 557 public final byte spiSize; field in IkeSaPayload.Proposal [all …]
|
D | IkeDeletePayload.java | 59 public final byte spiSize; field in IkeDeletePayload 80 spiSize = inputBuffer.get(); in IkeDeletePayload() 87 if (spiSize != SPI_LEN_NOT_INCLUDED in IkeDeletePayload() 95 if (spiSize != SPI_LEN_IPSEC in IkeDeletePayload() 119 spiSize = SPI_LEN_NOT_INCLUDED; in IkeDeletePayload() 137 spiSize = SPI_LEN_IPSEC; in IkeDeletePayload() 151 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) numSpi); in encodeToByteBuffer() 165 return GENERIC_HEADER_LENGTH + DELETE_HEADER_LEN + spisToDelete.length * spiSize; in getPayloadLength()
|
D | IkeNotifyPayload.java | 217 public final byte spiSize; field in IkeNotifyPayload 236 spiSize = inputBuffer.get(); in IkeNotifyPayload() 241 if (spiSize == SPI_LEN_IPSEC) { in IkeNotifyPayload() 246 } else if (spiSize == SPI_LEN_NOT_INCLUDED) { in IkeNotifyPayload() 252 throw new InvalidSyntaxException("Invalid SPI Size: " + spiSize); in IkeNotifyPayload() 255 notifyData = new byte[payloadBody.length - NOTIFY_HEADER_LEN - spiSize]; in IkeNotifyPayload() 331 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) notifyType); in encodeToByteBuffer() 332 if (spiSize == SPI_LEN_IPSEC) { in encodeToByteBuffer() 345 return GENERIC_HEADER_LENGTH + NOTIFY_HEADER_LEN + spiSize + notifyData.length; in getPayloadLength() 349 @ProtocolId int protocolId, byte spiSize, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeDeletePayloadTest.java | 66 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, deletePayload.spiSize); in testDecodeDeleteIkePayload() 85 assertEquals(IkePayload.SPI_LEN_IPSEC, deletePayload.spiSize); in testDecodeDeleteChildPayload() 158 assertEquals(SPI_LEN_NOT_INCLUDED, deletePayload.spiSize); in testOutboundConstructorForIke() 169 assertEquals(SPI_LEN_IPSEC, deletePayload.spiSize); in testOutboundConstructorWithSingleChildSa() 180 assertEquals(SPI_LEN_IPSEC, deletePayload.spiSize); in testOutboundConstructorWithMultipleChildSas()
|
D | IkeSaPayloadTest.java | 642 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, proposal.spiSize); 660 assertEquals(0, proposal.spiSize); 706 assertEquals(IkePayload.SPI_LEN_IKE, proposal.spiSize); 723 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, proposal.spiSize); 745 assertEquals(IkePayload.SPI_LEN_IPSEC, proposal.spiSize);
|
D | IkeNotifyPayloadTest.java | 69 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, payload.spiSize); in testDecodeNotifyPayloadSpiUnset() 81 assertEquals(IkePayload.SPI_LEN_IPSEC, payload.spiSize); in testDecodeNotifyPayloadSpiSet()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachineTest.java | 3061 assertEquals(IkePayload.SPI_LEN_IKE, proposal.spiSize); in testRekeyIkeLocalCreateSendsRequest() 3334 assertEquals(0, deletePayload.spiSize); in testRekeyIkeLocalDeleteSendsRequest() 4011 assertEquals(0, deletePayload.spiSize); in testDeleteIkeLocalDeleteRequest()
|