You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,22 @@
1
1
# Contributing in to EeasySSL
2
+
2
3
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.
3
4
4
5
## What can you do for this Library ?
6
+
5
7
1. You can add a support of new encryption algorithms
6
8
2. You can implement new certificate generator.
7
9
8
10
## Adding new implementation of crypto algorithms
11
+
9
12
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.
10
13
11
14
### Example
15
+
12
16
Adding supporting RSA algorithm to this library.
13
17
14
18
1. Create implementation of the iCrypto interface.
19
+
15
20
```cpp
16
21
17
22
#include"icrypto.h"
@@ -32,21 +37,25 @@ Adding supporting RSA algorithm to this library.
32
37
33
38
}
34
39
```
35
-
Full implementation of the RSA you can see here.
40
+
41
+
Full implementation of the RSA you can see [here](https://github.com/QuasarApp/easyssl/blob/main/src/lib/src/public/easyssl/rsassl.h).
42
+
43
+
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
44
+
45
+
```cpp
36
46
37
-
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
## Adding new implementation of Certificate generator.
43
51
44
52
1. Create implementation of the iCrypto interface. And override the create method.
53
+
45
54
```cpp
46
55
/**
47
56
* @brief The X509 class This is wrapper of the ssl objects.
48
57
*/
49
-
class EASYSSL_EXPORT X509: public ICertificate
58
+
class EASYSSL_EXPORT X509: public EasySSL::ICertificate
50
59
{
51
60
public:
52
61
X509(const QSharedPointer<ICrypto>& generator);
@@ -57,9 +66,9 @@ Full implementation of the RSA you can see here.
57
66
};
58
67
```
59
68
60
-
Full implementation of x509 certificate format you can see here.
69
+
Full implementation of x509 certificate format you can see [here](https://github.com/QuasarApp/easyssl/blob/main/src/lib/src/public/easyssl/x509.h).
61
70
62
-
2. Add your class to the tests Using The Template class "[CrtTest]()". See The [tstMain.cpp](https://github.com/QuasarApp/easyssl/blob/main/tests/tstMain.cpp) file
71
+
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
63
72
64
73
```cpp
65
74
#include"crttest.h"
@@ -70,9 +79,10 @@ Full implementation of x509 certificate format you can see here.
70
79
```
71
80
72
81
## Extra rools
73
-
1. All shared tools or useful functions located on the EasySSLUtils class.
74
-
2. All implementation must contains goxygen xml comments (documentation)
75
82
83
+
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.
84
+
2. All implementation must contains goxygen xml comments (documentation)
85
+
3. All implementation must be inner EasySSL name space.
0 commit comments