Buffered Computation
This class represents any kind of computation which uses an internal state, such as hash functions or MACs
Add new input to process.
ubyte[] input | the input to process as a ubyte array |
Add new input to process.
const(ubyte)* input | the input to process as a ubyte array |
size_t length | of param in in bytes |
Add new input to process.
RefCounted!(Vector!(T, ALLOC)) input | the input to process as a reference type |
Add new input to process.
Vector!(T, ALLOC) input | the input to process as a Vector |
Add an integer in big-endian order
T input | the value |
Add new input to process.
string str | The input to process as a string. |
Process a single ubyte.
ubyte input | the ubyte to process |
Complete the computation and retrieve the final result.
ubyte[] output | The ubyte array to be filled with the result. |
Complete the computation and retrieve the final result.
ubyte* output | The ubyte array to be filled with the result. |
Complete the computation and retrieve the final result.
Update and finalize computation. Does the same as calling update() and finished() consecutively.
ubyte[] input | the input to process as a ubyte array |
Update and finalize computation. Does the same as calling update() and finished() consecutively.
const(ubyte)* input | the input to process as a ubyte array |
size_t length | the length of the ubyte array |
Update and finalize computation. Does the same as calling update() and finished() consecutively.
RefCounted!(Vector!(ubyte, ALLOC), ALLOC) input | the input to process |
Update and finalize computation. Does the same as calling update() and finished() consecutively.
Vector!(ubyte, ALLOC) input | the input to process |
Update and finalize computation. Does the same as calling update() and finished() consecutively.
string input | the input to process as a string |
Add more data to the computation
const(ubyte)* input | is an input buffer |
size_t length | is the length of input in bytes |
Write the final output to out
ubyte* output | An output buffer of size outputLength() |