42 bool makeKeys(QByteArray &pubKey, QByteArray &privKey)
const;
64 virtual QByteArray
decrypt(
const QByteArray& message,
const QByteArray& key) = 0;
73 virtual QByteArray
encrypt(
const QByteArray& message,
const QByteArray& key) = 0;
82 virtual QByteArray
signMessage(
const QByteArray& message,
const QByteArray& key)
const = 0;
93 const QByteArray& signature,
94 const QByteArray& key)
const = 0;
The ICrypto class, This is base interface that provide encryption functionality.
virtual QSsl::KeyAlgorithm keyAlgorithm() const =0
keyAlgorithm This method should be return Qt Key algorithm (needed for generate cetrificates....
virtual void * makeRawKeys() const =0
makeKeys This method generate the public and private keys of the ECDSA.
Features
The Features enum this is list of the supported description features.
virtual QByteArray signMessage(const QByteArray &message, const QByteArray &key) const =0
signMessage This method should be sign the message using the key.
virtual QByteArray encrypt(const QByteArray &message, const QByteArray &key)=0
encrypt This method encrypt message using key.
virtual QByteArray decrypt(const QByteArray &message, const QByteArray &key)=0
decrypt This method decrypt message using key.
virtual bool checkSign(const QByteArray &message, const QByteArray &signature, const QByteArray &key) const =0
checkSign This method should be check signature of the message using the key.
virtual Features supportedFeatures() const =0
supportedFeatures This method should return supported featurs of the current encryption algorithm