Correct a typo and improve formatting

Verified exhaustiveness with:

```bash
grep -riE ' $|eeasy'
```
This commit is contained in:
Benjamin Loison 2023-11-03 20:21:09 +01:00
parent 1f0dd02cb5
commit b47b137868
No known key found for this signature in database
4 changed files with 40 additions and 42 deletions

View File

@ -1,15 +1,15 @@
# Contributing in to EeasySSL
# Contributing in to EasySSL
This is a wrap library for the Qt developers. So if you think that is a good library, and you use it in your projects - you can add new improvements and create a pull request with new features.
## What can you do for this Library ?
1. You can add a support of new encryption algorithms
1. You can add a support of new encryption algorithms.
2. You can implement new certificate generator.
## Adding new implementation of crypto algorithms
All Algorithms must be pass simple test. Encrypt, decrypt short and long data arrays. This simple test already implemented, and you just need to add it into main test file.
All algorithms must pass simple test. Encrypt, decrypt short and long data arrays. This simple test is already implemented, and you just need to add it into the main test file.
### Example
@ -43,8 +43,7 @@ Full implementation of the RSA you can see [here](https://github.com/QuasarApp/e
2. Add your class to the tests Using The Template class [CryptoTest](https://github.com/QuasarApp/easyssl/blob/main/tests/units/cryptotest.h). See The [tstMain.cpp](https://github.com/QuasarApp/easyssl/blob/main/tests/tstMain.cpp) file
```cpp
TestCase(cryptoTestRSA, CryptoTest<EasySSL::RSASSL>)
TestCase(cryptoTestRSA, CryptoTest<EasySSL::RSASSL>)
```
## Adding new implementation of Certificate generator.
@ -52,18 +51,18 @@ Full implementation of the RSA you can see [here](https://github.com/QuasarApp/e
1. Create implementation of the iCrypto interface. And override the create method.
```cpp
/**
/**
* @brief The X509 class This is wrapper of the ssl objects.
*/
class EASYSSL_EXPORT X509: public EasySSL::ICertificate
{
public:
class EASYSSL_EXPORT X509: public EasySSL::ICertificate
{
public:
X509(const QSharedPointer<ICrypto>& generator);
// ICertificate interface
public:
public:
SelfSignedSertificate create(const SslSrtData& certificateData) const override;
};
};
```
Full implementation of x509 certificate format you can see [here](https://github.com/QuasarApp/easyssl/blob/main/src/lib/src/public/easyssl/x509.h).
@ -71,17 +70,16 @@ Full implementation of x509 certificate format you can see [here](https://github
2. Add your class to the tests Using The Template class [CrtTest](https://github.com/QuasarApp/easyssl/blob/main/tests/units/crttest.h). See The [tstMain.cpp](https://github.com/QuasarApp/easyssl/blob/main/tests/tstMain.cpp) file
```cpp
#include "crttest.h"
using CrtTestX509ECDSA = CrtTest<EasySSL::X509, EasySSL::ECDSASSL>;
TestCase(crtTestX509ECDSA, CrtTestX509ECDSA)
#include "crttest.h"
using CrtTestX509ECDSA = CrtTest<EasySSL::X509, EasySSL::ECDSASSL>;
TestCase(crtTestX509ECDSA, CrtTestX509ECDSA)
```
## Extra rools
1. All shared tools or useful functions located on the [EasySSLUtils](https://github.com/QuasarApp/easyssl/blob/main/src/lib/src/private/easysslutils.h) class.
2. All implementation must contains goxygen xml comments (documentation)
2. All implementation must contain doxygen xml comments (documentation)
3. All implementation must be inner EasySSL name space.
# Thank you