Home
last modified time | relevance | path

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

12

/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeDeletePayloadTest.java198 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeForIke()
210 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeWithSingleChildSa()
226 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeWithMultipleChildSas()
240 assertEquals(expectedPayloadBytes.length, deletePayload.getPayloadLength()); in testPayloadLengthForIke()
250 assertEquals(expectedPayloadBytes.length, deletePayload.getPayloadLength()); in testPayloadLengthWithSingleChildSa()
263 assertEquals(expectedPayloadBytes.length, deletePayload.getPayloadLength()); in testPayloadLengthWithMultipleChildSas()
H A DIkeIdPayloadTest.java213 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeIpv4AddrIdPayload()
226 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeIpv6AddrIdPayload()
239 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeFqdnIdPayload()
252 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeRfc822AddrIdPayload()
264 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeKeyIdPayload()
277 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeDerAsn1DnIdPayload()
H A DIkeNoncePayloadTest.java42 ByteBuffer byteBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testEncode()
H A DIkeEapPayloadTest.java66 assertEquals(IKE_EAP_PAYLOAD.length, ikeEapPayload.getPayloadLength()); in testGetPayloadLength()
H A DIkeCertReqPayloadTest.java69 assertEquals(CERT_REQ_PAYLOAD.length, certPayload.getPayloadLength()); in testEncode()
H A DIkeSkPayloadTest.java101 int payloadLength = payload.getPayloadLength(); in testEncode()
H A DIkeCertX509CertPayloadTest.java109 ByteBuffer buffer = ByteBuffer.allocate(certPayload.getPayloadLength()); in testEncodeX509Certificate()
H A DIkeAuthPskPayloadTest.java97 int payloadLength = payload.getPayloadLength(); in testBuildOutboundIkeAuthPskPayload()
H A DIkeTsPayloadTest.java95 ByteBuffer byteBuffer = ByteBuffer.allocate(tsPayload.getPayloadLength()); in testBuildAndEncodeTsPayload()
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeIdPayload.java119 ByteBuffer byteBuffer = ByteBuffer.allocate(getPayloadLength() - GENERIC_HEADER_LENGTH); in getEncodedPayloadBody()
142 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
152 protected int getPayloadLength() { in getPayloadLength() method in IkeIdPayload
H A DIkeEapPayload.java70 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
80 protected int getPayloadLength() { in getPayloadLength() method in IkeEapPayload
H A DIkeCertReqPayload.java73 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
84 protected int getPayloadLength() { in getPayloadLength() method in IkeCertReqPayload
H A DIkeCertX509CertPayload.java78 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
94 protected int getPayloadLength() { in getPayloadLength() method in IkeCertX509CertPayload
H A DIkeDeletePayload.java149 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
163 protected int getPayloadLength() { in getPayloadLength() method in IkeDeletePayload
H A DIkeTsPayload.java118 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
132 protected int getPayloadLength() { in getPayloadLength() method in IkeTsPayload
H A DIkeAuthPayload.java116 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
122 protected int getPayloadLength() { in getPayloadLength() method in IkeAuthPayload
H A DIkeSkPayload.java184 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
194 protected int getPayloadLength() { in getPayloadLength() method in IkeSkPayload
H A DIkeSkfPayload.java149 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
162 protected int getPayloadLength() { in getPayloadLength() method in IkeSkfPayload
H A DIkeUnsupportedPayload.java57 protected int getPayloadLength() { in getPayloadLength() method in IkeUnsupportedPayload
H A DIkeVendorPayload.java63 protected int getPayloadLength() { in getPayloadLength() method in IkeVendorPayload
H A DIkeMessage.java250 payloadLengthSum += payload.getPayloadLength(); in encodePayloads()
478 int msgLen = IkeHeader.IKE_HEADER_LENGTH + skPayload.getPayloadLength(); in encryptAndEncode()
553 ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH + skPayload.getPayloadLength()); in encodeHeaderAndBody()
554 ikeHeader.encodeToByteBuffer(outputBuffer, skPayload.getPayloadLength()); in encodeHeaderAndBody()
H A DIkeNoncePayload.java99 protected int getPayloadLength() { in getPayloadLength() method in IkeNoncePayload
H A DIkeKePayload.java290 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
303 protected int getPayloadLength() { in getPayloadLength() method in IkeKePayload
H A DIkePayload.java244 protected abstract int getPayloadLength(); in getPayloadLength() method in IkePayload
H A DIkeNotifyPayload.java397 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer()
411 protected int getPayloadLength() { in getPayloadLength() method in IkeNotifyPayload

12