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

qca

QCA::KeyLength

QCA::KeyLength Class Reference
[QCA user API]

Simple container for acceptable key lengths. More...

#include <QtCrypto>

List of all members.

Public Member Functions

 KeyLength (int min, int max, int multiple)
int maximum () const
int minimum () const
int multiple () const

Detailed Description

Simple container for acceptable key lengths.

The KeyLength specifies the minimum and maximum byte sizes allowed for a key, as well as a "multiple" which the key size must evenly divide into.

As an example, if the key can be 4, 8 or 12 bytes, you can express this as

KeyLength keyLen( 4, 12, 4 );

If you want to express a KeyLength that takes any number of bytes (including zero), you may want to use

#include<limits>
KeyLength( 0, std::numeric_limits<int>::max(), 1 );

Definition at line 616 of file qca_core.h.


Constructor & Destructor Documentation

QCA::KeyLength::KeyLength ( int  min,
int  max,
int  multiple 
) [inline]

Construct a KeyLength object.

Parameters:
min the minimum length of the key, in bytes
max the maximum length of the key, in bytes
multiple the number of bytes that the key must be a multiple of.

Definition at line 627 of file qca_core.h.


Member Function Documentation

int QCA::KeyLength::maximum (  )  const [inline]

Obtain the maximum length for the key, in bytes.

Definition at line 639 of file qca_core.h.

int QCA::KeyLength::minimum (  )  const [inline]

Obtain the minimum length for the key, in bytes.

Definition at line 634 of file qca_core.h.

int QCA::KeyLength::multiple (  )  const [inline]

Return the number of bytes that the key must be a multiple of.

If this is one, then anything between minimum and maximum (inclusive) is acceptable.

Definition at line 647 of file qca_core.h.


The documentation for this class was generated from the following file:
  • qca_core.h

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