TSDuck v3.38-3699
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsBlockCipher.h File Reference

Abstract interface of block ciphers. More...

Classes

class  ts::BlockCipher
 Base class for all block ciphers. More...
 

Namespaces

namespace  ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Macros

#define TS_BLOCK_CIPHER_DECLARE_PROPERTIES(Prefix)
 Declare the static properties of a BlockCipher subclass.
 
#define TS_BLOCK_CIPHER_DEFINE_PROPERTIES(CipherClass, Prefix, Args)
 Define the implementation of the static properties of a BlockCipher subclass.
 
#define TS_BLOCK_CIPHER_DEFINE_PROPERTIES_TEMPLATE(CipherClass, Prefix, Args)
 Define the implementation of the static properties of a template BlockCipher subclass.
 

Detailed Description

Abstract interface of block ciphers.

Macro Definition Documentation

◆ TS_BLOCK_CIPHER_DECLARE_PROPERTIES

#define TS_BLOCK_CIPHER_DECLARE_PROPERTIES (   Prefix)

Declare the static properties of a BlockCipher subclass.

A static function named PROPERTIES() is declared.

Parameters
PrefixA unique symbol prefix for this BlockCipher subclass. Used to avoid the same names in subclasses of that BlockCipher subclass.

◆ TS_BLOCK_CIPHER_DEFINE_PROPERTIES

#define TS_BLOCK_CIPHER_DEFINE_PROPERTIES (   CipherClass,
  Prefix,
  Args 
)

Define the implementation of the static properties of a BlockCipher subclass.

Parameters
CipherClassFully qualified name of the BlockCipher subclass.
PrefixSame prefix as used in TS_BLOCK_CIPHER_DECLARE_PROPERTIES.
ArgsArgs for the BlockCipherProperties constructor.

◆ TS_BLOCK_CIPHER_DEFINE_PROPERTIES_TEMPLATE

#define TS_BLOCK_CIPHER_DEFINE_PROPERTIES_TEMPLATE (   CipherClass,
  Prefix,
  Args 
)

Define the implementation of the static properties of a template BlockCipher subclass.

Parameters
CipherClassFully qualified name of the BlockCipher subclass.
PrefixSame prefix as used in TS_BLOCK_CIPHER_DECLARE_PROPERTIES.
ArgsArgs for the BlockCipherProperties constructor.