easyssl 0.50.142aaef
EasySSL is base back end library for your c++ Qt projects.
|
The RSASSL class This is wrapper for RSA algorithm of openssl 3.0 libraryry. More...
#include <rsassl.h>
Public Member Functions | |
RSASSL (RSAPadding padding=PKCS1_OAEP_PADDING) | |
void * | makeRawKeys () const override |
makeKeys This method generate the public and private keys of the ECDSA. | |
Features | supportedFeatures () const override |
supportedFeatures This method should return supported featurs of the current encryption algorithm | |
QSsl::KeyAlgorithm | keyAlgorithm () const override |
keyAlgorithm This method should be return Qt Key algorithm (needed for generate cetrificates.) | |
QByteArray | signMessage (const QByteArray &inputData, const QByteArray &key) const override |
signMessage This method should be sign the message using the key. | |
bool | checkSign (const QByteArray &inputData, const QByteArray &signature, const QByteArray &key) const override |
checkSign This method should be check signature of the message using the key. | |
QByteArray | decrypt (const QByteArray &message, const QByteArray &key) override |
decrypt This method has empty implementation. | |
QByteArray | encrypt (const QByteArray &message, const QByteArray &key) override |
encrypt This method has empty implementation. | |
RSAPadding | padding () const |
padding This is mode of pending data before icnription. | |
void | setPadding (RSAPadding newPadding) |
setPadding This method sets new mode for encryption pendong. | |
RSABits | bits () const |
bits return cuurrent rsa keys size mode. Using oly for generate keys. | |
void | setBits (RSABits newBits) |
setBits sets new value of the rsa key generator. | |
Public Member Functions inherited from EasySSL::ICrypto | |
bool | makeKeys (QByteArray &pubKey, QByteArray &privKey) const |
makeKeys This method generate the public and private keys of the ECDSA. | |
Additional Inherited Members | |
Public Types inherited from EasySSL::ICrypto | |
enum | Features { Signing = 0x01 , Encryption = 0x02 } |
The Features enum this is list of the supported description features. More... | |
The RSASSL class This is wrapper for RSA algorithm of openssl 3.0 libraryry.
EasySSL::RSASSL::RSASSL | ( | RSAPadding | padding = PKCS1_OAEP_PADDING | ) |
RSASSL::RSABits EasySSL::RSASSL::bits | ( | ) | const |
bits return cuurrent rsa keys size mode. Using oly for generate keys.
Definition at line 295 of file rsassl.cpp.
|
overridevirtual |
checkSign This method should be check signature of the message using the key.
message | This is input data that should be decrypted. |
signature | This is signature that will be checked for the message. |
key | This is a public key for encryption the inpputData. |
Implements EasySSL::ICrypto.
Definition at line 99 of file rsassl.cpp.
|
overridevirtual |
decrypt This method has empty implementation.
Implements EasySSL::ICrypto.
Definition at line 136 of file rsassl.cpp.
|
overridevirtual |
encrypt This method has empty implementation.
Implements EasySSL::ICrypto.
Definition at line 205 of file rsassl.cpp.
|
overridevirtual |
keyAlgorithm This method should be return Qt Key algorithm (needed for generate cetrificates.)
Implements EasySSL::ICrypto.
Definition at line 44 of file rsassl.cpp.
|
overridevirtual |
makeKeys This method generate the public and private keys of the ECDSA.
Implements EasySSL::ICrypto.
Definition at line 24 of file rsassl.cpp.
RSASSL::RSAPadding EasySSL::RSASSL::padding | ( | ) | const |
padding This is mode of pending data before icnription.
Definition at line 266 of file rsassl.cpp.
void EasySSL::RSASSL::setBits | ( | RSABits | newBits | ) |
setBits sets new value of the rsa key generator.
newBits | this is new value of the key size of rsa. |
Definition at line 299 of file rsassl.cpp.
void EasySSL::RSASSL::setPadding | ( | RSAPadding | newPadding | ) |
setPadding This method sets new mode for encryption pendong.
newPadding | This is new new mode. |
Definition at line 270 of file rsassl.cpp.
|
overridevirtual |
signMessage This method should be sign the message using the key.
message | This is input data that should be signed. |
key | This is a privete key for encryption the message. |
Implements EasySSL::ICrypto.
Definition at line 48 of file rsassl.cpp.
|
overridevirtual |
supportedFeatures This method should return supported featurs of the current encryption algorithm
Implements EasySSL::ICrypto.
Definition at line 40 of file rsassl.cpp.