#include <QtCrypto>
Public Member Functions | |
Algorithm (const Algorithm &from) | |
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 () |
This is a fairly abstract class, mainly used for implementing the backend "provider" interface.
QCA::Algorithm::Algorithm | ( | const Algorithm & | from | ) |
QCA::Algorithm::Algorithm | ( | ) | [protected] |
Constructor for empty algorithm.
Constructor of a particular algorithm.
type | the algorithm to construct | |
provider | the name of a particular Provider |
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.
type | the name of the algorithm to use | |
provider | the name of the preferred provider |
void QCA::Algorithm::change | ( | Provider::Context * | c | ) |
const Provider::Context* QCA::Algorithm::context | ( | ) | const |
For internal use only.
The context associated with this algorithm
Provider::Context* QCA::Algorithm::context | ( | ) |
For internal use only.
The context associated with this algorithm
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
Provider::Context* QCA::Algorithm::takeContext | ( | ) |
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.