• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

qca

QCA::BufferedComputation

QCA::BufferedComputation Class Reference
[QCA user API]

General superclass for buffered computation algorithms. More...

#include <QtCrypto>

Inheritance diagram for QCA::BufferedComputation:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~BufferedComputation ()
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 955 of file qca_core.h.


Constructor & Destructor Documentation

QCA::BufferedComputation::~BufferedComputation (  )  [virtual]

Definition at line 1165 of file qca_core.cpp.


Member Function Documentation

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

Reset the internal state.

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

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

Complete the algorithm and return the internal state.

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

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:
a the data to process.

Definition at line 1169 of file qca_core.cpp.

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

Update the internal state with a byte array.

Parameters:
a the 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 files:
  • qca_core.h
  • qca_core.cpp

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal