Interface GordianConsumer
- All Known Subinterfaces:
GordianDigest,GordianMac,GordianSignature,GordianXof
public interface GordianConsumer
GordianKnot interface for Consumers such as Message Digests, Macs and Signatures.
-
Method Summary
Modifier and TypeMethodDescriptionvoidreset()Reset the Consumer.voidupdate(byte pByte) Update the consumer with a single byte.default voidupdate(byte[] pBytes) Update the consumer with a byte array.voidupdate(byte[] pBytes, int pOffset, int pLength) Update the consumer with a portion of a byte array.
-
Method Details
-
update
void update(byte[] pBytes, int pOffset, int pLength) Update the consumer with a portion of a byte array.- Parameters:
pBytes- the bytes to update with.pOffset- the offset of the data within the byte arraypLength- the length of the data to use
-
update
void update(byte pByte) Update the consumer with a single byte.- Parameters:
pByte- the byte to update with.
-
update
default void update(byte[] pBytes) Update the consumer with a byte array.- Parameters:
pBytes- the bytes to update with.
-
reset
void reset()Reset the Consumer.
-