Block cipher interface.
More...
#include <blockCipher.hpp>
|
virtual void | cipher (const std::array< uint8_t, B > &input, std::array< uint8_t, B > &output)=0 |
|
virtual void | decipher (const std::array< uint8_t, B > &input, std::array< uint8_t, B > &output)=0 |
|
template<std::size_t B>
class anch::crypto::BlockCipher< B >
Block cipher interface.
Interface for all block cipher implementations.
- Since
- 0.1
- Author
- Vincent Lachenal
template<std::size_t B>
virtual void anch::crypto::BlockCipher< B >::cipher |
( |
const std::array< uint8_t, B > & |
input, |
|
|
std::array< uint8_t, B > & |
output |
|
) |
| |
|
pure virtual |
Cipher a block
- Parameters
-
input | the block to cipher |
output | the ciphered block |
template<std::size_t B>
virtual void anch::crypto::BlockCipher< B >::decipher |
( |
const std::array< uint8_t, B > & |
input, |
|
|
std::array< uint8_t, B > & |
output |
|
) |
| |
|
pure virtual |
Decipher a block
- Parameters
-
input | the block to decipher |
output | the deciphered block |
Block size getter.
- Returns
- the block size
The documentation for this class was generated from the following file: