TSDuck v3.38-3675
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::CBC< CIPHER, > Class Template Reference

Cipher Block Chaining (CBC) mode. More...

#include <tsCBC.h>

Inheritance diagram for ts::CBC< CIPHER, >:
Collaboration diagram for ts::CBC< CIPHER, >:

Public Member Functions

 CBC ()
 Default constructor.
 

Protected Member Functions

 CBC (const BlockCipherProperties &props)
 Constructor for subclasses which add some properties, such as fixed IV.
 

Static Protected Member Functions

static const BlockCipherPropertiesPROPERTIES ()
 Properties of this algorithm.
 

Detailed Description

template<class CIPHER, typename std::enable_if< std::is_base_of< BlockCipher, CIPHER >::value >::type * = nullptr>
class ts::CBC< CIPHER, >

Cipher Block Chaining (CBC) mode.

No padding is performed. The plain text and cipher text sizes must be multiples of the block size of the underlying block cipher.

Template Parameters
CIPHERA subclass of ts::BlockCipher, the underlying block cipher.

Constructor & Destructor Documentation

◆ CBC()

template<class CIPHER , typename std::enable_if< std::is_base_of< BlockCipher, CIPHER >::value >::type * = nullptr>
ts::CBC< CIPHER, >::CBC ( const BlockCipherProperties props)
protected

Constructor for subclasses which add some properties, such as fixed IV.

Parameters
[in]propsConstant reference to a block of properties of this block cipher.

Member Function Documentation

◆ PROPERTIES()

template<class CIPHER , typename std::enable_if< std::is_base_of< BlockCipher, CIPHER >::value >::type * = nullptr>
static const BlockCipherProperties & ts::CBC< CIPHER, >::PROPERTIES ( )
inlinestaticprotected

Properties of this algorithm.

Returns
A constant reference to the properties.

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