TSDuck v3.40-4033
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::ECB< CIPHER > Class Template Reference

Electronic Code Book (ECB) mode. More...

#include <tsECB.h>

Inheritance diagram for ts::ECB< CIPHER >:
Collaboration diagram for ts::ECB< CIPHER >:

Public Member Functions

 ECB ()
 Constructor.
 

Protected Member Functions

 ECB (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>
requires std::derived_from<CIPHER, ts::BlockCipher>
class ts::ECB< CIPHER >

Electronic Code Book (ECB) 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

◆ ECB()

template<class CIPHER >
ts::ECB< CIPHER >::ECB ( 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 >
static const BlockCipherProperties & ts::ECB< 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: