Home
last modified time | relevance | path

Searched refs:getPayloadLength (Results 1 – 25 of 34) sorted by relevance

12

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeDeletePayloadTest.java197 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeForIke()
209 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeWithSingleChildSa()
225 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeWithMultipleChildSas()
239 assertEquals(expectedPayloadBytes.length, deletePayload.getPayloadLength()); in testPayloadLengthForIke()
249 assertEquals(expectedPayloadBytes.length, deletePayload.getPayloadLength()); in testPayloadLengthWithSingleChildSa()
262 assertEquals(expectedPayloadBytes.length, deletePayload.getPayloadLength()); in testPayloadLengthWithMultipleChildSas()
DIkeIdPayloadTest.java211 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeIpv4AddrIdPayload()
224 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeIpv6AddrIdPayload()
237 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeFqdnIdPayload()
250 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeRfc822AddrIdPayload()
262 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeKeyIdPayload()
275 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeDerAsn1DnIdPayload()
DIkeNoncePayloadTest.java42 ByteBuffer byteBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testEncode()
DIkeEapPayloadTest.java66 assertEquals(IKE_EAP_PAYLOAD.length, ikeEapPayload.getPayloadLength()); in testGetPayloadLength()
DIkeCertReqPayloadTest.java69 assertEquals(CERT_REQ_PAYLOAD.length, certPayload.getPayloadLength()); in testEncode()
DIkeSkPayloadTest.java101 int payloadLength = payload.getPayloadLength(); in testEncode()
DIkeCertX509CertPayloadTest.java108 ByteBuffer buffer = ByteBuffer.allocate(certPayload.getPayloadLength()); in testEncodeX509Certificate()
DIkeTsPayloadTest.java95 ByteBuffer byteBuffer = ByteBuffer.allocate(tsPayload.getPayloadLength()); in testBuildAndEncodeTsPayload()
DIkeAuthPskPayloadTest.java97 int payloadLength = payload.getPayloadLength(); in testBuildOutboundIkeAuthPskPayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeIdPayload.java120 ByteBuffer byteBuffer = ByteBuffer.allocate(getPayloadLength() - GENERIC_HEADER_LENGTH); in getEncodedPayloadBody()
143 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
153 protected int getPayloadLength() { in getPayloadLength() method in IkeIdPayload
DIkeEapPayload.java70 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
80 protected int getPayloadLength() { in getPayloadLength() method in IkeEapPayload
DIkeCertReqPayload.java73 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
84 protected int getPayloadLength() { in getPayloadLength() method in IkeCertReqPayload
DIkeCertX509CertPayload.java79 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
95 protected int getPayloadLength() { in getPayloadLength() method in IkeCertX509CertPayload
DIkeDeletePayload.java150 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
164 protected int getPayloadLength() { in getPayloadLength() method in IkeDeletePayload
DIkeTsPayload.java119 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
133 protected int getPayloadLength() { in getPayloadLength() method in IkeTsPayload
DIkeAuthPayload.java116 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
122 protected int getPayloadLength() { in getPayloadLength() method in IkeAuthPayload
DIkeSkPayload.java184 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
194 protected int getPayloadLength() { in getPayloadLength() method in IkeSkPayload
DIkeSkfPayload.java149 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
162 protected int getPayloadLength() { in getPayloadLength() method in IkeSkfPayload
DIkeMessage.java247 payloadLengthSum += payload.getPayloadLength(); in encodePayloads()
463 int msgLen = IkeHeader.IKE_HEADER_LENGTH + skPayload.getPayloadLength(); in encryptAndEncode()
538 ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH + skPayload.getPayloadLength()); in encodeHeaderAndBody()
539 ikeHeader.encodeToByteBuffer(outputBuffer, skPayload.getPayloadLength()); in encodeHeaderAndBody()
DIkeKePayload.java227 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
240 protected int getPayloadLength() { in getPayloadLength() method in IkeKePayload
DIkeNotifyPayload.java330 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
344 protected int getPayloadLength() { in getPayloadLength() method in IkeNotifyPayload
DIkeUnsupportedPayload.java57 protected int getPayloadLength() { in getPayloadLength() method in IkeUnsupportedPayload
DIkeVendorPayload.java63 protected int getPayloadLength() { in getPayloadLength() method in IkeVendorPayload
DIkeNoncePayload.java99 protected int getPayloadLength() { in getPayloadLength() method in IkeNoncePayload
DIkePayload.java244 protected abstract int getPayloadLength(); in getPayloadLength() method in IkePayload

12