QCA

examples.doco
1 /** \example aes-cmac.cpp
2 
3 This example shows how to implement a client side "provider".
4 
5 There are three important parts to this:
6  - the class derived from QCA::Provider (in this example called
7  "ClientSideProvider"), that generates the context class
8  - one or more context classes (in this example only one, implementing
9  AES-CMAC, called "AESCMACContext")
10  - a call to QCA::insertProvider, to add the QCA::Provider subclass
11  into QCA
12 
13 */
14 
15 
16 /** \example base64test.cpp
17 
18 The code below shows some simple operations on a QCA::Base64 object, converting
19 between QCA::SecureArray and QString.
20 
21 */
22 
23 
24 /** \example certtest.cpp
25 
26 This example shows how QCA::Certificate and QCA::CertificateCollection
27 can be used. Note that the argument, if you provide it, must be a
28 PEM encoded file collection.
29 
30 */
31 
32 
33 /** \example ciphertest.cpp
34 
35 The code below shows the normal way to use the QCA::Cipher class.
36 
37 */
38 
39 
40 /* \example cmssigner/main.cpp
41 
42 The code below shows how to use Cryptographic Message Syntax (CMS)
43 in a GUI application.
44 
45 \include certitem.h
46 \include certitem.cpp
47 \include certviewdlg.h
48 \include certviewdlg.cpp
49 \include keyselectdlg.h
50 \include keyselectdlg.cpp
51 \include prompter.h
52 \include prompter.cpp
53 
54 */
55 
56 
57 /** \example eventhandlerdemo.cpp
58 
59 The code below shows to implement a client side handler for
60 password / passphrase / PIN and token requests from QCA and any
61 associated providers.
62 
63 */
64 
65 
66 /** \example hashtest.cpp
67 
68 The code below shows how to use the QCA::Hash class
69 
70 */
71 
72 
73 /** \example hextest.cpp
74 
75 The code below shows some simple operations on a QCA::Hex object, converting
76 between QCA::SecureArray and QString.
77 
78 */
79 
80 
81 /** \example keyloader.cpp
82 
83 The code below shows how to load a private key from a PEM format file,
84 including handling any requirement for a passphrase. This is done using
85 the QCA::KeyLoader class.
86 
87 */
88 
89 
90 /** \example mactest.cpp
91 
92 The code below shows how to use the QCA::MessageAuthenticationCode class
93 
94 */
95 
96 
97 /** \example md5crypt.cpp
98 
99 The code below shows how to calculate an md5crypt based password. This
100 code is compatible with the glibc code.
101 
102 */
103 
104 
105 /** \example providertest.cpp
106 
107 The code below shows some simple operations on a QCA::Provider object, including
108 use of iterators and some member functions.
109 
110 */
111 
112 
113 /** \example publickeyexample.cpp
114 
115 The code below shows how to do public key encryption, decryption,
116 signing and verification.
117 */
118 
119 
120 /** \example randomtest.cpp
121 
122 The code below shows the normal way to use the QCA::Random class.
123 
124 */
125 
126 
127 /** \example rsatest.cpp
128 
129 The code below shows some of the capabilities for how to use
130 RSA. This example also shows how to export and import a key
131 to a file, using PEM encoding.
132 
133 */
134 
135 
136 /** \example saslserver.cpp
137 
138 The code below shows how to create a SASL server.
139 
140 */
141 
142 
143 /** \example saslclient.cpp
144 
145 The code below shows how to create a SASL client.
146 
147 */
148 
149 
150 /** \example sslservtest.cpp
151 
152 The code below shows how to create an SSL server.
153 
154 Note that this server returns a self-signed certificate
155 for "example.com", and that the certificate is expired.
156 
157 The design used here only allows for one connection
158 at a time. If you want to allow for more, you should
159 probably create a "TlsConnection" object that agregates
160 a QCA::TLS object and a QTcpSocket (plus a little bit of
161 state information) that handles a single connection. Then
162 just create a TlsConnection for each server connection.
163 
164 */
165 
166 /** \example ssltest.cpp
167 
168 The code below shows how to create an SSL client
169 
170 */
171 
172 /** \example tlssocket.cpp
173 
174 The code below shows how to create a socket that can operate
175 over an Transport Layer Security (TLS, also known as SSL) connection.
176 
177 \include tlssocket/tlssocket.h
178 \include tlssocket/main.cpp
179 */
180 
181 
182 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Sep 25 2021 23:05:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.