diff --git a/CMakeLists.txt b/CMakeLists.txt index d2de45e..d346465 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # # Copyright (C) 2020-2023 QuasarApp. -# Distributed under the lgplv3 software license, see the accompanying +# Distributed under the GPLv3 software license, see the accompanying # Everyone is permitted to copy and distribute verbatim copies # of this license document, but changing it is not allowed. # diff --git a/README.md b/README.md index 9658e59..02563c7 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,76 @@ -# CMakeProject -Template repository for cmake project -Fork me and replase easyssl to Name of your new project. +# EasySSL +This is simple wrapper library that make using ssl simple. +This library contains interfaces for the signing and encription data. -1. Clone this repository -2. Run ./init.sh NewProjectName +### Supported encription alhorithms: +* edsa based on sll 1.1 + +### Supported features +* encription +* signing +* keys creating +* asyn auth bse on the asyn encriptions methods + + +## Build and Include + + * cd yourRepo + * git submodule add https://github.com/QuasarApp/easyssl.git # add the repository of Heart into your repo like submodule + * git submodule update --init --recursive + * Include in your CMakeLists.txt file the main CMakeLists.txt file of Heart library + + ```cmake + add_subdirectory(easyssl) + ``` + + * link the Heart library to your target + ```cmake + target_link_libraries(yourLib PUBLIC easyssl) + ``` + * rebuild yuor project + + + +## Usage + +Authentication + +```cpp +#include + +class ECDSA: public EasySSL::AuthECDSA { + +public: + + // AsyncKeysAuth interface + void setPrivateKey(const QByteArray &newPriv) { + _priv = newPriv; + } + + QByteArray getPrivateKey() const { + return _priv; + }; + +private: + QByteArray _priv; + +}; + +ECDSA edsa; +QByteArray pub, priv; +QString userID; + +// make public and private keys. +edsa.makeKeys(pub, priv); +edsa.setPrivateKey(priv); +edsa.setPublicKey(pub); + +// prepare an authentication object. +edsa.prepare(); +edsa.setPrivateKey({}); + +edsa.auth(1000, &userID) + +``` -# This template supports next build targets: -| Command or make target | Description | -|------|------| -| **make test** | The run tests for a project (dependet of Qt Tests, so you need to add Qt in Cmake using CMAKE_PREFIX_PATH) | -| **make doc** | The generate a documentation for a project (dependet of doxygen) | -| **make deploy** | The generate distribution for a project (dependet of CQtDeployer) | -| **make release** | The prepare Qt Installer framework repository for a project, generate a snap package and APK file for android (dependet of CQtDeployer, snapcraft, AndroidDeployer). | diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 0a7b4c4..917ac25 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -1,6 +1,6 @@ # # Copyright (C) 2020-2023 QuasarApp. -# Distributed under the lgplv3 software license, see the accompanying +# Distributed under the GPLv3 software license, see the accompanying # Everyone is permitted to copy and distribute verbatim copies # of this license document, but changing it is not allowed. # diff --git a/src/lib/src/public/easyssl.cpp b/src/lib/src/public/easyssl.cpp index dbcd930..edf8116 100644 --- a/src/lib/src/public/easyssl.cpp +++ b/src/lib/src/public/easyssl.cpp @@ -1,6 +1,6 @@ //# //# Copyright (C) 2021-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/src/lib/src/public/easyssl.h b/src/lib/src/public/easyssl.h index 3d377d0..5f34a1b 100644 --- a/src/lib/src/public/easyssl.h +++ b/src/lib/src/public/easyssl.h @@ -1,6 +1,6 @@ //# //# Copyright (C) 2021-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/src/lib/src/public/easyssl/asynckeysauth.h b/src/lib/src/public/easyssl/asynckeysauth.h index 4f4b04e..0a022fe 100644 --- a/src/lib/src/public/easyssl/asynckeysauth.h +++ b/src/lib/src/public/easyssl/asynckeysauth.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2021-2023 QuasarApp. - * Distributed under the lgplv3 software license, see the accompanying + * Distributed under the GPLv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. */ diff --git a/src/lib/src/public/easyssl/authecdsa.h b/src/lib/src/public/easyssl/authecdsa.h index 0ff5ad5..43093ed 100644 --- a/src/lib/src/public/easyssl/authecdsa.h +++ b/src/lib/src/public/easyssl/authecdsa.h @@ -1,6 +1,6 @@ //# //# Copyright (C) 2021-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/src/lib/src/public/easyssl/ecdsassl11.cpp b/src/lib/src/public/easyssl/ecdsassl11.cpp index 78cbfc3..99948dd 100644 --- a/src/lib/src/public/easyssl/ecdsassl11.cpp +++ b/src/lib/src/public/easyssl/ecdsassl11.cpp @@ -1,6 +1,6 @@ //# //# Copyright (C) 2021-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/src/lib/src/public/easyssl/ecdsassl11.h b/src/lib/src/public/easyssl/ecdsassl11.h index 790214f..8002e21 100644 --- a/src/lib/src/public/easyssl/ecdsassl11.h +++ b/src/lib/src/public/easyssl/ecdsassl11.h @@ -1,6 +1,6 @@ //# //# Copyright (C) 2021-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/src/lib/src/public/easyssl/global.h.in b/src/lib/src/public/easyssl/global.h.in index 9f255b0..c39c237 100644 --- a/src/lib/src/public/easyssl/global.h.in +++ b/src/lib/src/public/easyssl/global.h.in @@ -1,6 +1,6 @@ //# //# Copyright (C) 2018-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/src/lib/src/public/easyssl/icrypto.h b/src/lib/src/public/easyssl/icrypto.h index 38a1e21..4a5938b 100644 --- a/src/lib/src/public/easyssl/icrypto.h +++ b/src/lib/src/public/easyssl/icrypto.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2021-2023 QuasarApp. - * Distributed under the lgplv3 software license, see the accompanying + * Distributed under the GPLv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. */ diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 71c7dc9..8afd4c4 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,6 @@ # # Copyright (C) 2020-2023 QuasarApp. -# Distributed under the lgplv3 software license, see the accompanying +# Distributed under the GPLv3 software license, see the accompanying # Everyone is permitted to copy and distribute verbatim copies # of this license document, but changing it is not allowed. # diff --git a/tests/tstMain.cpp b/tests/tstMain.cpp index 7bbed36..fff8538 100644 --- a/tests/tstMain.cpp +++ b/tests/tstMain.cpp @@ -1,6 +1,6 @@ //# //# Copyright (C) 2020-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/tests/units/authtest.cpp b/tests/units/authtest.cpp index 151e16b..122a503 100644 --- a/tests/units/authtest.cpp +++ b/tests/units/authtest.cpp @@ -1,6 +1,6 @@ //# //# Copyright (C) 2020-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/tests/units/authtest.h b/tests/units/authtest.h index 1c265c5..4a3c6ad 100644 --- a/tests/units/authtest.h +++ b/tests/units/authtest.h @@ -1,6 +1,6 @@ //# //# Copyright (C) 2020-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/tests/units/cryptotest.h b/tests/units/cryptotest.h index b4a75a1..2f811c1 100644 --- a/tests/units/cryptotest.h +++ b/tests/units/cryptotest.h @@ -1,6 +1,6 @@ //# //# Copyright (C) 2020-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/tests/units/test.cpp b/tests/units/test.cpp index 133db97..ea1c3c3 100644 --- a/tests/units/test.cpp +++ b/tests/units/test.cpp @@ -1,6 +1,6 @@ //# //# Copyright (C) 2020-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/tests/units/test.h b/tests/units/test.h index 6eff662..0289d7a 100644 --- a/tests/units/test.h +++ b/tests/units/test.h @@ -1,6 +1,6 @@ //# //# Copyright (C) 2020-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/tests/units/testutils.cpp b/tests/units/testutils.cpp index 65cf1c7..844fdc0 100644 --- a/tests/units/testutils.cpp +++ b/tests/units/testutils.cpp @@ -1,6 +1,6 @@ //# //# Copyright (C) 2020-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //# diff --git a/tests/units/testutils.h b/tests/units/testutils.h index 517a736..0b1a1fd 100644 --- a/tests/units/testutils.h +++ b/tests/units/testutils.h @@ -1,6 +1,6 @@ //# //# Copyright (C) 2020-2023 QuasarApp. -//# Distributed under the lgplv3 software license, see the accompanying +//# Distributed under the GPLv3 software license, see the accompanying //# Everyone is permitted to copy and distribute verbatim copies //# of this license document, but changing it is not allowed. //#