#include <QtCrypto>
Inheritance diagram for QCA::BufferedComputation:
Public Member Functions | |
virtual void | clear ()=0 |
virtual void | update (const MemoryRegion &a)=0 |
virtual MemoryRegion | final ()=0 |
MemoryRegion | process (const MemoryRegion &a) |
A buffered computation is characterised by having the algorithm take data in an incremental way, then having the results delivered at the end. Conceptually, the algorithm has some internal state that is modified when you call update() and returned when you call final().
|
Reset the internal state.
Implemented in QCA::Hash, and QCA::MessageAuthenticationCode. |
|
Update the internal state with a byte array.
Implemented in QCA::Hash, and QCA::MessageAuthenticationCode. |
|
Complete the algorithm and return the internal state.
Implemented in QCA::Hash, and QCA::MessageAuthenticationCode. |
|
Perform an "all in one" update, returning the result. This is appropriate if you have all the data in one array - just call process on that array, and you will get back the results of the computation.
|