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

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

#include <tsCTS2.h>

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

Public Member Functions

 CTS2 ()
 Default constructor.
 

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::CTS2< CIPHER >

Cipher text Stealing (CTS) mode, alternative 2.

Several incompatible designs of CTS exist. This one implements the description in http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/ciphertext%20stealing%20proposal.pdf

CTS can process a residue. The plain text and cipher text sizes must be equal to or 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 >
static const BlockCipherProperties & ts::CTS2< 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: