QCA::BufferedComputation

Search for usage in LXR

QCA::BufferedComputation Class Referenceabstract

#include <QtCrypto>

Inheritance diagram for QCA::BufferedComputation:

Public Member Functions

virtual void clear ()=0
 
virtual MemoryRegion final ()=0
 
MemoryRegion process (const MemoryRegion &a)
 
virtual void update (const MemoryRegion &a)=0
 

Detailed Description

General superclass for buffered computation algorithms.

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().

Definition at line 1051 of file qca_core.h.

Member Function Documentation

◆ clear()

virtual void QCA::BufferedComputation::clear ( )
pure virtual

Reset the internal state.

Implemented in QCA::Hash, and QCA::MessageAuthenticationCode.

◆ final()

virtual MemoryRegion QCA::BufferedComputation::final ( )
pure virtual

Complete the algorithm and return the internal state.

Implemented in QCA::Hash, and QCA::MessageAuthenticationCode.

◆ process()

MemoryRegion QCA::BufferedComputation::process ( const MemoryRegion & a)

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.

Note
This will invalidate any previous computation using this object.
Parameters
athe data to process.
Examples
aes-cmac.cpp.

◆ update()

virtual void QCA::BufferedComputation::update ( const MemoryRegion & a)
pure virtual

Update the internal state with a byte array.

Parameters
athe byte array of data that is to be used to update the internal state.

Implemented in QCA::Hash, and QCA::MessageAuthenticationCode.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:46:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.