easyssl 0.50.142aaef
EasySSL is base back end library for your c++ Qt projects.
EasySSL::ECDSASSL Class Reference

The ECDSASSL class is ecdsa implementation of the Async authentication. This implementation based on Openssl library. More...

#include <ecdsassl.h>

Public Member Functions

 ECDSASSL (EllipticCurveStandart curveStandart=EllipticCurveStandart::P_256)
 
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.
 
EllipticCurveStandart curve () const
 curve This method returns the current curve method. Using only for generating new pair of keys.
 
void setCurve (EllipticCurveStandart newCurve)
 setCurve This method sets new curve standart value.
 
void * makeRawKeys () const override
 makeKeys This method generate the public and private keys of the ECDSA.
 
- 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...
 

Detailed Description

The ECDSASSL class is ecdsa implementation of the Async authentication. This implementation based on Openssl library.

Definition at line 20 of file ecdsassl.h.

Inheritance diagram for EasySSL::ECDSASSL:
Inheritance graph
Collaboration diagram for EasySSL::ECDSASSL:
Collaboration graph

Constructor & Destructor Documentation

◆ ECDSASSL()

EasySSL::ECDSASSL::ECDSASSL ( EllipticCurveStandart  curveStandart = EllipticCurveStandart::P_256)

Definition at line 29 of file ecdsassl.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ checkSign()

bool EasySSL::ECDSASSL::checkSign ( const QByteArray &  message,
const QByteArray &  signature,
const QByteArray &  key 
) const
overridevirtual

checkSign This method should be check signature of the message using the key.

Parameters
messageThis is input data that should be decrypted.
signatureThis is signature that will be checked for the message.
keyThis is a public key for encryption the inpputData.
Returns
decrypted data array.
See also
AsyncKeysAuth::encrypt

Implements EasySSL::ICrypto.

Definition at line 124 of file ecdsassl.cpp.

Here is the call graph for this function:

◆ curve()

ECDSASSL::EllipticCurveStandart EasySSL::ECDSASSL::curve ( ) const

curve This method returns the current curve method. Using only for generating new pair of keys.

Returns
current cursve type.
See also
EllipticCurveStandart

Definition at line 176 of file ecdsassl.cpp.

◆ decrypt()

QByteArray EasySSL::ECDSASSL::decrypt ( const QByteArray &  message,
const QByteArray &  key 
)
overridevirtual

decrypt This method has empty implementation.

Returns
empty array.

Implements EasySSL::ICrypto.

Definition at line 168 of file ecdsassl.cpp.

◆ encrypt()

QByteArray EasySSL::ECDSASSL::encrypt ( const QByteArray &  message,
const QByteArray &  key 
)
overridevirtual

encrypt This method has empty implementation.

Returns
empty array.

Implements EasySSL::ICrypto.

Definition at line 172 of file ecdsassl.cpp.

◆ keyAlgorithm()

QSsl::KeyAlgorithm EasySSL::ECDSASSL::keyAlgorithm ( ) const
overridevirtual

keyAlgorithm This method should be return Qt Key algorithm (needed for generate cetrificates.)

Returns

Implements EasySSL::ICrypto.

Definition at line 64 of file ecdsassl.cpp.

◆ makeRawKeys()

void * EasySSL::ECDSASSL::makeRawKeys ( ) const
overridevirtual

makeKeys This method generate the public and private keys of the ECDSA.

Returns
pointer to generated keys. This method must return EVP_PKEY* structure.

Implements EasySSL::ICrypto.

Definition at line 33 of file ecdsassl.cpp.

Here is the call graph for this function:

◆ setCurve()

void EasySSL::ECDSASSL::setCurve ( EllipticCurveStandart  newCurve)

setCurve This method sets new curve standart value.

Parameters
newCurvethis is new value of curve standart.

Definition at line 180 of file ecdsassl.cpp.

Here is the caller graph for this function:

◆ signMessage()

QByteArray EasySSL::ECDSASSL::signMessage ( const QByteArray &  message,
const QByteArray &  key 
) const
overridevirtual

signMessage This method should be sign the message using the key.

Parameters
messageThis is input data that should be signed.
keyThis is a privete key for encryption the message.
Returns
signature data array.
See also
AsyncKeysAuth::descrupt

Implements EasySSL::ICrypto.

Definition at line 68 of file ecdsassl.cpp.

Here is the call graph for this function:

◆ supportedFeatures()

ICrypto::Features EasySSL::ECDSASSL::supportedFeatures ( ) const
overridevirtual

supportedFeatures This method should return supported featurs of the current encryption algorithm

Returns
Features list.
See also
Features

Implements EasySSL::ICrypto.

Definition at line 60 of file ecdsassl.cpp.


The documentation for this class was generated from the following files: