|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Abstract base class for 16-byte block ciphers. More...
#include <cipher.hh>
Public Member Functions | |
| virtual const std::array< uint8_t, N > & | InitializationVector () const =0 |
| Returns the initialization vector used by this cipher instance. | |
| virtual void | Decrypt (const std::array< uint8_t, N > &src, std::array< uint8_t, N > &dst) const =0 |
| Decrypts a single block. | |
| virtual void | Encrypt (const std::array< uint8_t, N > &src, std::array< uint8_t, N > &dst) const =0 |
| Encrypts a single block. | |
Abstract base class for 16-byte block ciphers.
| N | The block size in bytes (always 16 for the ciphers in this library). |
|
pure virtual |
Decrypts a single block.
| src | The ciphertext block to decrypt. |
| dst | The resulting plaintext block. |
|
pure virtual |
Encrypts a single block.
| src | The plaintext block to encrypt. |
| dst | The resulting ciphertext block. |
|
pure virtual |
Returns the initialization vector used by this cipher instance.
Implemented in keepass::AesCipher, and keepass::TwofishCipher.