public interface TlsMAC
Modifier and Type | Method and Description |
---|---|
byte[] |
calculateMAC()
Return calculated MAC for any input passed in.
|
int |
getMacLength()
Return the length of the MAC generated by this service.
|
void |
reset()
Reset the MAC underlying this service.
|
void |
setKey(byte[] key)
Set the key to be used by the MAC implementation supporting this service.
|
void |
update(byte[] input,
int inOff,
int length)
Update the MAC with the passed in input.
|
void setKey(byte[] key)
key
- the MAC key.void update(byte[] input, int inOff, int length)
input
- input array containing the data.inOff
- offset into the input array the input starts at.length
- the length of the input data.byte[] calculateMAC()
int getMacLength()
void reset()