|
Qt Cryptographic Architecture
|
#include <QtCrypto>

Public Member Functions | |
| Base64 (Direction dir=Encode) | |
| void | clear () override |
| MemoryRegion | final () override |
| int | lineBreaksColumn () const |
| bool | lineBreaksEnabled () const |
| bool | ok () const override |
| void | setLineBreaksColumn (int column) |
| void | setLineBreaksEnabled (bool b) |
| MemoryRegion | update (const MemoryRegion &a) override |
| Public Member Functions inherited from QCA::TextFilter | |
| QString | arrayToString (const MemoryRegion &a) |
| MemoryRegion | decode (const MemoryRegion &a) |
| QString | decodeString (const QString &s) |
| Direction | direction () const |
| MemoryRegion | encode (const MemoryRegion &a) |
| QString | encodeString (const QString &s) |
| void | setup (Direction dir) |
| MemoryRegion | stringToArray (const QString &s) |
| TextFilter (Direction dir) | |
| Public Member Functions inherited from QCA::Filter | |
| MemoryRegion | process (const MemoryRegion &a) |
Additional Inherited Members | |
| Protected Attributes inherited from QCA::TextFilter | |
| Direction | _dir |
Base64 encoding / decoding
Standard constructor.
| dir | the Direction that should be used. |
References QCA::Encode.
Referenced by ok().
| bool QCA::Base64::lineBreaksEnabled | ( | ) | const |
Returns true if line breaks are enabled.
| int QCA::Base64::lineBreaksColumn | ( | ) | const |
Returns the line break column.
| void QCA::Base64::setLineBreaksEnabled | ( | bool | b | ) |
Sets line break mode.
If enabled, linebreaks will be added to encoded output or accepted in encoded input. If disabled, linebreaks in encoded input will cause a failure to decode. The default is disabled.
| b | whether to enable line breaks (true) or disable line breaks (false) |
| void QCA::Base64::setLineBreaksColumn | ( | int | column | ) |
Sets the column that linebreaks should be inserted at when encoding.
| column | the column number that line breaks should be inserted at. |
|
overridevirtual |
|
overridevirtual |
Process more data, returning the corresponding encoded or decoded (depending on the Direction set in the constructor or setup() call) representation.
If you find yourself with code that only calls this method once, you might be better off using encode() or decode(). Similarly, if the data is really a string, you might be better off using arrayToString(), encodeString(), stringToArray() or decodeString().
| a | the array containing data to process |
Implements QCA::Filter.
|
overridevirtual |
Complete the algorithm.
Implements QCA::Filter.
|
overridevirtual |
Test if an update() or final() call succeeded.
Implements QCA::Filter.
References Base64().