fm.liveswitch.MacContextBase Class Referenceabstract

A message authentication code (MAC) context. More...

Public Member Functions

fm.liveswitch.DataBuffer compute (fm.liveswitch.DataBuffer input)
 Computes the message authentication code (MAC). More...
 
void destroy ()
 Destroys this instance. More...
 
fm.liveswitch.MacType getType ()
 Gets the type. More...
 
 MacContextBase (fm.liveswitch.MacType type)
 Initializes a new instance of the fm.liveswitch.MacContextBase class. More...
 

Static Public Member Functions

static fm.liveswitch.DataBuffer compute (fm.liveswitch.MacType type, fm.liveswitch.DataBuffer key, fm.liveswitch.DataBuffer input)
 Computes the message authentication code (MAC) for a given type. More...
 

Protected Member Functions

abstract fm.liveswitch.DataBuffer doCompute (fm.liveswitch.DataBuffer input)
 Computes the message authentication code (MAC). More...
 
abstract void doDestroy ()
 Destroys this instance. More...
 

Detailed Description

A message authentication code (MAC) context.

Constructor & Destructor Documentation

◆ MacContextBase()

fm.liveswitch.MacContextBase.MacContextBase ( fm.liveswitch.MacType  type)

Initializes a new instance of the fm.liveswitch.MacContextBase class.

Parameters
typeThe type.

Member Function Documentation

◆ compute() [1/2]

fm.liveswitch.DataBuffer fm.liveswitch.MacContextBase.compute ( fm.liveswitch.DataBuffer  input)

Computes the message authentication code (MAC).

Parameters
inputThe input.

◆ compute() [2/2]

static fm.liveswitch.DataBuffer fm.liveswitch.MacContextBase.compute ( fm.liveswitch.MacType  type,
fm.liveswitch.DataBuffer  key,
fm.liveswitch.DataBuffer  input 
)
static

Computes the message authentication code (MAC) for a given type.

Parameters
typeThe type.
keyThe key.
inputThe input.

◆ destroy()

void fm.liveswitch.MacContextBase.destroy ( )

Destroys this instance.

◆ doCompute()

abstract fm.liveswitch.DataBuffer fm.liveswitch.MacContextBase.doCompute ( fm.liveswitch.DataBuffer  input)
abstractprotected

Computes the message authentication code (MAC).

Parameters
inputThe input.

◆ doDestroy()

abstract void fm.liveswitch.MacContextBase.doDestroy ( )
abstractprotected

Destroys this instance.

Reimplemented in fm.liveswitch.MacContext.

◆ getType()

fm.liveswitch.MacType fm.liveswitch.MacContextBase.getType ( )

Gets the type.