public interface Digest
Digests| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest()
Completes the hash computation.
|
byte[] |
digest(byte... input)
Performs a final update on the digest using the specified array of
bytes, then completes the digest computation.
|
byte[] |
digest(byte[] input,
int off,
int len)
Performs a final update on the digest using the specified data bytes,
then completes the digest computation.
|
int |
length()
Returns the digest's length (in bytes).
|
Digest |
reset()
Resets the engine.
|
Digest |
update(byte... input)
Updates the digest using the specified array of bytes.
|
Digest |
update(byte input)
Updates the digest using the given byte.
|
Digest |
update(byte[] input,
int off,
int len)
Updates the digest using the specified number of bytes from the given
array of bytes, starting at the specified offset.
|
int length()
Digest reset()
Digest update(byte input)
input - the byte with which to update the digest.Digest update(byte... input)
input - the array of bytes with which to update the digest.NullPointerException - if input is null.Digest update(byte[] input, int off, int len)
input - the array of bytes.off - the offset to start from in the array of bytes, inclusive.len - the number of bytes to use, starting at off.NullPointerException - if input is null.IndexOutOfBoundsException - if off is negative or if
off + len is greater than input's length.byte[] digest()
byte[] digest(byte... input)
update(byte...), passing the input array to the
update method, then calls digest(). Note that the engine is
reset after this call is made.input - the array of bytes with which to update the digest
before completing its computation.NullPointerException - if input is null.byte[] digest(byte[] input,
int off,
int len)
update(byte[], int, int), passing the input array to
the update method, then calls digest(). Note that the engine
is reset after this call is made.input - the array of bytes.off - the offset to start from in the array of bytes, inclusive.len - the number of bytes to use, starting at off.NullPointerException - if input is null.IndexOutOfBoundsException - if off is negative or if
off + len is greater than input's length.Copyright © 2012–2015. All rights reserved.