Home
last modified time | relevance | path

Searched refs:IKE_HEADER_LENGTH (Results 1 – 11 of 11) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeHeader.java51 public static final int IKE_HEADER_LENGTH = 28; field in IkeHeader
135 if (packet.length <= IKE_HEADER_LENGTH) { in IkeHeader()
232 byteBuffer.put(flag).putInt(messageId).putInt(IKE_HEADER_LENGTH + encodedMessageBodyLen); in encodeToByteBuffer()
DIkePayloadFactory.java186 IkeHeader.IKE_HEADER_LENGTH, in getIkeSkPayload()
187 message.length - IkeHeader.IKE_HEADER_LENGTH); in getIkeSkPayload()
195 int bodyLength = message.length - IkeHeader.IKE_HEADER_LENGTH; in getIkeSkPayload()
DIkeSkfPayload.java68 IkeHeader.IKE_HEADER_LENGTH + GENERIC_HEADER_LENGTH + SKF_HEADER_LEN, in IkeSkfPayload()
78 inputBuffer.get(new byte[IkeHeader.IKE_HEADER_LENGTH + GENERIC_HEADER_LENGTH]); in IkeSkfPayload()
DIkeMessage.java317 ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH + encodedIkeBody.length); in attachEncodedHeader()
606 int msgLen = IkeHeader.IKE_HEADER_LENGTH + skPayload.getPayloadLength(); in encryptAndEncode()
623 - IkeHeader.IKE_HEADER_LENGTH in encryptAndEncode()
681 ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH + skPayload.getPayloadLength()); in encodeHeaderAndBody()
699 inputPacket, IkeHeader.IKE_HEADER_LENGTH, inputPacket.length); in decode()
DIkeEncryptedPayloadBody.java229 int dataToAuthenticateLength = IkeHeader.IKE_HEADER_LENGTH + encryptedPayloadHeaderToPadLen; in generateOutboundChecksum()
299 IkeHeader.IKE_HEADER_LENGTH in combinedModeEncrypt()
DIkeSkPayload.java68 IkeHeader.IKE_HEADER_LENGTH + GENERIC_HEADER_LENGTH, in IkeSkPayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java275 byteBuffer.get(new byte[IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH]); in makeFragmentBytes()
347 inputPacket[IkeHeader.IKE_HEADER_LENGTH + PAYLOAD_CRITICAL_BIT_OFFSET] = (byte) 0x80; in testThrowUnsupportedCriticalPayloadException()
360 inputPacket[IkeHeader.IKE_HEADER_LENGTH + FIRST_PAYLOAD_LENGTH_OFFSET] = (byte) 0; in testDecodeMessageWithTooShortPayloadLength()
361 inputPacket[IkeHeader.IKE_HEADER_LENGTH + FIRST_PAYLOAD_LENGTH_OFFSET + 1] = (byte) 0; in testDecodeMessageWithTooShortPayloadLength()
370 inputPacket[IkeHeader.IKE_HEADER_LENGTH + LAST_PAYLOAD_LENGTH_OFFSET]++; in testDecodeMessageWithTooLongPayloadLength()
957 byte[] headerBytes = new byte[IkeHeader.IKE_HEADER_LENGTH]; in verifyEncodeAndEncryptFragments()
960 ByteBuffer expectedHeadBuffer = ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH); in verifyEncodeAndEncryptFragments()
962 expectedHeadBuffer, p.length - IkeHeader.IKE_HEADER_LENGTH); in verifyEncodeAndEncryptFragments()
DIkeHeaderTest.java66 private static final int IKE_MSG_BODY_LENGTH = IKE_MSG_LENGTH - IkeHeader.IKE_HEADER_LENGTH;
135 ByteBuffer byteBuffer = ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH); in testEncodeIkeHeader()
DIkeSkfPayloadTest.java74 IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH;
196 Arrays.copyOfRange(message, IkeHeader.IKE_HEADER_LENGTH, message.length); in testEncode()
DIkeSkPayloadTest.java90 Arrays.copyOfRange(message, IkeHeader.IKE_HEADER_LENGTH, message.length); in testEncode()
DIkeEncryptedPayloadBodyTest.java162 IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH;