Home
last modified time | relevance | path

Searched refs:tsBytes (Results 1 – 3 of 3) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeTrafficSelectorTest.java101 byte[] tsBytes = in testDecodeIkeTrafficSelectors()
104 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectors()
181 byte[] tsBytes = TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING); in testDecodeIkeTrafficSelectorWithInvalidTsType()
182 tsBytes[TS_TYPE_OFFSET] = -1; in testDecodeIkeTrafficSelectorWithInvalidTsType()
185 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidTsType()
195 byte[] tsBytes = TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING); in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()
196 tsBytes[PROTOCOL_ID_OFFSET] = -1; in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()
199 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()
209 byte[] tsBytes = TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING + "FFFF"); in testDecodeIkeTrafficSelectorWithExpectedTrailing()
212 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithExpectedTrailing()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeTsPayload.java62 byte[] tsBytes = new byte[inputBuffer.remaining()]; in IkeTsPayload()
63 inputBuffer.get(tsBytes); in IkeTsPayload()
64 trafficSelectors = IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in IkeTsPayload()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeTrafficSelector.java236 public static IkeTrafficSelector[] decodeIkeTrafficSelectors(int numTs, byte[] tsBytes) in decodeIkeTrafficSelectors() argument
239 ByteBuffer inputBuffer = ByteBuffer.wrap(tsBytes); in decodeIkeTrafficSelectors()