| Modifier and Type | Method and Description |
|---|---|
String |
algorithm()
Returns the algorithm name.
|
void |
burn()
Erases the key and resets the digest, thus making this instance
functionally equivalent to a newly created unkeyed digest.
|
Blake2 |
copy()
Returns a copy of this object.
|
byte[] |
digest()
Completes the digest computation.
|
default byte[] |
digest(byte... input)
Performs a final update on the digest using the specified array of
bytes, then completes the digest computation.
|
default 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).
|
Blake2 |
reset()
Resets the digest.
|
Blake2 |
update(byte... input)
Updates the digest using the given array of bytes.
|
Blake2 |
update(byte input)
Updates the digest using the given byte.
|
Blake2 |
update(byte[] input,
int off,
int len)
Updates the digest using the specified number of bytes from the given
array, starting at the specified offset.
|
String algorithm()
void burn()
Blake2 copy()
int length()
Blake2 reset()
Blake2 update(byte input)
input - the byte with which to update the digest.Blake2 update(byte... input)
input - the array of bytes with which to update the digest.NullPointerException - if input is null.Blake2 update(byte[] input, int off, int len)
input - the array of bytes.off - the offset to start from in the array, inclusive.len - the number of bytes to use, starting at off.NullPointerException - if input is null.IllegalArgumentException - if off < 0 || len < 0.IndexOutOfBoundsException - if off + len > input.length.default byte[] digest(byte... input)
update(byte...), passing the input array to the
update method, then calls digest(). Note that the digest 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.default 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 digest
is reset after this call is made.input - the array of bytes.off - the offset to start from in the array, inclusive.len - the number of bytes to use, starting at off.NullPointerException - if input is null.IllegalArgumentException - if off < 0 || len < 0.IndexOutOfBoundsException - if off + len > input.length.byte[] digest()
Copyright © 2017–2018. All rights reserved.