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

Cipher text Stealing (CTS) mode, alternative 4. More...

#include <tsCTS4.h>

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

Public Member Functions

 CTS4 ()
 Default constructor.
 

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::CTS4< CIPHER, >

Cipher text Stealing (CTS) mode, alternative 4.

Several incompatible designs of CTS exist. This one implements the weird STMicroelectronics STi71xx ECB-CTS implementation.

CTS can process a residue. The plain text and cipher text sizes must be greater than the block size of the underlying block cipher.

Template Parameters
CIPHERA subclass of ts::BlockCipher, the underlying 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::CTS4< 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: