Searched refs:spiSize (Results 1 – 7 of 7) sorted by relevance
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeDeletePayload.java | 58 public final byte spiSize; field in IkeDeletePayload 79 spiSize = inputBuffer.get(); in IkeDeletePayload() 86 if (spiSize != SPI_LEN_NOT_INCLUDED in IkeDeletePayload() 94 if (spiSize != SPI_LEN_IPSEC in IkeDeletePayload() 118 spiSize = SPI_LEN_NOT_INCLUDED; in IkeDeletePayload() 136 spiSize = SPI_LEN_IPSEC; in IkeDeletePayload() 150 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) numSpi); in encodeToByteBuffer() 164 return GENERIC_HEADER_LENGTH + DELETE_HEADER_LEN + spisToDelete.length * spiSize; in getPayloadLength()
|
D | IkeSaPayload.java | 115 byte spiSize, in IkeSaPayload() argument 120 this(isResp, spiSize, localAddress); in IkeSaPayload() 131 spiSize, in IkeSaPayload() 144 byte spiSize, in IkeSaPayload() argument 150 this(isResp, spiSize, localAddress); in IkeSaPayload() 155 spiSize, in IkeSaPayload() 163 private IkeSaPayload(boolean isResp, byte spiSize, InetAddress localAddress) in IkeSaPayload() argument 458 if (reqProposal.spiSize != SPI_NOT_INCLUDED in getVerifiedNegotiatedIkeProposalPair() 463 if (respProposal.spiSize != SPI_NOT_INCLUDED in getVerifiedNegotiatedIkeProposalPair() 625 public final byte spiSize; field in IkeSaPayload.Proposal [all …]
|
D | IkeNotifyPayload.java | 265 public final byte spiSize; field in IkeNotifyPayload 284 spiSize = inputBuffer.get(); in IkeNotifyPayload() 289 if (spiSize == SPI_LEN_IPSEC) { in IkeNotifyPayload() 294 } else if (spiSize == SPI_LEN_NOT_INCLUDED) { in IkeNotifyPayload() 300 throw new InvalidSyntaxException("Invalid SPI Size: " + spiSize); in IkeNotifyPayload() 303 notifyData = new byte[payloadBody.length - NOTIFY_HEADER_LEN - spiSize]; in IkeNotifyPayload() 408 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) notifyType); in encodeToByteBuffer() 409 if (spiSize == SPI_LEN_IPSEC) { in encodeToByteBuffer() 422 return GENERIC_HEADER_LENGTH + NOTIFY_HEADER_LEN + spiSize + notifyData.length; in getPayloadLength() 426 @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 | 67 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, deletePayload.spiSize); in testDecodeDeleteIkePayload() 86 assertEquals(IkePayload.SPI_LEN_IPSEC, deletePayload.spiSize); in testDecodeDeleteChildPayload() 159 assertEquals(SPI_LEN_NOT_INCLUDED, deletePayload.spiSize); in testOutboundConstructorForIke() 170 assertEquals(SPI_LEN_IPSEC, deletePayload.spiSize); in testOutboundConstructorWithSingleChildSa() 181 assertEquals(SPI_LEN_IPSEC, deletePayload.spiSize); in testOutboundConstructorWithMultipleChildSas()
|
D | IkeSaPayloadTest.java | 651 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, proposal.spiSize); 669 assertEquals(0, proposal.spiSize); 715 assertEquals(IkePayload.SPI_LEN_IKE, proposal.spiSize); 732 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, proposal.spiSize); 754 assertEquals(IkePayload.SPI_LEN_IPSEC, proposal.spiSize);
|
D | IkeNotifyPayloadTest.java | 104 assertEquals(IkePayload.SPI_LEN_NOT_INCLUDED, payload.spiSize); in testDecodeNotifyPayloadSpiUnset() 116 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 | 4024 assertEquals(IkePayload.SPI_LEN_IKE, proposal.spiSize); in testRekeyIkeLocalCreateSendsRequest() 4319 assertEquals(0, deletePayload.spiSize); in testRekeyIkeLocalDeleteSendsRequest() 5171 assertEquals(0, deletePayload.spiSize); in testDeleteIkeLocalDeleteRequest()
|