From ac14739c9cc82ed23db8cd545e6568115a690e8a Mon Sep 17 00:00:00 2001 From: quasar Date: Tue, 27 Oct 2026 19:17:09 +0000 Subject: [PATCH 1/4] fix: typo errors in comments and texts (Ecliptica issue #209) - easyssl submodule --- CMakeLists.txt | 4 ++-- CONTRIBUTING.md | 2 +- README.md | 10 +++++----- src/lib/CMakeLists.txt | 8 ++++---- src/lib/src/private/easysslutils.cpp | 2 +- src/lib/src/private/easysslutils.h | 8 ++++---- src/lib/src/public/easyssl.h | 2 +- src/lib/src/public/easyssl/asynckeysauth.h | 20 ++++++++++---------- src/lib/src/public/easyssl/ecdsassl.cpp | 14 +++++++------- src/lib/src/public/easyssl/ecdsassl.h | 20 ++++++++++---------- src/lib/src/public/easyssl/icertificate.h | 14 +++++++------- src/lib/src/public/easyssl/icrypto.cpp | 2 +- src/lib/src/public/easyssl/icrypto.h | 4 ++-- src/lib/src/public/easyssl/rsassl.cpp | 6 +++--- src/lib/src/public/easyssl/rsassl.h | 2 +- src/lib/src/public/easyssl/x509.cpp | 4 ++-- src/lib/src/public/easyssl/x509.h | 2 +- submodules/CMake | 2 +- tests/CMakeLists.txt | 6 +++--- tests/tstMain.cpp | 2 +- tests/units/authtest.cpp | 10 +++++----- tests/units/crttest.h | 6 +++--- tests/units/cryptotest.h | 14 +++++++------- 23 files changed, 82 insertions(+), 82 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 495acda..02dae80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,10 +36,10 @@ set(EASYSSL_VERSION "0.${GIT_COMMIT_COUNT}.${GIT_COMMIT_HASH}") set(EASYSSL_PACKAGE_ID "quasarapp.core.easyssl") option(EASYSSL_TESTS "This option disables or enables tests of the ${PROJECT_NAME} project" ON) -option(EASYSSL_STATIC_SSL "This option enable or disabled static link ssl libraryes" OFF) +option(EASYSSL_STATIC_SSL "This option enable or disabled static link ssl libraries" OFF) if (ANDROID OR IOS OR NOT QT_VERSION_MAJOR OR QA_WASM32) - set(EASYSSL_TESTS OFF CACHE BOOL "This option force disbled for ANDROID IOS QA_WASM32 and Not Qt projects" FORCE) + set(EASYSSL_TESTS OFF CACHE BOOL "This option force disabled for ANDROID IOS QA_WASM32 and Not Qt projects" FORCE) endif() make_directory(Distro) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6ac84d2..ccb89ca 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,7 +61,7 @@ public: // ICertificate interface public: - SelfSignedSertificate create(const SslSrtData& certificateData) const override; + SelfSignedCertificate create(const SslSrtData& certificateData) const override; }; ``` diff --git a/README.md b/README.md index b346a4b..c5b5a3f 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,9 @@ This library contains interfaces for the signing and encryption data. ```cmake target_link_libraries(yourLib PUBLIC easyssl) ``` - * rebuild yuor project + * rebuild your project -### Independet of SSL build +### Independent of SSL build Dependency on the ssl library greatly complicates the deployment of the final product. For fix this issue, you can build EasySSL library with static SSL library. In this case, SSL library code will be saved in your EasySell binary, and deploy of your application will be easily. The ssl code will not available for your application or other libraries, so you will not get conflicts between different major versions ssl libraries if your distribution kit has it. Just set the **EASYSSL_STATIC_SSL** option to true. @@ -49,14 +49,14 @@ The described case may be useful for the Qt 5.15.x, because the QNetwork 5.15 de ```cpp #include "easyssl/rsassl.h" -// create a publick and private keys array. +// create a public and private keys array. int main() { QByteArray pub, priv; EasySSL::RSASSL crypto; crypto.makeKeys(pub, priv) - auto siganture = crypto.signMessage(message, priv); - crypto.checkSign(message, siganture, pub); + auto signature = crypto.signMessage(message, priv); + crypto.checkSign(message, signature, pub); auto encryptedMsg = crypto.encrypt(message, pub); auto decryptedMsg = crypto.decrypt(encryptedMsg, priv); diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 1bd3136..238eeb1 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -27,8 +27,8 @@ if (${QT_VERSION_MAJOR}) endif() -set(PUBLIC_INCUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/public") -set(PRIVATE_INCUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/private") +set(PUBLIC_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/public") +set(PRIVATE_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/private") add_library(${CURRENT_PROJECT} ${SOURCE_CPP} ${SOURCE_QRC}) @@ -58,8 +58,8 @@ endif() message("Use the OpenSSL libraries: ${OPENSSL_LIBRARIES}") -target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCUDE_DIR}) -target_include_directories(${CURRENT_PROJECT} PRIVATE ${PRIVATE_INCUDE_DIR}) +target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCLUDE_DIR}) +target_include_directories(${CURRENT_PROJECT} PRIVATE ${PRIVATE_INCLUDE_DIR}) set(LANGS ${CMAKE_CURRENT_SOURCE_DIR}/languages/en.ts) diff --git a/src/lib/src/private/easysslutils.cpp b/src/lib/src/private/easysslutils.cpp index 39f101f..fa5f124 100644 --- a/src/lib/src/private/easysslutils.cpp +++ b/src/lib/src/private/easysslutils.cpp @@ -56,7 +56,7 @@ BIO* EasySSLUtils::byteArrayToBio(const QByteArray& byteArray) { return bio; } -QByteArray EasySSLUtils::extractPublcKey(EVP_PKEY *ssl_keys) { +QByteArray EasySSLUtils::extractPublicKey(EVP_PKEY *ssl_keys) { if (!ssl_keys) return {}; diff --git a/src/lib/src/private/easysslutils.h b/src/lib/src/private/easysslutils.h index 6bd0f92..5c8724b 100644 --- a/src/lib/src/private/easysslutils.h +++ b/src/lib/src/private/easysslutils.h @@ -39,8 +39,8 @@ class EasySSLUtils { static BIGNUM* bignumFromArray(const QByteArray& array); /** - * @brief bioToByteArray This method converts the openssl BIO to the QByteArry - * @param bio input arrary. + * @brief bioToByteArray This method converts the openssl BIO to the QByteArray + * @param bio input array. * @return Qt Array */ static QByteArray bioToByteArray(BIO *bio); @@ -55,11 +55,11 @@ class EasySSLUtils { static BIO *byteArrayToBio(const QByteArray &byteArray); /** - * @brief extractPublcKey This method extracts the public key from the ssl (pem) structure. + * @brief extractPublicKey This method extracts the public key from the ssl (pem) structure. * @param ssl_keys These are objects of the ssl keys. * @return bytes array of the extracted key. */ - static QByteArray extractPublcKey(EVP_PKEY* ssl_keys); + static QByteArray extractPublicKey(EVP_PKEY* ssl_keys); /** * @brief extractPrivateKey This method extracts the private key from the ssl (pem) structure. diff --git a/src/lib/src/public/easyssl.h b/src/lib/src/public/easyssl.h index 66f5b2b..353b3af 100644 --- a/src/lib/src/public/easyssl.h +++ b/src/lib/src/public/easyssl.h @@ -13,7 +13,7 @@ namespace EasySSL { /** * @brief init main initialize method of The easyssl library - * @return true if library initialized successfull + * @return true if library initialized successful */ bool EASYSSL_EXPORT init(); diff --git a/src/lib/src/public/easyssl/asynckeysauth.h b/src/lib/src/public/easyssl/asynckeysauth.h index 0d647e0..7399fbc 100644 --- a/src/lib/src/public/easyssl/asynckeysauth.h +++ b/src/lib/src/public/easyssl/asynckeysauth.h @@ -17,11 +17,11 @@ namespace EasySSL { /** - * @brief The AsyncKeysAuth class is temaplate class for works with authorization of a pair of asynchronous keys + * @brief The AsyncKeysAuth class is template class for works with authorization of a pair of asynchronous keys * This class contains base implementation for the authentication using async encryption. The base encryption algorithm defined on the template argument **CryptoImplementation**. * You can use any crypto algorithm. * - * ## Exampel of use: + * ## Example of use: * * @code{cpp} * #include @@ -45,7 +45,7 @@ namespace EasySSL { * SIG = PRIV.signMessage(S) * * Client prepare a auth request for server = R: * R = {U,SIG,PUB} - * * Cleint send R to server + * * Client send R to server * * * ----- * @@ -53,14 +53,14 @@ namespace EasySSL { * * * Server receive R from client. * * Server compare U time with current unix time. - * * If the diferrence more then allowed value then server reject an auth + * * If the difference more then allowed value then server reject an auth * * Server make S value as a client - * * Server check SIG value and comapre it with S value + * * Server check SIG value and compare it with S value * * If message sign is valid then server accept an auth else reject. * * After accept server create new user with ID = sha256(PUB) or - * if user alredy exits make them as a logined user. + * if user already exits make them as a logined user. * - * @tparam CryptoImplementation This is internal implementaion of base encryption functions. + * @tparam CryptoImplementation This is internal implementation of base encryption functions. * @see iCrypto class. * */ @@ -109,7 +109,7 @@ class AsyncKeysAuth: public CryptoImplementation } /** - * @brief prepare This method will generate signature for autentication of client. Please inboke this method before send request to server. + * @brief prepare This method will generate signature for authentication of client. Please inboke this method before send request to server. * @return true if signature generated sucessuful. */ bool prepare() { @@ -135,7 +135,7 @@ class AsyncKeysAuth: public CryptoImplementation /** * @brief setUnixTime This method sets new value of the unixTime propertye. - * @param newUnixTime This is new unix time value. Unix time sets in secunds from 1970 year + * @param newUnixTime This is new unix time value. Unix time sets in seconds from 1970 year */ void setUnixTime(unsigned int newUnixTime) { _unixTime = newUnixTime; @@ -151,7 +151,7 @@ class AsyncKeysAuth: public CryptoImplementation } /** - * @brief isValid this method check this ibject to valid. + * @brief isValid this method check this object to valid. * @return return true if object contains valid signature else false. * @note Invoke the AsyncKeysAuth::prepare method before check valid of object. All object that not be preparred is invalid. */ diff --git a/src/lib/src/public/easyssl/ecdsassl.cpp b/src/lib/src/public/easyssl/ecdsassl.cpp index e337cd9..f92993e 100644 --- a/src/lib/src/public/easyssl/ecdsassl.cpp +++ b/src/lib/src/public/easyssl/ecdsassl.cpp @@ -26,8 +26,8 @@ namespace EasySSL { -ECDSASSL::ECDSASSL(EllipticCurveStandart curveStandart) { - setCurve(curveStandart); +ECDSASSL::ECDSASSL(EllipticCurveStandard curveStandard) { + setCurve(curveStandard); } void * ECDSASSL::makeRawKeys() const { @@ -132,11 +132,11 @@ bool ECDSASSL::checkSign(const QByteArray &inputData, } auto pkey = EasySSLUtils::byteArrayToBio(key); - auto rsaPublickKey = PEM_read_bio_PUBKEY(pkey, nullptr, nullptr, nullptr); + auto rsaPublicKey = PEM_read_bio_PUBKEY(pkey, nullptr, nullptr, nullptr); BIO_free(pkey); // Initialize the verification operation - if (EVP_DigestVerifyInit(mdctx, NULL, EVP_sha256(), NULL, rsaPublickKey) != 1) { + if (EVP_DigestVerifyInit(mdctx, NULL, EVP_sha256(), NULL, rsaPublicKey) != 1) { EasySSLUtils::printlastOpenSSlError(); EVP_MD_CTX_free(mdctx); @@ -173,15 +173,15 @@ QByteArray ECDSASSL::encrypt(const QByteArray &, const QByteArray &) { return {}; } -ECDSASSL::EllipticCurveStandart ECDSASSL::curve() const { +ECDSASSL::EllipticCurveStandard ECDSASSL::curve() const { return _curve; } -void ECDSASSL::setCurve(EllipticCurveStandart newCurve) { +void ECDSASSL::setCurve(EllipticCurveStandard newCurve) { _curve = newCurve; } -const char *ECDSASSL::getCStr(EllipticCurveStandart value) const { +const char *ECDSASSL::getCStr(EllipticCurveStandard value) const { switch (value) { case P_256: return "P-256"; case P_384: return "P-384"; diff --git a/src/lib/src/public/easyssl/ecdsassl.h b/src/lib/src/public/easyssl/ecdsassl.h index ba6f6aa..afccf83 100644 --- a/src/lib/src/public/easyssl/ecdsassl.h +++ b/src/lib/src/public/easyssl/ecdsassl.h @@ -20,9 +20,9 @@ namespace EasySSL { class EASYSSL_EXPORT ECDSASSL: public EasySSL::ICrypto { /** - * @brief The EllipticCurveStandart enum List of supported Elliptic Curve Standarts + * @brief The EllipticCurveStandard enum List of supported Elliptic Curve Standards */ - enum EllipticCurveStandart { + enum EllipticCurveStandard { /// Private key (point on Elliptic Curve ) based on 256 bit prime number P_256, /// Private key (point on Elliptic Curve ) based on 384 bit prime number @@ -36,7 +36,7 @@ class EASYSSL_EXPORT ECDSASSL: public EasySSL::ICrypto }; public: - ECDSASSL(EllipticCurveStandart curveStandart = EllipticCurveStandart::P_256); + ECDSASSL(EllipticCurveStandard curveStandard = EllipticCurveStandard::P_256); Features supportedFeatures() const override; QSsl::KeyAlgorithm keyAlgorithm() const override; @@ -58,21 +58,21 @@ class EASYSSL_EXPORT ECDSASSL: public EasySSL::ICrypto /** * @brief curve This method returns the current curve method. Using only for generating new pair of keys. * @return current cursve type. - * @see EllipticCurveStandart + * @see EllipticCurveStandard */ - EllipticCurveStandart curve() const; + EllipticCurveStandard curve() const; /** - * @brief setCurve This method sets new curve standart value. - * @param newCurve this is new value of curve standart. + * @brief setCurve This method sets new curve standard value. + * @param newCurve this is new value of curve standard. */ - void setCurve(EllipticCurveStandart newCurve); + void setCurve(EllipticCurveStandard newCurve); void * makeRawKeys() const override; private: - const char *getCStr(EllipticCurveStandart value) const; - EllipticCurveStandart _curve = EllipticCurveStandart::P_256; + const char *getCStr(EllipticCurveStandard value) const; + EllipticCurveStandard _curve = EllipticCurveStandard::P_256; }; } diff --git a/src/lib/src/public/easyssl/icertificate.h b/src/lib/src/public/easyssl/icertificate.h index 698f18c..cea2987 100644 --- a/src/lib/src/public/easyssl/icertificate.h +++ b/src/lib/src/public/easyssl/icertificate.h @@ -17,10 +17,10 @@ namespace EasySSL { /** - * @brief The SslSrtData struct This structure contains base information to generate self-signed SSL certification. + * @brief The SslCrtData struct This structure contains base information to generate self-signed SSL certification. * Use this interface for creating a new certificates algorithms. */ -struct SslSrtData { +struct SslCrtData { QString country = "BY"; QString organization = "QuasarApp"; QString commonName = ""; @@ -28,11 +28,11 @@ struct SslSrtData { }; /** - * @brief The SelfSignedSertificate struct contains qt certificate object and private key of them. + * @brief The SelfSignedCertificate struct contains qt certificate object and private key of them. */ -struct EASYSSL_EXPORT SelfSignedSertificate { - SelfSignedSertificate(){} - SelfSignedSertificate(const SelfSignedSertificate & other) { +struct EASYSSL_EXPORT SelfSignedCertificate { + SelfSignedCertificate(){} + SelfSignedCertificate(const SelfSignedCertificate & other) { crt = other.crt; key = other.key; }; @@ -55,7 +55,7 @@ class EASYSSL_EXPORT ICertificate * @param certificateData This input extra data of certificate. * @return certificate data with private key. */ - virtual SelfSignedSertificate create(const SslSrtData& certificateData) const = 0; + virtual SelfSignedCertificate create(const SslCrtData& certificateData) const = 0; protected: /** diff --git a/src/lib/src/public/easyssl/icrypto.cpp b/src/lib/src/public/easyssl/icrypto.cpp index 8cd463f..7ed073d 100644 --- a/src/lib/src/public/easyssl/icrypto.cpp +++ b/src/lib/src/public/easyssl/icrypto.cpp @@ -19,7 +19,7 @@ bool EasySSL::ICrypto::makeKeys(QByteArray &pubKey, QByteArray &privKey) const if (!keys) return false; - pubKey = EasySSLUtils::extractPublcKey(keys); + pubKey = EasySSLUtils::extractPublicKey(keys); privKey = EasySSLUtils::extractPrivateKey(keys); return true; } diff --git a/src/lib/src/public/easyssl/icrypto.h b/src/lib/src/public/easyssl/icrypto.h index 04157dc..57e6e44 100644 --- a/src/lib/src/public/easyssl/icrypto.h +++ b/src/lib/src/public/easyssl/icrypto.h @@ -42,13 +42,13 @@ class EASYSSL_EXPORT ICrypto bool makeKeys(QByteArray &pubKey, QByteArray &privKey) const; /** - * @brief keyAlgorithm This method should be return Qt Key algorithm (needed for generate cetrificates.) + * @brief keyAlgorithm This method should be return Qt Key algorithm (needed for generate certificates.) * @return */ virtual QSsl::KeyAlgorithm keyAlgorithm() const = 0; /** - * @brief supportedFeatures This method should return supported featurs of the current encryption algorithm + * @brief supportedFeatures This method should return supported features of the current encryption algorithm * @return Features list. * @see Features */ diff --git a/src/lib/src/public/easyssl/rsassl.cpp b/src/lib/src/public/easyssl/rsassl.cpp index 3504524..2590299 100644 --- a/src/lib/src/public/easyssl/rsassl.cpp +++ b/src/lib/src/public/easyssl/rsassl.cpp @@ -103,11 +103,11 @@ bool RSASSL::checkSign(const QByteArray &inputData, const QByteArray &signature, } auto pkey = EasySSLUtils::byteArrayToBio(key); - auto rsaPublickKey = PEM_read_bio_PUBKEY(pkey, nullptr, nullptr, nullptr); + auto rsaPublicKey = PEM_read_bio_PUBKEY(pkey, nullptr, nullptr, nullptr); BIO_free(pkey); // Initialize the verification operation - if (EVP_DigestVerifyInit(mdctx, NULL, EVP_sha256(), NULL, rsaPublickKey) != 1) { + if (EVP_DigestVerifyInit(mdctx, NULL, EVP_sha256(), NULL, rsaPublicKey) != 1) { EasySSLUtils::printlastOpenSSlError(); EVP_MD_CTX_free(mdctx); return false; @@ -148,7 +148,7 @@ QByteArray RSASSL::decrypt(const QByteArray &message, const QByteArray &key) { const long long maxDencryptedSize = EVP_PKEY_size(rsaPrivateKey); if (message.length() % maxDencryptedSize) { qCritical() << "Error wrong encrypted data size."; - qCritical() << "Your key requir size multiple " << maxDencryptedSize; + qCritical() << "Your key require size multiple " << maxDencryptedSize; return {}; } diff --git a/src/lib/src/public/easyssl/rsassl.h b/src/lib/src/public/easyssl/rsassl.h index 8a7d8c4..4beab42 100644 --- a/src/lib/src/public/easyssl/rsassl.h +++ b/src/lib/src/public/easyssl/rsassl.h @@ -79,7 +79,7 @@ class EASYSSL_EXPORT RSASSL: public EasySSL::ICrypto void setPadding(RSAPadding newPadding); /** - * @brief bits return cuurrent rsa keys size mode. Using oly for generate keys. + * @brief bits return current rsa keys size mode. Using only for generating keys. * @return size of the rsa keys. */ RSABits bits() const; diff --git a/src/lib/src/public/easyssl/x509.cpp b/src/lib/src/public/easyssl/x509.cpp index 02af2ed..30f787c 100644 --- a/src/lib/src/public/easyssl/x509.cpp +++ b/src/lib/src/public/easyssl/x509.cpp @@ -16,8 +16,8 @@ X509::X509(const QSharedPointer& generator): ICertificate(generator) { } -SelfSignedSertificate X509::create(const SslSrtData &certificateData) const { - SelfSignedSertificate result; +SelfSignedCertificate X509::create(const SslCrtData &certificateData) const { + SelfSignedCertificate result; if (!(keyGenerator()->supportedFeatures() & ICrypto::Features::Signing)) { return {}; } diff --git a/src/lib/src/public/easyssl/x509.h b/src/lib/src/public/easyssl/x509.h index f6f7bdc..1071f40 100644 --- a/src/lib/src/public/easyssl/x509.h +++ b/src/lib/src/public/easyssl/x509.h @@ -24,7 +24,7 @@ class EASYSSL_EXPORT X509: public ICertificate // ICertificate interface public: - SelfSignedSertificate create(const SslSrtData& certificateData) const override; + SelfSignedCertificate create(const SslCrtData& certificateData) const override; }; } diff --git a/submodules/CMake b/submodules/CMake index 8114b9b..3b70cf3 160000 --- a/submodules/CMake +++ b/submodules/CMake @@ -1 +1 @@ -Subproject commit 8114b9b678baed739652a398bab1485a35dbfdcd +Subproject commit 3b70cf31b9bddc051669d8238aa5f16ac16c260f diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1806630..c2513a7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,14 +15,14 @@ file(GLOB_RECURSE SOURCE_CPP "*.cpp" "*.h" "*.qrc" ) -set(PUBLIC_INCUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") -set(PUBLIC_INCUDE_DIR ${PUBLIC_INCUDE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/units") +set(PUBLIC_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") +set(PUBLIC_INCLUDE_DIR ${PUBLIC_INCLUDE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/units") add_executable(${CURRENT_PROJECT} ${SOURCE_CPP}) target_link_libraries(${CURRENT_PROJECT} PRIVATE Qt${QT_VERSION_MAJOR}::Test ${PROJECT_NAME}) -target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCUDE_DIR}) +target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCLUDE_DIR}) initTests() diff --git a/tests/tstMain.cpp b/tests/tstMain.cpp index 3fd3717..bf4ee80 100644 --- a/tests/tstMain.cpp +++ b/tests/tstMain.cpp @@ -60,7 +60,7 @@ private slots: /** * @brief tstMain::tstMain - * init all availabel units for testsing + * init all available units for testing */ tstMain::tstMain() { diff --git a/tests/units/authtest.cpp b/tests/units/authtest.cpp index 32d3d31..aa5fa0b 100644 --- a/tests/units/authtest.cpp +++ b/tests/units/authtest.cpp @@ -37,7 +37,7 @@ AuthTest::AuthTest() {} AuthTest::~AuthTest() {} void AuthTest::test() { - // create a publick and private keys array. + // create a public and private keys array. QByteArray pub, priv; QString userID; @@ -54,13 +54,13 @@ void AuthTest::test() { QCryptographicHash::Sha256). toBase64(QByteArray::Base64UrlEncoding); - // check createed keys. should be larget then 0. + // check created keys. should be larger than 0. QVERIFY(pub.length() && priv.length()); // The terst object should be invalid because it is not prepared. QVERIFY(!edsa.isValid()); - // the authetication should be failed bacause ecdsa class is invalid. + // the authentication should be failed because ecdsa class is invalid. QVERIFY(!edsa.auth(600, &userID)); QVERIFY(userID.isEmpty()); @@ -76,11 +76,11 @@ void AuthTest::test() { // forget user id before new auth userID.clear(); - // authentication should be failed because the time range is depricated. + // authentication should be failed because the time range is deprecated. QVERIFY(!edsa.auth(0, &userID)); QVERIFY(userID.isEmpty()); - // change subsribe time and try login. + // change subscribe time and try login. edsa.setUnixTime(time(0) + 1); std::this_thread::sleep_for(std::chrono::seconds(1)); diff --git a/tests/units/crttest.h b/tests/units/crttest.h index c059b2f..34d9621 100644 --- a/tests/units/crttest.h +++ b/tests/units/crttest.h @@ -17,8 +17,8 @@ /** - * @brief The CrtTest class is bse test class for the testin all certificate generators - * @tparam CrtGenerator This any class inheret of ICertificate interface. + * @brief The CrtTest class is bse test class for the testing all certificate generators + * @tparam CrtGenerator This any class inherit of ICertificate interface. * * @example * @code{cpp} @@ -36,7 +36,7 @@ class CrtTest: public Test, protected TestUtils void test() override { CrtGenerator gen(QSharedPointer::create()); - EasySSL::SslSrtData data; + EasySSL::SslCrtData data; auto crt = gen.create(data); QVERIFY2(!crt.crt.isNull(), "Failed to generate certificate."); diff --git a/tests/units/cryptotest.h b/tests/units/cryptotest.h index 2628006..2ff6b68 100644 --- a/tests/units/cryptotest.h +++ b/tests/units/cryptotest.h @@ -20,7 +20,7 @@ class CryptoTest: public Test, protected TestUtils public: void test() override { - // test short messges + // test short messages testImpl("Test"); //test long messages @@ -36,18 +36,18 @@ class CryptoTest: public Test, protected TestUtils void testImpl(const QByteArray& message) const { - // create a publick and private keys array. + // create a public and private keys array. QByteArray pub, priv; TestClass crypto; QVERIFY2(crypto.makeKeys(pub, priv), "Failed to generate keys pair."); - QVERIFY2(pub.size(), "Publick key should be generated successfull"); - QVERIFY2(priv.size(), "Private key should be generated successfull"); + QVERIFY2(pub.size(), "Public key should be generated successful"); + QVERIFY2(priv.size(), "Private key should be generated successful"); if (crypto.supportedFeatures() & EasySSL::ICrypto::Features::Signing) { - auto siganture = crypto.signMessage(message, priv); - QVERIFY2(siganture.size(), "Siganture of the message should not be empty"); - QVERIFY2(crypto.checkSign(message, siganture, pub), "failed to check message"); + auto signature = crypto.signMessage(message, priv); + QVERIFY2(signature.size(), "Signature of the message should not be empty"); + QVERIFY2(crypto.checkSign(message, signature, pub), "failed to check message"); } if (crypto.supportedFeatures() & EasySSL::ICrypto::Features::Encryption) { From 1c94712f35b6a2748cb51fb31e5e024412b06d60 Mon Sep 17 00:00:00 2001 From: quasar Date: Tue, 27 Oct 2026 23:00:48 +0000 Subject: [PATCH 2/4] fix: bump CMake submodule to task_209_cmake_8114b9b (Ecliptica issue #209) --- submodules/CMake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/CMake b/submodules/CMake index 3b70cf3..42bd517 160000 --- a/submodules/CMake +++ b/submodules/CMake @@ -1 +1 @@ -Subproject commit 3b70cf31b9bddc051669d8238aa5f16ac16c260f +Subproject commit 42bd517531795dcdf499c4cb219dd0830c1364a9 From 568c7d2b632497030cda96f863082c916984ce65 Mon Sep 17 00:00:00 2001 From: quasar Date: Wed, 28 Oct 2026 18:04:29 +0000 Subject: [PATCH 3/4] fix: typo errors in new main content (thirdparty, libraryes) (Ecliptica issue #209) --- docs/USAGE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/USAGE.md b/docs/USAGE.md index c66ece8..6edde52 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -64,7 +64,7 @@ EasySSL is a Qt wrapper of the OpenSSL 3.0+ library. It simplifies the working w DEFINES += EASYSSL_LIBRARY - # Link the OpenSSL 3.0+ libraryes: + # Link the OpenSSL 3.0+ libraries: LIBS += -lcrypto -lssl ``` From 9e5bbe5315ab39e2034016b421921c87825bfc2d Mon Sep 17 00:00:00 2001 From: quasar Date: Wed, 28 Oct 2026 18:04:50 +0000 Subject: [PATCH 4/4] fix: typo thirdparty -> third-party in BUILD_WITH_OPENSSL option (Ecliptica issue #209) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6154fcf..2aeff70 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,7 @@ set(EASYSSL_PACKAGE_ID "quasarapp.core.easyssl") option(EASYSSL_TESTS "This option disables or enables tests of the ${PROJECT_NAME} project" ON) option(EASYSSL_STATIC_SSL "This option enable or disabled static link ssl libraries" OFF) -option(BUILD_WITH_OPENSSL "This option enable or disabled build thirdparty libraries with ${PROJECT_NAME} library (for example openssl)" ON) +option(BUILD_WITH_OPENSSL "This option enable or disabled build third-party libraries with ${PROJECT_NAME} library (for example openssl)" ON) if (BUILD_WITH_OPENSSL) if (QA_WASM32)