Sailfish Crypto
API DocumentationCalculateDigestRequest Class
(Sailfish::Crypto::CalculateDigestRequest)Allows a client request the system crypto service to calculate a digest from data More...
Header: | #include <Crypto/calculatedigestrequest.h> |
Instantiated By: | CalculateDigestRequest |
Inherits: | Sailfish::Crypto::Request |
Properties
|
|
- 4 properties inherited from Sailfish::Crypto::Request
Public Functions
CalculateDigestRequest(QObject *parent = Q_NULLPTR) | |
~CalculateDigestRequest() | |
QString | cryptoPluginName() const |
QByteArray | data() const |
QByteArray | digest() const |
Sailfish::Crypto::CryptoManager::DigestFunction | digestFunction() const |
Sailfish::Crypto::CryptoManager::SignaturePadding | padding() const |
void | setCryptoPluginName(const QString &pluginName) |
void | setData(const QByteArray &data) |
void | setDigestFunction(Sailfish::Crypto::CryptoManager::DigestFunction digestFunction) |
void | setPadding(Sailfish::Crypto::CryptoManager::SignaturePadding padding) |
Reimplemented Public Functions
virtual QVariantMap | customParameters() const |
virtual Sailfish::Crypto::CryptoManager * | manager() const |
virtual Sailfish::Crypto::Result | result() const |
virtual void | setCustomParameters(const QVariantMap ¶ms) |
virtual void | setManager(Sailfish::Crypto::CryptoManager *manager) |
virtual void | startRequest() |
virtual Sailfish::Crypto::Request::Status | status() const |
virtual void | waitForFinished() |
- 8 public functions inherited from Sailfish::Crypto::Request
Signals
void | cryptoPluginNameChanged() |
void | dataChanged() |
void | digestChanged() |
void | digestFunctionChanged() |
void | paddingChanged() |
- 4 signals inherited from Sailfish::Crypto::Request
Detailed Description
Allows a client request the system crypto service to calculate a digest from data
A digest is calculated using a digest function. Unlike a signature (see SignRequest) no key is required to calculate a digest. A digest can be used to verify that data has not been changed, however it cannot be used to verify the provenance of the data (that is, it can be used to ensure integrity but not authenticity or non-repudiation).
Property Documentation
cryptoPluginName : QString
Access functions:
QString | cryptoPluginName() const |
void | setCryptoPluginName(const QString &pluginName) |
Notifier signal:
void | cryptoPluginNameChanged() |
data : QByteArray
Access functions:
Notifier signal:
void | dataChanged() |
digest : const QByteArray
Access functions:
QByteArray | digest() const |
Notifier signal:
void | digestChanged() |
digestFunction : Sailfish::Crypto::CryptoManager::DigestFunction
Access functions:
Sailfish::Crypto::CryptoManager::DigestFunction | digestFunction() const |
void | setDigestFunction(Sailfish::Crypto::CryptoManager::DigestFunction digestFunction) |
Notifier signal:
void | digestFunctionChanged() |
padding : Sailfish::Crypto::CryptoManager::SignaturePadding
Access functions:
Sailfish::Crypto::CryptoManager::SignaturePadding | padding() const |
void | setPadding(Sailfish::Crypto::CryptoManager::SignaturePadding padding) |
Notifier signal:
void | paddingChanged() |
Member Function Documentation
CalculateDigestRequest::CalculateDigestRequest(QObject *parent = Q_NULLPTR)
Constructs a new CalculateDigestRequest object with the given parent.
CalculateDigestRequest::~CalculateDigestRequest()
Destroys the CalculateDigestRequest
QString CalculateDigestRequest::cryptoPluginName() const
Returns the name of the crypto plugin which the client wishes to perform the digest calculation operation
Note: Getter function for property cryptoPluginName.
See also setCryptoPluginName().
[virtual]
QVariantMap CalculateDigestRequest::customParameters() const
See also setCustomParameters().
QByteArray CalculateDigestRequest::data() const
Returns the data which the client wishes the system service to calculate the digest from
Note: Getter function for property data.
See also setData().
QByteArray CalculateDigestRequest::digest() const
Returns the digest result of the calculate digest operation.
Note: this value is only valid if the status of the request is Request::Finished.
Note: Getter function for property digest.
Sailfish::Crypto::CryptoManager::DigestFunction CalculateDigestRequest::digestFunction() const
Returns the digest function which should be used to generate the digest
Note: Getter function for property digestFunction.
See also setDigestFunction().
[virtual]
Sailfish::Crypto::CryptoManager *CalculateDigestRequest::manager() const
See also setManager().
Sailfish::Crypto::CryptoManager::SignaturePadding CalculateDigestRequest::padding() const
Returns the signature padding mode which should be used when calculating the digest of the data
Note: Getter function for property padding.
See also setPadding().
[virtual]
Sailfish::Crypto::Result CalculateDigestRequest::result() const
void CalculateDigestRequest::setCryptoPluginName(const QString &pluginName)
Sets the name of the crypto plugin which the client wishes to perform the digest calculation operation to pluginName
Note: Setter function for property cryptoPluginName.
See also cryptoPluginName().
[virtual]
void CalculateDigestRequest::setCustomParameters(const QVariantMap ¶ms)
See also customParameters().
void CalculateDigestRequest::setData(const QByteArray &data)
Sets the data which the client wishes the system service to calculate the digest from to data
Note: Setter function for property data.
See also data().
void CalculateDigestRequest::setDigestFunction(Sailfish::Crypto::CryptoManager::DigestFunction digestFunction)
Sets the digest function which should be used to generate the digest to digestFunction
Note: Setter function for property digestFunction.
See also digestFunction().
[virtual]
void CalculateDigestRequest::setManager(Sailfish::Crypto::CryptoManager *manager)
See also manager().
void CalculateDigestRequest::setPadding(Sailfish::Crypto::CryptoManager::SignaturePadding padding)
Sets the signature padding mode which should be used when calculating the digest of the data to padding
Note: Setter function for property padding.
See also padding().