• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

qca

QCA::SymmetricKey

QCA::SymmetricKey Class Reference
[QCA user API]

Container for keys for symmetric encryption algorithms. More...

#include <QtCrypto>

Inheritance diagram for QCA::SymmetricKey:
Inheritance graph
[legend]

List of all members.

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:
  • qca_core.h
  • qca_core.cpp

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal