|
CoreComponents 4.0.0
A Modern C++ Toolkit
|
Internal state. More...
#include <BlockCipher>
Public Member Functions | |
| State (int blockSize) | |
| Initialize with given blockSize. | |
| int | blockSize () const |
| Block size in bytes (required for encode() and decode()) | |
| virtual void | encode (const Bytes &p, Out< Bytes > c)=0 |
| Encipher plaintext block p into ciphertext block c. | |
| virtual void | decode (const Bytes &c, Out< Bytes > p)=0 |
| Decipher ciphertext block c into plaintext block p. | |
Public Member Functions inherited from Object::State | |
| State ()=default | |
| Default constructor. | |
| State (const State &) | |
| Copy constructor. | |
| virtual | ~State () |
| Virtual destructor. | |
| int | useCount () const |
| Strong reference count. | |
| int | refCount () const |
| Strong plus weak reference count. | |
| const State & | operator= (const State &) const |
| template<class T > | |
| bool | is () const |
| Check if this state is of type T. | |
| template<class T > | |
| T & | as () |
| Statically cast this state to a different type T. | |
| template<class T > | |
| const T & | as () const |
| Statically cast this state to a different type T. | |
Internal state.
|
explicit |
Initialize with given blockSize.
| int blockSize | ( | ) | const |
Block size in bytes (required for encode() and decode())
Encipher plaintext block p into ciphertext block c.