org.bouncycastle.crypto.Mac |
Known Indirect Subclasses |
The base interface for implementations of message authentication codes (MACs).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compute the final stage of the MAC writing the output to the out
parameter.
| |||||||||||
Return the name of the algorithm the MAC implements.
| |||||||||||
Return the block size for this MAC (in bytes).
| |||||||||||
Initialise the MAC.
| |||||||||||
Reset the MAC.
| |||||||||||
add a single byte to the mac for processing.
|
Compute the final stage of the MAC writing the output to the out parameter.
doFinal leaves the MAC in the same state it was after the last init.
out | the array the MAC is to be output to. |
---|---|
outOff | the offset into the out buffer the output is to start at. |
DataLengthException | if there isn't enough space in out. |
---|---|
IllegalStateException | if the MAC is not initialised. |
Return the name of the algorithm the MAC implements.
Return the block size for this MAC (in bytes).
Initialise the MAC.
params | the key and other data required by the MAC. |
---|
IllegalArgumentException | if the params argument is inappropriate. |
---|
Reset the MAC. At the end of resetting the MAC should be in the in the same state it was after the last init (if there was one).
in | the array containing the input. |
---|---|
inOff | the index in the array the data begins at. |
len | the length of the input starting at inOff. |
IllegalStateException | if the MAC is not initialised. |
---|---|
DataLengthException | if there isn't enough data in in. |
add a single byte to the mac for processing.
in | the byte to be processed. |
---|
IllegalStateException | if the MAC is not initialised. |
---|