| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private Digest | |
| private int | |
| private byte[] | |
| private static final byte | |
| private static final byte | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | doFinal(byte[]
the array the MAC is to be output to. out, int the offset into the out buffer the output is to start at. outOff)Implements org. |
| public String | getAlgorithmName()
Implements org. |
| public int | getMacSize()
Implements org. |
| public Digest | |
| public void | init(CipherParameters
the key and other data required by the MAC. params)Implements org. |
| public void | |
| public void | update(byte
the byte to be processed. in)Implements org. |
| public void | update(byte[]
the array containing the input. in, int the index in the array the data begins at. inOff, int the length of the input starting at inOff. len)Implements org. |
| BLOCK_LENGTH | back to summary |
|---|---|
| private static final int BLOCK_LENGTH | |
| digest | back to summary |
|---|---|
| private Digest digest | |
| digestSize | back to summary |
|---|---|
| private int digestSize | |
| inputPad | back to summary |
|---|---|
| private byte[] inputPad | |
| IPAD | back to summary |
|---|---|
| private static final byte IPAD | |
| OPAD | back to summary |
|---|---|
| private static final byte OPAD | |
| outputPad | back to summary |
|---|---|
| private byte[] outputPad | |
| OldHMac | back to summary |
|---|---|
| public OldHMac(Digest digest)
Deprecated uses incorrect pad for SHA-512 and SHA-384 use HMac. | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) Implements org. Doc from org. 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.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the MAC implements.
| |
| getMacSize | back to summary |
|---|---|
| public int getMacSize() Implements org. Doc from org. Return the block size for this MAC (in bytes).
| |
| getUnderlyingDigest | back to summary |
|---|---|
| public Digest getUnderlyingDigest() | |
| init | back to summary |
|---|---|
| public void init(CipherParameters params) Implements org. Doc from org. Initialise the MAC.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Reset the mac generator. | |
| update | back to summary |
|---|---|
| public void update(byte in) Implements org. Doc from org. add a single byte to the mac for processing.
| |
| update | back to summary |
|---|---|
| public void update(byte[] in, int inOff, int len) Implements org.
| |