Home
last modified time | relevance | path

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

/aosp12/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
H A DIkeTrafficSelectorTest.java102 byte[] tsBytes = in testDecodeIkeTrafficSelectors()
199 tsBytes[TS_TYPE_OFFSET] = -1; in testDecodeIkeTrafficSelectorWithInvalidTsType()
202 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidTsType()
213 tsBytes[PROTOCOL_ID_OFFSET] = -1; in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()
216 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()
229 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithExpectedTrailing()
242 tsBytes[TS_LENGTH_OFFSET] = 0; in testDecodeIkeTrafficSelectorWithInvalidTsLength()
243 tsBytes[TS_LENGTH_OFFSET + 1] = 0; in testDecodeIkeTrafficSelectorWithInvalidTsLength()
246 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidTsLength()
413 byte[] tsBytes = in testDecodeWithBothIpv6AndIpv4TS()
[all …]
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeTsPayload.java61 byte[] tsBytes = new byte[inputBuffer.remaining()]; in IkeTsPayload()
62 inputBuffer.get(tsBytes); in IkeTsPayload()
63 trafficSelectors = IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in IkeTsPayload()
/aosp12/packages/modules/IPsec/src/java/android/net/ipsec/ike/
H A DIkeTrafficSelector.java279 public static IkeTrafficSelector[] decodeIkeTrafficSelectors(int numTs, byte[] tsBytes) in decodeIkeTrafficSelectors() argument
282 ByteBuffer inputBuffer = ByteBuffer.wrap(tsBytes); in decodeIkeTrafficSelectors()