AnCH Framework  0.1
Another C++ Hack Framework
Public Member Functions | Static Public Member Functions | List of all members
anch::crypto::BlockCipher< B > Class Template Referenceabstract

Block cipher interface. More...

#include <blockCipher.hpp>

Inheritance diagram for anch::crypto::BlockCipher< B >:
Collaboration diagram for anch::crypto::BlockCipher< B >:

Public Member Functions

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
 

Static Public Member Functions

static constexpr std::size_t getBlockSize ()
 

Detailed Description

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

Member Function Documentation

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
inputthe block to cipher
outputthe 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
inputthe block to decipher
outputthe deciphered block
template<std::size_t B>
static constexpr std::size_t anch::crypto::BlockCipher< B >::getBlockSize ( )
inlinestatic

Block size getter.

Returns
the block size

The documentation for this class was generated from the following file: