Searched refs:totalFragments (Results 1 – 5 of 5) sorted by relevance
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSkfPayload.java | 42 public final int totalFragments; field in IkeSkfPayload 81 totalFragments = Short.toUnsignedInt(inputBuffer.getShort()); in IkeSkfPayload() 83 if (fragmentNum < 1 || totalFragments < 1 || fragmentNum > totalFragments) { in IkeSkfPayload() 88 + totalFragments); in IkeSkfPayload() 123 totalFragments = totalFrags; in IkeSkfPayload() 131 totalFragments = totalFrags; in IkeSkfPayload() 152 .putShort((short) totalFragments) in encodeToByteBuffer()
|
D | IkeMessage.java | 636 int totalFragments = in encryptAndEncode() local 639 byte[][] packetList = new byte[totalFragments][]; in encryptAndEncode() 642 for (int i = 0; i < totalFragments; i++) { in encryptAndEncode() 661 totalFragments); in encryptAndEncode() 670 + totalFragments in encryptAndEncode() 786 + ((IkeSkfPayload) pair.first).totalFragments in decode() 909 if (skf.totalFragments > collectedFragments.collectedFragsList.length) { in processIkeFragment() 919 if (skf.totalFragments < collectedFragments.collectedFragsList.length) { in processIkeFragment() 1025 this.collectedFragsList = new byte[skfPayload.totalFragments][]; in DecodeResultPartial()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeMessageTest.java | 272 private byte[] makeFragmentBytes(int fragNum, int totalFragments) { in makeFragmentBytes() argument 277 byteBuffer.putShort((short) fragNum).putShort((short) totalFragments); in makeFragmentBytes() 772 int totalFragments = 5; in testRcvFragWithLargerTotalFragments() local 773 byte[] fragPacket = makeFragmentBytes(2 /*fragNum*/, totalFragments); in testRcvFragWithLargerTotalFragments() 777 makeDummySkfPayload(unencryptedData, FRAGMENT_NUM_TWO, totalFragments); in testRcvFragWithLargerTotalFragments() 794 assertEquals(totalFragments, resultPartial.collectedFragsList.length); in testRcvFragWithLargerTotalFragments() 801 int totalFragments = 5; in testRcvFragWithSmallerTotalFragments() local 804 makeDummySkfPayload(unencryptedData, FRAGMENT_NUM_ONE, totalFragments); in testRcvFragWithSmallerTotalFragments()
|
D | IkeSkfPayloadTest.java | 131 assertEquals(TOTAL_FRAGMENTS, payload.totalFragments); in testDecode()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachineTest.java | 3881 int totalFragments = 2; in testCreateIkeLocalIkeAuthHandlesFirstFrag() local 3883 IkeTestUtils.makeDummySkfPayload(unencryptedData, fragNum, totalFragments); in testCreateIkeLocalIkeAuthHandlesFirstFrag() 3905 assertEquals(totalFragments, resultPartial.collectedFragsList.length); in testCreateIkeLocalIkeAuthHandlesFirstFrag() 4406 int totalFragments = 2; in testRekeyIkeLocalDeleteWithRequestFragOnNewSa() local 4408 IkeTestUtils.makeDummySkfPayload(unencryptedData, fragNum, totalFragments); in testRekeyIkeLocalDeleteWithRequestFragOnNewSa() 4429 assertEquals(totalFragments, resultPartial.collectedFragsList.length); in testRekeyIkeLocalDeleteWithRequestFragOnNewSa()
|