|
| | BlockCipherModeOfOperation (bool cipherParallelizable, bool decipherParallelizable, unsigned int nbThread=1) |
| |
| virtual | ~BlockCipherModeOfOperation () |
| |
| virtual std::size_t | cipherBlock (std::array< uint8_t, Cipher::getBlockSize()> &input, std::streamsize nbRead, std::array< uint8_t, Cipher::getBlockSize()> &output, uint32_t index, Cipher &cipher)=0 |
| |
| virtual std::size_t | decipherBlock (std::array< uint8_t, Cipher::getBlockSize()> &input, std::array< uint8_t, Cipher::getBlockSize()> &prevInput, std::streamsize nbRead, bool lastBlock, std::array< uint8_t, Cipher::getBlockSize()> &output, uint32_t index, Cipher &cipher)=0 |
| |
| virtual const std::array< uint8_t, Cipher::getBlockSize()> & | reset ()=0 |
| |
template<typename Derived, typename Cipher>
class anch::crypto::BlockCipherModeOfOperation< Derived, Cipher >
Block cipher mode of operation interface.
Interface for all block cipher mode of operation implementations.
- Since
- 0.1
- Author
- Vincent Lachenal
template<typename Derived, typename Cipher>
| virtual std::size_t anch::crypto::BlockCipherModeOfOperation< Derived, Cipher >::cipherBlock |
( |
std::array< uint8_t, Cipher::getBlockSize()> & |
input, |
|
|
std::streamsize |
nbRead, |
|
|
std::array< uint8_t, Cipher::getBlockSize()> & |
output, |
|
|
uint32_t |
index, |
|
|
Cipher & |
cipher |
|
) |
| |
|
protectedpure virtual |
template<typename Derived, typename Cipher>
| virtual std::size_t anch::crypto::BlockCipherModeOfOperation< Derived, Cipher >::decipherBlock |
( |
std::array< uint8_t, Cipher::getBlockSize()> & |
input, |
|
|
std::array< uint8_t, Cipher::getBlockSize()> & |
prevInput, |
|
|
std::streamsize |
nbRead, |
|
|
bool |
lastBlock, |
|
|
std::array< uint8_t, Cipher::getBlockSize()> & |
output, |
|
|
uint32_t |
index, |
|
|
Cipher & |
cipher |
|
) |
| |
|
protectedpure virtual |