qca/examples/examples.doco
Brad Hards c622a5f43a Fix a couple more typos.
svn path=/trunk/kdesupport/qca/; revision=595157
2006-10-13 12:19:06 +00:00

105 lines
2.3 KiB
Plaintext

/** \example aes-cmac.cpp
This example shows how to implement a client side "provider".
There are three important parts to this:
- the class derived from QCA::Provider (in this example called
"ClientSideProvider"), that generates the context class
- one or more context classes (in this example only one, implementing
AES-CMAC, called "AESCMACContext")
- a call to QCA::insertProvider, to add the QCA::Provider subclass
into QCA
*/
/** \example base64test.cpp
The code below shows some simple operations on a Base64 object, converting
between QSecureArray and QString.
*/
/** \example certtest.cpp
This example shows how QCA::Certificate and QCA::CertificateCollection
can be used. Note that the argument, if you provide it, must be a
PEM encoded file collection.
*/
/** \example ciphertest.cpp
The code below shows the normal way to use the Cipher class.
*/
/** \example cmsexample.cpp
The code below shows the normal way to use the CMS class.
*/
/** \example hashtest.cpp
The code below shows how to use the Hash class
*/
/** \example hextest.cpp
The code below shows some simple operations on a Hex object, converting
between QSecureArray and QString.
*/
/** \example mactest.cpp
The code below shows how to usethe MessageAuthenticationCode class
*/
/** \example providertest.cpp
The code below shows some simple operations on a Provider object, including
use of iterators and some member functions.
*/
/** \example randomtest.cpp
The code below shows the normal way to use the Random class.
*/
/** \example rsatest.cpp
The code below shows some of the capabilities for how to use
RSA. This example also shows how to export and import a key
to a file, using PEM encoding.
*/
/** \example ssltest.cpp
The code below shows how to create an SSL client
*/
/** \example sslservtest.cpp
The code below shows how to create an SSL server.
Note that this server returns a self-signed certificate
for "example.com", and that the certificate is expired.
The design used here only allows for one connection
at a time. If you want to allow for more, you should
probably create a "TlsConnection" object that agregates
a QCA::TLS object and a QTcpSocket (plus a little bit of
state information) that handles a single connection. Then
just create a TlsConnection for each server connection.
*/