public class TlsMac
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
TlsMac(Digest digest,
byte[] key_block,
int offset,
int len)
Generate a new instance of an TlsMac.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
calculateMac(short type,
byte[] message,
int offset,
int len)
Calculate the mac for some given data.
|
protected int |
getSize() |
protected TlsMac(Digest digest, byte[] key_block, int offset, int len)
digest
- The digest to use.key_block
- A byte-array where the key for this mac is located.offset
- The number of bytes to skip, before the key starts in the buffer.len
- The length of the key.protected int getSize()
protected byte[] calculateMac(short type, byte[] message, int offset, int len)
type
- The message type of the message.message
- A byte-buffer containing the message.offset
- The number of bytes to skip, before the message starts.len
- The length of the message.