| Modifier and Type | Method and Description |
|---|---|
int |
getSize()
Returns the length in bytes, which are needed to store this digest.
|
void |
update(ByteBuffer data,
int off,
int len)
This method updates the used digest with the values of the given
ByteBuffer object. |
void |
validate()
This method validates the calculated checksum with the expected checksum.
|
void update(ByteBuffer data, int off, int len)
ByteBuffer object.data - The values used for updating the checksum.off - Start offset.len - Length of the used values. (Must be a multiple of 4 bytes)void validate()
throws DigestException
DigestException - Dismatch between the calculated and expected checksum.int getSize()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.