/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
H A D | IkeDeletePayloadTest.java | 198 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 D | IkeIdPayloadTest.java | 213 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 D | IkeNoncePayloadTest.java | 42 ByteBuffer byteBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testEncode()
|
H A D | IkeEapPayloadTest.java | 66 assertEquals(IKE_EAP_PAYLOAD.length, ikeEapPayload.getPayloadLength()); in testGetPayloadLength()
|
H A D | IkeCertReqPayloadTest.java | 69 assertEquals(CERT_REQ_PAYLOAD.length, certPayload.getPayloadLength()); in testEncode()
|
H A D | IkeSkPayloadTest.java | 101 int payloadLength = payload.getPayloadLength(); in testEncode()
|
H A D | IkeCertX509CertPayloadTest.java | 109 ByteBuffer buffer = ByteBuffer.allocate(certPayload.getPayloadLength()); in testEncodeX509Certificate()
|
H A D | IkeAuthPskPayloadTest.java | 97 int payloadLength = payload.getPayloadLength(); in testBuildOutboundIkeAuthPskPayload()
|
H A D | IkeTsPayloadTest.java | 95 ByteBuffer byteBuffer = ByteBuffer.allocate(tsPayload.getPayloadLength()); in testBuildAndEncodeTsPayload()
|
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
H A D | IkeIdPayload.java | 119 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 D | IkeEapPayload.java | 70 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 80 protected int getPayloadLength() { in getPayloadLength() method in IkeEapPayload
|
H A D | IkeCertReqPayload.java | 73 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 84 protected int getPayloadLength() { in getPayloadLength() method in IkeCertReqPayload
|
H A D | IkeCertX509CertPayload.java | 78 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 94 protected int getPayloadLength() { in getPayloadLength() method in IkeCertX509CertPayload
|
H A D | IkeDeletePayload.java | 149 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 163 protected int getPayloadLength() { in getPayloadLength() method in IkeDeletePayload
|
H A D | IkeTsPayload.java | 118 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 132 protected int getPayloadLength() { in getPayloadLength() method in IkeTsPayload
|
H A D | IkeAuthPayload.java | 116 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 122 protected int getPayloadLength() { in getPayloadLength() method in IkeAuthPayload
|
H A D | IkeSkPayload.java | 184 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 194 protected int getPayloadLength() { in getPayloadLength() method in IkeSkPayload
|
H A D | IkeSkfPayload.java | 149 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 162 protected int getPayloadLength() { in getPayloadLength() method in IkeSkfPayload
|
H A D | IkeUnsupportedPayload.java | 57 protected int getPayloadLength() { in getPayloadLength() method in IkeUnsupportedPayload
|
H A D | IkeVendorPayload.java | 63 protected int getPayloadLength() { in getPayloadLength() method in IkeVendorPayload
|
H A D | IkeMessage.java | 250 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 D | IkeNoncePayload.java | 99 protected int getPayloadLength() { in getPayloadLength() method in IkeNoncePayload
|
H A D | IkeKePayload.java | 290 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 303 protected int getPayloadLength() { in getPayloadLength() method in IkeKePayload
|
H A D | IkePayload.java | 244 protected abstract int getPayloadLength(); in getPayloadLength() method in IkePayload
|
H A D | IkeNotifyPayload.java | 397 encodePayloadHeaderToByteBuffer(nextPayload, getPayloadLength(), byteBuffer); in encodeToByteBuffer() 411 protected int getPayloadLength() { in getPayloadLength() method in IkeNotifyPayload
|