QCA::KeyLength
#include <QtCrypto>
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
If you want to express a KeyLength that takes any number of bytes (including zero), you may want to use
- Examples
- aes-cmac.cpp.
Definition at line 700 of file qca_core.h.
Constructor & Destructor Documentation
◆ KeyLength()
|
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 711 of file qca_core.h.
Member Function Documentation
◆ maximum()
|
inline |
Obtain the maximum length for the key, in bytes.
Definition at line 729 of file qca_core.h.
◆ minimum()
|
inline |
Obtain the minimum length for the key, in bytes.
Definition at line 721 of file qca_core.h.
◆ multiple()
|
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 740 of file qca_core.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.