qca
QCA::SymmetricKey Class Reference
[QCA user API]
Container for keys for symmetric encryption algorithms. More...
#include <QtCrypto>
Inheritance diagram for QCA::SymmetricKey:

Public Member Functions | |
| SymmetricKey (const QByteArray &a) | |
| SymmetricKey (const SecureArray &a) | |
| SymmetricKey (int size) | |
| SymmetricKey () | |
| bool | isWeakDESKey () |
Detailed Description
Container for keys for symmetric encryption algorithms.
Definition at line 1167 of file qca_core.h.
Constructor & Destructor Documentation
| QCA::SymmetricKey::SymmetricKey | ( | ) |
Construct an empty (zero length) key.
Definition at line 1313 of file qca_core.cpp.
| QCA::SymmetricKey::SymmetricKey | ( | int | size | ) |
Construct an key of specified size, with random contents.
This is intended to be used as a random session key.
- Parameters:
-
size the number of bytes for the key
Definition at line 1317 of file qca_core.cpp.
| QCA::SymmetricKey::SymmetricKey | ( | const SecureArray & | a | ) |
Construct a key from a provided byte array.
- Parameters:
-
a the byte array to copy
Definition at line 1322 of file qca_core.cpp.
| QCA::SymmetricKey::SymmetricKey | ( | const QByteArray & | a | ) |
Construct a key from a provided byte array.
- Parameters:
-
a the byte array to copy
Definition at line 1327 of file qca_core.cpp.
Member Function Documentation
| bool QCA::SymmetricKey::isWeakDESKey | ( | ) |
Test for weak DES keys.
- Returns:
- true if the key is a weak key for DES
Definition at line 1401 of file qca_core.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference