public class ZrtpPacketBase extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CLIENT_ID_SIZE |
static int |
CRC_SIZE
The size of the ZRTP specific CRC field.
|
static int |
HASH_IMAGE_SIZE |
static int |
HMAC_SIZE |
static int |
HVI_SIZE |
protected byte[] |
packetBuffer |
static int |
ZID_SIZE |
protected static int |
ZRTP_HEADER_LENGTH
The length of the standard ZRTP packet header
|
static int |
ZRTP_WORD_SIZE
A word in ZRTP is 4 bytes long.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ZrtpPacketBase(byte[] pb) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getHeaderBase() |
short |
getLength() |
String |
getMessageType() |
boolean |
isZrtpPacket()
Check if packet buffer contains the generic ZRTP id field.
|
protected void |
setLength(int length)
Set the length of the packet (in ZRTP words) into the packet header.
|
void |
setMessageType(byte[] messageType)
Copy the message type to the ZRTP packet header.
|
protected void |
setZrtpId()
Copy the unique ZRTP id into the ZRTP packer header
|
public static final int ZRTP_WORD_SIZE
public static final int ZID_SIZE
public static final int CLIENT_ID_SIZE
public static final int HASH_IMAGE_SIZE
public static final int HVI_SIZE
public static final int HMAC_SIZE
public static final int CRC_SIZE
protected static final int ZRTP_HEADER_LENGTH
protected byte[] packetBuffer
public final byte[] getHeaderBase()
public final boolean isZrtpPacket()
public final short getLength()
public final String getMessageType()
protected final void setZrtpId()
protected final void setLength(int length)
length - The length of the packet in ZRTP wordspublic final void setMessageType(byte[] messageType)
messageType - The message type name.Copyright © 2020. All rights reserved.