| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static Hashtable | |
| private Digest | |
| private int | |
| private byte[] | |
| private static final byte | |
| private Memoable | |
| private static final byte | |
| private Memoable | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| 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 com. |
| public String | getAlgorithmName()
Implements com. |
| private static int | |
| public int | getMacSize()
Implements com. |
| public Digest | |
| public void | init(CipherParameters
the key and other data required by the MAC. params)Implements com. |
| public void | |
| public void | update(byte
the byte to be processed. in)Implements com. |
| 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 com. |
| private static void |
| blockLength | back to summary |
|---|---|
| private int blockLength | |
| blockLengths | back to summary |
|---|---|
| private static Hashtable<String, Integer> blockLengths | |
| 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 | |
| ipadState | back to summary |
|---|---|
| private Memoable ipadState | |
| OPAD | back to summary |
|---|---|
| private static final byte OPAD | |
| opadState | back to summary |
|---|---|
| private Memoable opadState | |
| outputBuf | back to summary |
|---|---|
| private byte[] outputBuf | |
| HMac | back to summary |
|---|---|
| public HMac(Digest digest) Base constructor for one of the standard digest algorithms that the byteLength of the algorithm is know for.
| |
| HMac | back to summary |
|---|---|
| private HMac(Digest digest, int byteLength) | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) Implements com. Doc from com. 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 com. Doc from com. Return the name of the algorithm the MAC implements.
| |
| getByteLength | back to summary |
|---|---|
| private static int getByteLength(Digest digest) | |
| getMacSize | back to summary |
|---|---|
| public int getMacSize() Implements com. Doc from com. 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 com. Doc from com. Initialise the MAC.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements com. Reset the mac generator. | |
| update | back to summary |
|---|---|
| public void update(byte in) Implements com. Doc from com. add a single byte to the mac for processing.
| |
| update | back to summary |
|---|---|
| public void update(byte[] in, int inOff, int len) Implements com.
| |
| xorPad | back to summary |
|---|---|
| private static void xorPad(byte[] pad, int len, byte n) | |