public class SHAHashAccumulator extends HashAccumulator
HashAccumulator that is used to implement the HashFunctions
SHA256HashFunction and SHA512HashFunction.| Modifier and Type | Field and Description |
|---|---|
protected java.security.MessageDigest |
digest |
SEPARATOR| Constructor and Description |
|---|
SHAHashAccumulator(java.lang.String algorithm) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte[] bytes)
Appends bytes to the input x of this accumulator.
|
byte[] |
extractBytes()
Extracts f(x) from the accumulator, where x was input by
append() calls. |
append, append, append, append, appendAndSeparate, appendAndSeparate, appendPadded, appendSeperator, compareTo, escapeAndAppend, escapeAndAppend, escapeAndAppend, escapeAndSeparate, escapeAndSeparate, escapeAndSeparatepublic void append(byte[] bytes)
ByteAccumulatorappend in class ByteAccumulatorpublic byte[] extractBytes()
ByteAccumulatorappend() calls.extractBytes in class ByteAccumulator