A symmetric cipher.
More...
#include <symmetric_cipher.hpp>
|
| virtual | ~SymmetricCipher () |
| | Destructor.
|
| |
| virtual void | cipher (const ByteVector &src, ByteVector &dest, const SymmetricKey &key, const InitializationVector &iv, bool padding)=0 |
| | Cipher a buffer.
|
| |
| void | cipher (const ByteVector &src, ByteVector &dest, const SymmetricKey &key) |
| |
| void | cipher (const ByteVector &src, ByteVector &dest, const ByteVector &key, const ByteVector &iv={}) |
| |
| virtual void | decipher (const ByteVector &src, ByteVector &dest, const SymmetricKey &key, const InitializationVector &iv, bool padding)=0 |
| | Decipher a buffer.
|
| |
| void | decipher (const ByteVector &src, ByteVector &dest, const SymmetricKey &key) |
| |
| void | decipher (const ByteVector &src, ByteVector &dest, const ByteVector &key, const ByteVector &iv={}) |
| |
| virtual unsigned char | getBlockSize () const =0 |
| |
◆ ~SymmetricCipher()
| logicalaccess::openssl::SymmetricCipher::~SymmetricCipher |
( |
| ) |
|
|
virtual |
Destructor.
This is required for the compiler to properly generate RTTI information. Do not remove, and do not inline.
◆ cipher() [1/3]
◆ cipher() [2/3]
◆ cipher() [3/3]
Cipher a buffer.
- Parameters
-
| src | The buffer to cipher. |
| dest | The ciphered buffer. |
| key | The key to use. |
| iv | The initialisation vector. |
| padding | Whether to use padding. In case of a failure, the call throw an InvalidCallException. |
Implemented in logicalaccess::openssl::OpenSSLSymmetricCipher.
◆ decipher() [1/3]
◆ decipher() [2/3]
◆ decipher() [3/3]
Decipher a buffer.
- Parameters
-
| src | The buffer to decipher. |
| dest | The deciphered buffer. |
| key | The key to use. |
| iv | The initialisation vector. |
| padding | Whether to use padding. In case of a failure, the call throw a InvalidCallException. |
Implemented in logicalaccess::openssl::OpenSSLSymmetricCipher.
◆ getBlockSize()
| virtual unsigned char logicalaccess::openssl::SymmetricCipher::getBlockSize |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following files: