QCA::InitializationVector

QCA::InitializationVector Class Reference

#include <QtCrypto>

Inheritance diagram for QCA::InitializationVector:

Public Member Functions

 InitializationVector ()
 
 InitializationVector (int size)
 
 InitializationVector (const SecureArray &a)
 
 InitializationVector (const QByteArray &a)
 
- Public Member Functions inherited from QCA::SecureArray
 SecureArray ()
 
 SecureArray (int size, char ch=0)
 
 SecureArray (const char *str)
 
 SecureArray (const QByteArray &a)
 
 SecureArray (const MemoryRegion &a)
 
 SecureArray (const SecureArray &from)
 
SecureArrayappend (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
 
SecureArrayoperator+= (const SecureArray &a)
 
SecureArrayoperator= (const SecureArray &from)
 
SecureArrayoperator= (const QByteArray &a)
 
bool operator== (const MemoryRegion &other) const
 
char & operator[] (int index)
 
const char & operator[] (int index) const
 
bool resize (int size)
 
int size () const
 
QByteArray toByteArray () const
 
- Public Member Functions inherited from QCA::MemoryRegion
 MemoryRegion (const char *str)
 
 MemoryRegion (const QByteArray &from)
 
 MemoryRegion (const MemoryRegion &from)
 
const char & at (int index) const
 
const char * constData () const
 
const char * data () const
 
bool isEmpty () const
 
bool isNull () const
 
bool isSecure () const
 
MemoryRegionoperator= (const MemoryRegion &from)
 
MemoryRegionoperator= (const QByteArray &from)
 
int size () const
 
QByteArray toByteArray () const
 

Additional Inherited Members

- Protected Member Functions inherited from QCA::SecureArray
void set (const SecureArray &from)
 
void set (const QByteArray &from)
 
- Protected Member Functions inherited from QCA::MemoryRegion
 MemoryRegion (bool secure)
 
 MemoryRegion (int size, bool secure)
 
 MemoryRegion (const QByteArray &from, bool secure)
 
char & at (int index)
 
char * data ()
 
bool resize (int size)
 
void set (const QByteArray &from, bool secure)
 
void setSecure (bool secure)
 

Detailed Description

Container for initialisation vectors and nonces.

Examples:
ciphertest.cpp.

Definition at line 1309 of file qca_core.h.

Constructor & Destructor Documentation

QCA::InitializationVector::InitializationVector ( )

Construct an empty (zero length) initisation vector.

QCA::InitializationVector::InitializationVector ( int  size)

Construct an initialisation vector of the specified size.

Parameters
sizethe length of the initialisation vector, in bytes
QCA::InitializationVector::InitializationVector ( const SecureArray a)

Construct an initialisation vector from a provided byte array.

Parameters
athe byte array to copy
QCA::InitializationVector::InitializationVector ( const QByteArray a)

Construct an initialisation vector from a provided byte array.

Parameters
athe byte array to copy

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Nov 29 2020 23:03:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.