| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: a MAC.Return the MAC calculated on what has been written to the calculator's output stream. |
| public int | Returns: the number of bytes writtenoutput array to write the MAC to. output, int offset to start writing the MAC at. off)Output the current MAC value for what has been written to the calculator's output stream. |
| public int | Returns: MAC length in bytes.Return the size of the MAC produced by this calculator in bytes. |
| public UpdateOutputStream | Returns: an UpdateOutputStreamReturns a stream that will accept data for the purpose of calculating a MAC. |
| public T | Returns: the MAC calculator's parameters.Return the parameters for this MAC calculator. |
| public void |
| getMAC | back to summary |
|---|---|
| public byte[] getMAC() Return the MAC calculated on what has been written to the calculator's output stream.
| |
| getMAC | back to summary |
|---|---|
| public int getMAC(byte[] output, int off) Output the current MAC value for what has been written to the calculator's output stream.
| |
| getMACSize | back to summary |
|---|---|
| public int getMACSize() Return the size of the MAC produced by this calculator in bytes.
| |
| getMACStream | back to summary |
|---|---|
| public UpdateOutputStream getMACStream() Returns a stream that will accept data for the purpose of calculating a MAC. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.
| |
| getParameters | back to summary |
|---|---|
| public T getParameters() Return the parameters for this MAC calculator.
| |
| reset | back to summary |
|---|---|
| public void reset() Reset the calculator back to its initial state. | |