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

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

#include <tsCTS3.h>

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

Public Member Functions

 CTS3 ()
 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::CTS3< CIPHER, >

Cipher text Stealing (CTS) mode, alternative 3.

Several incompatible designs of CTS exist. This one implements the description of "ECB ciphertext stealing" in http://en.wikipedia.org/wiki/Ciphertext_stealing

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::CTS3< 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: