Home
last modified time | relevance | path

Searched refs:payloadBody (Results 1 – 15 of 15) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkePayloadFactory.java60 int payloadType, boolean isCritical, boolean isResp, byte[] payloadBody) in decodeIkePayload() argument
64 return new IkeSaPayload(isCritical, isResp, payloadBody); in decodeIkePayload()
66 return new IkeKePayload(isCritical, payloadBody); in decodeIkePayload()
68 return new IkeIdPayload(isCritical, payloadBody, true); in decodeIkePayload()
70 return new IkeIdPayload(isCritical, payloadBody, false); in decodeIkePayload()
72 return IkeCertPayload.getIkeCertPayload(isCritical, payloadBody); in decodeIkePayload()
74 return new IkeCertReqPayload(isCritical, payloadBody); in decodeIkePayload()
76 return IkeAuthPayload.getIkeAuthPayload(isCritical, payloadBody); in decodeIkePayload()
78 return new IkeNoncePayload(isCritical, payloadBody); in decodeIkePayload()
80 return new IkeNotifyPayload(isCritical, payloadBody); in decodeIkePayload()
[all …]
DIkeNoncePayload.java57 IkeNoncePayload(boolean critical, byte[] payloadBody) throws IkeProtocolException { in IkeNoncePayload() argument
59 if (payloadBody.length < MIN_NONCE_LEN || payloadBody.length > MAX_NONCE_LEN) { in IkeNoncePayload()
61 "Invalid nonce data with length of: " + payloadBody.length); in IkeNoncePayload()
66 nonceData = payloadBody; in IkeNoncePayload()
DIkeIdPayload.java61 IkeIdPayload(boolean critical, byte[] payloadBody, boolean isInitiator) in IkeIdPayload() argument
65 if (payloadBody.length <= ID_HEADER_LEN) { in IkeIdPayload()
69 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeIdPayload()
75 byte[] idData = new byte[payloadBody.length - ID_HEADER_LEN]; in IkeIdPayload()
DIkeAuthPayload.java68 protected static IkeAuthPayload getIkeAuthPayload(boolean critical, byte[] payloadBody) in getIkeAuthPayload() argument
70 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in getIkeAuthPayload()
77 byte[] authData = new byte[payloadBody.length - AUTH_HEADER_LEN]; in getIkeAuthPayload()
DIkeCertPayload.java85 protected static IkeCertPayload getIkeCertPayload(boolean critical, byte[] payloadBody) in getIkeCertPayload() argument
87 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in getIkeCertPayload()
90 byte[] certData = new byte[payloadBody.length - CERT_ENCODING_LEN]; in getIkeCertPayload()
DIkeKePayload.java101 IkeKePayload(boolean critical, byte[] payloadBody) throws IkeProtocolException { in IkeKePayload() argument
107 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeKePayload()
113 int dataSize = payloadBody.length - KE_HEADER_LEN; in IkeKePayload()
DIkeVendorPayload.java41 IkeVendorPayload(boolean critical, byte[] payloadBody) { in IkeVendorPayload() argument
43 vendorId = payloadBody; in IkeVendorPayload()
DIkeCertReqPayload.java56 public IkeCertReqPayload(boolean critical, byte[] payloadBody) throws IkeProtocolException { in IkeCertReqPayload() argument
59 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeCertReqPayload()
DIkeDeletePayload.java74 IkeDeletePayload(boolean critical, byte[] payloadBody) throws IkeProtocolException { in IkeDeletePayload() argument
77 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeDeletePayload()
DIkeTsPayload.java48 IkeTsPayload(boolean critical, byte[] payloadBody, boolean isInitiator) in IkeTsPayload() argument
52 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeTsPayload()
DIkeNotifyPayload.java230 IkeNotifyPayload(boolean isCritical, byte[] payloadBody) throws IkeProtocolException { in IkeNotifyPayload() argument
233 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeNotifyPayload()
255 notifyData = new byte[payloadBody.length - NOTIFY_HEADER_LEN - spiSize]; in IkeNotifyPayload()
DIkeConfigPayload.java107 IkeConfigPayload(boolean critical, byte[] payloadBody) throws InvalidSyntaxException { in IkeConfigPayload() argument
110 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeConfigPayload()
DIkeSaPayload.java74 IkeSaPayload(boolean critical, boolean isResp, byte[] payloadBody) throws IkeProtocolException { in IkeSaPayload() argument
77 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeSaPayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEncryptedPayloadBodyTest.java327 IkeEncryptedPayloadBody payloadBody = in testBuildAndEncodeOutboundIkeEncryptedPayloadBody() local
345 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeOutboundIkeEncryptedPayloadBody()
350 IkeEncryptedPayloadBody payloadBody = in testAuthAndDecodeHmacSha1AesCbc() local
359 assertArrayEquals(mDataToPadAndEncrypt, payloadBody.getUnencryptedData()); in testAuthAndDecodeHmacSha1AesCbc()
368 IkeEncryptedPayloadBody payloadBody = in testAuthAndDecodeHmacSha13Des() local
377 assertArrayEquals(expectedDecryptedData, payloadBody.getUnencryptedData()); in testAuthAndDecodeHmacSha13Des()
389 IkeEncryptedPayloadBody payloadBody = in testBuildAndEncodeWithHmacSha13Des() local
406 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeWithHmacSha13Des()
427 IkeEncryptedPayloadBody payloadBody = in testBuildAndEncodeMsgWithAesGcm() local
443 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeMsgWithAesGcm()
[all …]
DIkeAuthPskPayloadTest.java108 byte[] payloadBody = TestUtils.hexStringToByteArray(PSK_AUTH_PAYLOAD_BODY_HEX_STRING); in buildPskPayload()
110 (IkeAuthPskPayload) IkeAuthPayload.getIkeAuthPayload(false, payloadBody); in buildPskPayload()