Constructor and Description |
---|
JceTlsMAC(javax.crypto.Mac mac,
java.lang.String algorithm) |
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,
int keyOff,
int keyLen)
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.
|
public void setKey(byte[] key, int keyOff, int keyLen)
TlsMAC
public void update(byte[] input, int inOff, int length)
TlsMAC
public byte[] calculateMAC()
TlsMAC
calculateMAC
in interface TlsMAC
public int getMacLength()
TlsMAC
getMacLength
in interface TlsMAC