first version

This commit is contained in:
Andrei Yankovich 2023-03-26 21:25:15 +02:00
parent e69c43f1be
commit a6c3973233
20 changed files with 92 additions and 31 deletions

View File

@ -1,6 +1,6 @@
# #
# Copyright (C) 2020-2023 QuasarApp. # 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 # Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed. # of this license document, but changing it is not allowed.
# #

View File

@ -1,15 +1,76 @@
# CMakeProject # EasySSL
Template repository for cmake project This is simple wrapper library that make using ssl simple.
Fork me and replase easyssl to Name of your new project. This library contains interfaces for the signing and encription data.
1. Clone this repository ### Supported encription alhorithms:
2. Run ./init.sh NewProjectName * 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 <easyssl/authecdsa.h>
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). |

View File

@ -1,6 +1,6 @@
# #
# Copyright (C) 2020-2023 QuasarApp. # 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 # Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed. # of this license document, but changing it is not allowed.
# #

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2021-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2021-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2021-2023 QuasarApp. * 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 * Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed. * of this license document, but changing it is not allowed.
*/ */

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2021-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2021-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2021-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2018-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2021-2023 QuasarApp. * 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 * Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed. * of this license document, but changing it is not allowed.
*/ */

View File

@ -1,6 +1,6 @@
# #
# Copyright (C) 2020-2023 QuasarApp. # 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 # Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed. # of this license document, but changing it is not allowed.
# #

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2020-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2020-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2020-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2020-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2020-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2020-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2020-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#

View File

@ -1,6 +1,6 @@
//# //#
//# Copyright (C) 2020-2023 QuasarApp. //# 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 //# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#