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/ |
D | IkeHeader.java | 51 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()
|
D | IkePayloadFactory.java | 186 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()
|
D | IkeSkfPayload.java | 68 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()
|
D | IkeMessage.java | 317 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()
|
D | IkeEncryptedPayloadBody.java | 229 int dataToAuthenticateLength = IkeHeader.IKE_HEADER_LENGTH + encryptedPayloadHeaderToPadLen; in generateOutboundChecksum() 299 IkeHeader.IKE_HEADER_LENGTH in combinedModeEncrypt()
|
D | IkeSkPayload.java | 68 IkeHeader.IKE_HEADER_LENGTH + GENERIC_HEADER_LENGTH, in IkeSkPayload()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeMessageTest.java | 275 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()
|
D | IkeHeaderTest.java | 66 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()
|
D | IkeSkfPayloadTest.java | 74 IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH; 196 Arrays.copyOfRange(message, IkeHeader.IKE_HEADER_LENGTH, message.length); in testEncode()
|
D | IkeSkPayloadTest.java | 90 Arrays.copyOfRange(message, IkeHeader.IKE_HEADER_LENGTH, message.length); in testEncode()
|
D | IkeEncryptedPayloadBodyTest.java | 162 IkeHeader.IKE_HEADER_LENGTH + IkePayload.GENERIC_HEADER_LENGTH;
|