Qt Cryptographic Architecture
|
#include <QtCrypto>
Public Member Functions | |
Algorithm (const Algorithm &from) | |
void | change (const QString &type, const QString &provider) |
void | change (Provider::Context *c) |
Provider::Context * | context () |
const Provider::Context * | context () const |
Algorithm & | operator= (const Algorithm &from) |
Provider * | provider () const |
Provider::Context * | takeContext () |
QString | type () const |
Protected Member Functions | |
Algorithm () | |
Algorithm (const QString &type, const QString &provider) | |
General superclass for an algorithm.
This is a fairly abstract class, mainly used for implementing the backend "provider" interface.
QCA::Algorithm::Algorithm | ( | const Algorithm & | from | ) |
Standard copy constructor.
from | the Algorithm to copy from |
|
protected |
Constructor for empty algorithm.
|
protected |
Constructor of a particular algorithm.
type | the algorithm to construct |
provider | the name of a particular Provider |
Assignment operator.
from | the Algorithm to copy state from |
QString QCA::Algorithm::type | ( | ) | const |
The name of the algorithm type.
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::context | ( | ) |
The context associated with this algorithm
const Provider::Context* QCA::Algorithm::context | ( | ) | const |
The context associated with this algorithm
void QCA::Algorithm::change | ( | Provider::Context * | c | ) |
void QCA::Algorithm::change | ( | const QString & | type, |
const QString & | provider | ||
) |
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 |
Provider::Context* QCA::Algorithm::takeContext | ( | ) |
Take the Provider from this algorithm