| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: A new byte array containing the MAC value.The sequence number of the record. seqNo, short The content type of the message. type, byte[] connectionID, byte[] A byte array containing the message. message, int The number of bytes to skip, before the message starts. offset, int The length of the message. length)Calculate the MAC for some given data. |
| public byte[] | Returns: A new byte array containing the MAC value.The sequence number of the record. seqNo, short The content type of the message. type, byte[] connectionID, byte[] A byte array containing the message. message, int The number of bytes to skip, before the message starts. offset, int The length of the message. length, int The expected length of the full message. expectedLength, byte[] Random data for padding out the MAC calculation if required. randomData)Constant time calculation of the MAC for some given data with a given expected length. |
| public int |
| calculateMac | back to summary |
|---|---|
| public byte[] calculateMac(long seqNo, short type, byte[] connectionID, byte[] message, int offset, int length) Calculate the MAC for some given data.
| |
| calculateMacConstantTime | back to summary |
|---|---|
| public byte[] calculateMacConstantTime(long seqNo, short type, byte[] connectionID, byte[] message, int offset, int length, int expectedLength, byte[] randomData) Constant time calculation of the MAC for some given data with a given expected length.
| |
| getSize | back to summary |
|---|---|
| public int getSize() Return the output length (in bytes) of this MAC.
| |