private static final class MacHashFunction.MacHasher extends AbstractByteHasher
Mac
(message authentication code).Modifier and Type | Field and Description |
---|---|
private boolean |
done |
private javax.crypto.Mac |
mac |
Modifier | Constructor and Description |
---|---|
private |
MacHasher(javax.crypto.Mac mac) |
Modifier and Type | Method and Description |
---|---|
private void |
checkNotDone() |
HashCode |
hash()
Computes a hash code based on the data that have been provided to this hasher.
|
protected void |
update(byte b)
Updates this hasher with the given byte.
|
protected void |
update(byte[] b)
Updates this hasher with the given bytes.
|
protected void |
update(byte[] b,
int off,
int len)
Updates this hasher with
len bytes starting at off in the given buffer. |
putByte, putBytes, putBytes, putChar, putInt, putLong, putObject, putShort
putBoolean, putDouble, putFloat, putString, putUnencodedChars
protected void update(byte b)
AbstractByteHasher
update
in class AbstractByteHasher
protected void update(byte[] b)
AbstractByteHasher
update
in class AbstractByteHasher
protected void update(byte[] b, int off, int len)
AbstractByteHasher
len
bytes starting at off
in the given buffer.update
in class AbstractByteHasher
private void checkNotDone()