FMLiveSwitchMacContextBase Class Reference

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

Instance Methods

(FMLiveSwitchDataBuffer *) - computeWithInput:
 Computes the message authentication code (MAC). More...
 
(void) - destroy
 Destroys this instance. More...
 
(FMLiveSwitchDataBuffer *) - doComputeWithInput:
 Computes the message authentication code (MAC). More...
 
(void) - doDestroy
 Destroys this instance. More...
 
(instancetype) - initWithType:
 Initializes a new instance of the FMLiveSwitchMacContextBase class. More...
 
(FMLiveSwitchMacType) - type
 Gets the type. More...
 

Class Methods

(FMLiveSwitchDataBuffer *) + computeWithType:key:input:
 Computes the message authentication code (MAC) for a given type. More...
 
(FMLiveSwitchMacContextBase *) + macContextBaseWithType:
 Initializes a new instance of the FMLiveSwitchMacContextBase class. More...
 

Detailed Description

A message authentication code (MAC) context.

Method Documentation

◆ computeWithInput:

- (FMLiveSwitchDataBuffer*) computeWithInput: (FMLiveSwitchDataBuffer *)  input

Computes the message authentication code (MAC).

Parameters
inputThe input.

◆ computeWithType:key:input:

+ (FMLiveSwitchDataBuffer*) computeWithType: (FMLiveSwitchMacType)  type
key: (FMLiveSwitchDataBuffer *)  key
input: (FMLiveSwitchDataBuffer *)  input 

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

Parameters
typeThe type.
keyThe key.
inputThe input.

◆ destroy

- (void) destroy

Destroys this instance.

◆ doComputeWithInput:

- (FMLiveSwitchDataBuffer*) doComputeWithInput: (FMLiveSwitchDataBuffer *)  input

Computes the message authentication code (MAC).

Parameters
inputThe input.

◆ doDestroy

- (void) doDestroy

Destroys this instance.

◆ initWithType:

- (instancetype) initWithType: (FMLiveSwitchMacType)  type

Initializes a new instance of the FMLiveSwitchMacContextBase class.

Parameters
typeThe type.

◆ macContextBaseWithType:

+ (FMLiveSwitchMacContextBase*) macContextBaseWithType: (FMLiveSwitchMacType)  type

Initializes a new instance of the FMLiveSwitchMacContextBase class.

Parameters
typeThe type.

◆ type

- (FMLiveSwitchMacType) type

Gets the type.