Qt Cryptographic Architecture
|
Go to the documentation of this file.
33 #ifndef QCA_TEXTFILTER_H
34 #define QCA_TEXTFILTER_H
215 bool ok()
const override;
310 bool ok()
const override;
Direction
Direction settings for symmetric algorithms.
Definition: qca_core.h:141
TextFilter(Direction dir)
Standard constructor.
MemoryRegion stringToArray(const QString &s)
Process an string in the "reverse" direction, returning a byte array.
Hexadecimal encoding / decoding.
Definition: qca_textfilter.h:165
QCA - the Qt Cryptographic Architecture.
Definition: qca_basic.h:41
@ Encode
Operate in the "forward" direction; for example, encrypting.
Definition: qca_core.h:142
MemoryRegion update(const MemoryRegion &a) override
Process more data, returning the corresponding encoded or decoded (depending on the Direction set in ...
Hex(Direction dir=Encode)
Standard constructor.
Direction _dir
Internal state variable for the Direction that the filter operates in.
Definition: qca_textfilter.h:154
void setup(Direction dir)
Reset the TextFilter.
void setLineBreaksColumn(int column)
Sets the column that linebreaks should be inserted at when encoding.
bool ok() const override
Test if an update() or final() call succeeded.
Base64(Direction dir=Encode)
Standard constructor.
int lineBreaksColumn() const
Returns the line break column.
bool ok() const override
Test if an update() or final() call succeeded.
Direction direction() const
The direction the TextFilter is set up to use.
QString decodeString(const QString &s)
Process a string in the "reverse" direction, returning a string.
MemoryRegion encode(const MemoryRegion &a)
Process an array in the "forward" direction, returning an array.
void clear() override
Reset the internal state.
Base64 encoding / decoding
Definition: qca_textfilter.h:233
Superclass for text based filtering algorithms.
Definition: qca_textfilter.h:52
General superclass for filtering transformation algorithms.
Definition: qca_core.h:1096
void clear() override
Reset the internal state.
Header file for core QCA infrastructure.
Array of bytes that may be optionally secured.
Definition: qca_tools.h:91
void setLineBreaksEnabled(bool b)
Sets line break mode.
MemoryRegion update(const MemoryRegion &a) override
Process more data, returning the corresponding encoded or decoded (depending on the Direction set in ...
QString encodeString(const QString &s)
Process a string in the "forward" direction, returning a string.
QString arrayToString(const MemoryRegion &a)
Process an array in the "forward" direction, returning a QString.
MemoryRegion decode(const MemoryRegion &a)
Process an array in the "reverse" direction, returning an array.
bool lineBreaksEnabled() const
Returns true if line breaks are enabled.