| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Mac | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | JceTlsHMAC(int
the hash algorithm underlying the MAC implementation cryptoHashAlgorithm, Mac MAC implementation. hmac, String algorithm name to use for keys and to get the internal block size. algorithm)Base constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | calculateMAC()
Implements org. |
| public void | calculateMAC(byte[]
output array to write the MAC to. output, int offset into the output array to write the MAC to. outOff)Implements org. |
| public int | getInternalBlockSize()
Implements org. |
| public int | getMacLength()
Implements org. |
| public void | |
| public void | setKey(byte[]
array holding the MAC key. key, int offset into the array the key starts at. keyOff, int length of the key in the array. keyLen)Implements org. |
| public void | update(byte[]
input array containing the data. input, int offset into the input array the input starts at. inOff, int the length of the input data. length)Implements org. |
| algorithm | back to summary |
|---|---|
| private final String algorithm | |
| hmac | back to summary |
|---|---|
| private final Mac hmac | |
| internalBlockSize | back to summary |
|---|---|
| private final int internalBlockSize | |
| JceTlsHMAC | back to summary |
|---|---|
| public JceTlsHMAC(int cryptoHashAlgorithm, Mac hmac, String algorithm) Base constructor. | |
| calculateMAC | back to summary |
|---|---|
| public byte[] calculateMAC() Implements org. Doc from org. Return calculated MAC for any input passed in.
| |
| calculateMAC | back to summary |
|---|---|
| public void calculateMAC(byte[] output, int outOff) Implements org. Doc from org. Write the calculated MAC to an output buffer.
| |
| getInternalBlockSize | back to summary |
|---|---|
| public int getInternalBlockSize() Implements org. Doc from org. Return the internal block size for the message digest underlying this HMAC service.
| |
| getMacLength | back to summary |
|---|---|
| public int getMacLength() Implements org. Doc from org. Return the length of the MAC generated by this service.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the MAC underlying this service. | |
| setKey | back to summary |
|---|---|
| public void setKey(byte[] key, int keyOff, int keyLen) Implements org. Doc from org. Set the key to be used by the MAC implementation supporting this service.
| |
| update | back to summary |
|---|---|
| public void update(byte[] input, int inOff, int length) Implements org. Doc from org. Update the MAC with the passed in input.
| |