Class MacContext
A message authentication code (MAC) context.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class MacContext : MacContextBase
Constructors
MacContext(MacType, DataBuffer)
Initializes a new instance of the MacContext class.
Declaration
public MacContext(MacType type, DataBuffer key)
Parameters
Type | Name | Description |
---|---|---|
MacType | type | The type. |
DataBuffer | key | The key. |
Properties
UseDataBufferPool
Gets or sets a value indicating whether to use data buffer pooling.
Declaration
public bool UseDataBufferPool { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
DoCompute(DataBuffer)
Computes the message authentication code (MAC).
Declaration
protected override DataBuffer DoCompute(DataBuffer input)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | input | The input. |
Returns
Type | Description |
---|---|
DataBuffer |
Overrides
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()