Qt Cryptographic Architecture
|
#include <QtCrypto>
Public Member Functions | |
bool | isWeakDESKey () |
SymmetricKey () | |
SymmetricKey (int size) | |
SymmetricKey (const SecureArray &a) | |
SymmetricKey (const QByteArray &a) | |
![]() | |
SecureArray & | append (const SecureArray &a) |
char & | at (int index) |
const char & | at (int index) const |
void | clear () |
const char * | constData () const |
char * | data () |
const char * | data () const |
void | fill (char fillChar, int fillToPosition=-1) |
bool | isEmpty () const |
bool | operator!= (const MemoryRegion &other) const |
SecureArray & | operator+= (const SecureArray &a) |
SecureArray & | operator= (const SecureArray &from) |
SecureArray & | operator= (const QByteArray &a) |
bool | operator== (const MemoryRegion &other) const |
char & | operator[] (int index) |
const char & | operator[] (int index) const |
bool | resize (int size) |
SecureArray () | |
SecureArray (int size, char ch=0) | |
SecureArray (const char *str) | |
SecureArray (const QByteArray &a) | |
SecureArray (const MemoryRegion &a) | |
SecureArray (const SecureArray &from) | |
int | size () const |
QByteArray | toByteArray () const |
![]() | |
const char & | at (int index) const |
const char * | constData () const |
const char * | data () const |
bool | isEmpty () const |
bool | isNull () const |
bool | isSecure () const |
MemoryRegion (const char *str) | |
MemoryRegion (const QByteArray &from) | |
MemoryRegion (const MemoryRegion &from) | |
MemoryRegion & | operator= (const MemoryRegion &from) |
MemoryRegion & | operator= (const QByteArray &from) |
int | size () const |
QByteArray | toByteArray () const |
Additional Inherited Members | |
![]() | |
void | set (const SecureArray &from) |
void | set (const QByteArray &from) |
![]() | |
char & | at (int index) |
char * | data () |
MemoryRegion (bool secure) | |
MemoryRegion (int size, bool secure) | |
MemoryRegion (const QByteArray &from, bool secure) | |
bool | resize (int size) |
void | set (const QByteArray &from, bool secure) |
void | setSecure (bool secure) |
Container for keys for symmetric encryption algorithms.
QCA::SymmetricKey::SymmetricKey | ( | ) |
Construct an empty (zero length) key.
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.
size | the number of bytes for the key |
QCA::SymmetricKey::SymmetricKey | ( | const SecureArray & | a | ) |
Construct a key from a provided byte array.
a | the byte array to copy |
QCA::SymmetricKey::SymmetricKey | ( | const QByteArray & | a | ) |
Construct a key from a provided byte array.
a | the byte array to copy |
bool QCA::SymmetricKey::isWeakDESKey | ( | ) |
Test for weak DES keys.