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 | 508 int totalFragments = in encryptAndEncode() local 511 byte[][] packetList = new byte[totalFragments][]; in encryptAndEncode() 514 for (int i = 0; i < totalFragments; i++) { in encryptAndEncode() 533 totalFragments); in encryptAndEncode() 542 + totalFragments in encryptAndEncode() 658 + ((IkeSkfPayload) pair.first).totalFragments in decode() 781 if (skf.totalFragments > collectedFragments.collectedFragsList.length) { in processIkeFragment() 791 if (skf.totalFragments < collectedFragments.collectedFragsList.length) { in processIkeFragment() 897 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 | 270 private byte[] makeFragmentBytes(int fragNum, int totalFragments) { in makeFragmentBytes() argument 275 byteBuffer.putShort((short) fragNum).putShort((short) totalFragments); in makeFragmentBytes() 770 int totalFragments = 5; in testRcvFragWithLargerTotalFragments() local 771 byte[] fragPacket = makeFragmentBytes(2 /*fragNum*/, totalFragments); in testRcvFragWithLargerTotalFragments() 775 makeDummySkfPayload(unencryptedData, FRAGMENT_NUM_TWO, totalFragments); in testRcvFragWithLargerTotalFragments() 792 assertEquals(totalFragments, resultPartial.collectedFragsList.length); in testRcvFragWithLargerTotalFragments() 799 int totalFragments = 5; in testRcvFragWithSmallerTotalFragments() local 802 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 | 3487 int totalFragments = 2; in testCreateIkeLocalIkeAuthHandlesFirstFrag() local 3489 IkeTestUtils.makeDummySkfPayload(unencryptedData, fragNum, totalFragments); in testCreateIkeLocalIkeAuthHandlesFirstFrag() 3511 assertEquals(totalFragments, resultPartial.collectedFragsList.length); in testCreateIkeLocalIkeAuthHandlesFirstFrag() 4002 int totalFragments = 2; in testRekeyIkeLocalDeleteWithRequestFragOnNewSa() local 4004 IkeTestUtils.makeDummySkfPayload(unencryptedData, fragNum, totalFragments); in testRekeyIkeLocalDeleteWithRequestFragOnNewSa() 4025 assertEquals(totalFragments, resultPartial.collectedFragsList.length); in testRekeyIkeLocalDeleteWithRequestFragOnNewSa()
|