qca
QCA::Algorithm Class Reference
[QCA user API]
General superclass for an algorithm. More...
#include <QtCrypto>

Public Member Functions | |
| Algorithm (const Algorithm &from) | |
| virtual | ~Algorithm () |
| void | change (const QString &type, const QString &provider) |
| void | change (Provider::Context *c) |
| const Provider::Context * | context () const |
| Provider::Context * | context () |
| Algorithm & | operator= (const Algorithm &from) |
| Provider * | provider () const |
| Provider::Context * | takeContext () |
| QString | type () const |
Protected Member Functions | |
| Algorithm (const QString &type, const QString &provider) | |
| Algorithm () | |
Detailed Description
General superclass for an algorithm.
This is a fairly abstract class, mainly used for implementing the backend "provider" interface.
Definition at line 1067 of file qca_core.h.
Constructor & Destructor Documentation
| QCA::Algorithm::Algorithm | ( | const Algorithm & | from | ) |
Standard copy constructor.
- Parameters:
-
from the Algorithm to copy from
Definition at line 1234 of file qca_core.cpp.
| QCA::Algorithm::~Algorithm | ( | ) | [virtual] |
Definition at line 1239 of file qca_core.cpp.
| QCA::Algorithm::Algorithm | ( | ) | [protected] |
Constructor for empty algorithm.
Definition at line 1225 of file qca_core.cpp.
Constructor of a particular algorithm.
- Parameters:
-
type the algorithm to construct provider the name of a particular Provider
Definition at line 1229 of file qca_core.cpp.
Member Function Documentation
For internal use only.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Parameters:
-
type the name of the algorithm to use provider the name of the preferred provider
Definition at line 1289 of file qca_core.cpp.
| void QCA::Algorithm::change | ( | Provider::Context * | c | ) |
For internal use only.
Set the Provider for this algorithm
- Parameters:
-
c the context for the Provider to use
Definition at line 1281 of file qca_core.cpp.
| const Provider::Context * QCA::Algorithm::context | ( | ) | const |
For internal use only.
The context associated with this algorithm
Definition at line 1273 of file qca_core.cpp.
| Provider::Context * QCA::Algorithm::context | ( | ) |
For internal use only.
The context associated with this algorithm
Definition at line 1265 of file qca_core.cpp.
Assignment operator.
- Parameters:
-
from the Algorithm to copy state from
Reimplemented in QCA::Random, QCA::Hash, QCA::Cipher, QCA::MessageAuthenticationCode, QCA::KeyDerivationFunction, QCA::Certificate, QCA::CertificateRequest, QCA::CRL, QCA::CertificateAuthority, QCA::PGPKey, QCA::KeyStoreEntry, QCA::PKey, QCA::PublicKey, QCA::PrivateKey, and QCA::TLSSession.
Definition at line 1243 of file qca_core.cpp.
| Provider * QCA::Algorithm::provider | ( | ) | const |
The name of the provider.
Each algorithm is implemented by a provider. This allows you to figure out which provider is associated
Definition at line 1257 of file qca_core.cpp.
| Provider::Context * QCA::Algorithm::takeContext | ( | ) |
For internal use only.
Take the Provider from this algorithm
Definition at line 1297 of file qca_core.cpp.
| QString QCA::Algorithm::type | ( | ) | const |
The name of the algorithm type.
Reimplemented in QCA::Hash, QCA::Cipher, QCA::MessageAuthenticationCode, QCA::KeyStoreEntry, QCA::KeyStore, QCA::PKey, and QCA::SecureMessage.
Definition at line 1249 of file qca_core.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference