/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkePayloadFactory.java | 60 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 …]
|
D | IkeNoncePayload.java | 57 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()
|
D | IkeIdPayload.java | 61 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()
|
D | IkeAuthPayload.java | 68 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()
|
D | IkeCertPayload.java | 85 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()
|
D | IkeKePayload.java | 101 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()
|
D | IkeVendorPayload.java | 41 IkeVendorPayload(boolean critical, byte[] payloadBody) { in IkeVendorPayload() argument 43 vendorId = payloadBody; in IkeVendorPayload()
|
D | IkeCertReqPayload.java | 56 public IkeCertReqPayload(boolean critical, byte[] payloadBody) throws IkeProtocolException { in IkeCertReqPayload() argument 59 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeCertReqPayload()
|
D | IkeDeletePayload.java | 74 IkeDeletePayload(boolean critical, byte[] payloadBody) throws IkeProtocolException { in IkeDeletePayload() argument 77 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeDeletePayload()
|
D | IkeTsPayload.java | 48 IkeTsPayload(boolean critical, byte[] payloadBody, boolean isInitiator) in IkeTsPayload() argument 52 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeTsPayload()
|
D | IkeNotifyPayload.java | 230 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()
|
D | IkeConfigPayload.java | 107 IkeConfigPayload(boolean critical, byte[] payloadBody) throws InvalidSyntaxException { in IkeConfigPayload() argument 110 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeConfigPayload()
|
D | IkeSaPayload.java | 74 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/ |
D | IkeEncryptedPayloadBodyTest.java | 327 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 …]
|
D | IkeAuthPskPayloadTest.java | 108 byte[] payloadBody = TestUtils.hexStringToByteArray(PSK_AUTH_PAYLOAD_BODY_HEX_STRING); in buildPskPayload() 110 (IkeAuthPskPayload) IkeAuthPayload.getIkeAuthPayload(false, payloadBody); in buildPskPayload()
|