/ fm / liveswitch / MacContextBase
Class: MacContextBase
fm.liveswitch.MacContextBase
A message authentication code (MAC) context.
Hierarchy
MacContextBase
Table of contents
Constructors
Methods
Constructors
constructor
+ new MacContextBase(type
: MacType): MacContextBase
Initializes a new instance of the [[fm.liveswitch.macContextBase]] class.
Parameters:
Name | Type | Description |
---|---|---|
type |
MacType | The type. |
Returns: MacContextBase
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:13
Methods
compute
▸ compute(input
: DataBuffer): DataBuffer
Computes the message authentication code (MAC).
Parameters:
Name | Type | Description |
---|---|---|
input |
DataBuffer | The input. |
Returns: DataBuffer
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:58
destroy
▸ destroy(): void
Destroys this instance.
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:70
doCompute
▸ Protected
Abstract
doCompute(input
: DataBuffer): DataBuffer
Computes the message authentication code (MAC).
Parameters:
Name | Type | Description |
---|---|---|
input |
DataBuffer | The input. |
Returns: DataBuffer
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:83
doDestroy
▸ Protected
Abstract
doDestroy(): void
Destroys this instance.
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:89
getType
▸ getType(): MacType
Gets the type.
Returns: MacType
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:95
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:9
compute
▸ Static
compute(type
: MacType, key
: DataBuffer, input
: DataBuffer): DataBuffer
Computes the message authentication code (MAC) for a given type.
Parameters:
Name | Type | Description |
---|---|---|
type |
MacType | The type. |
key |
DataBuffer | The key. |
input |
DataBuffer | The input. |
Returns: DataBuffer
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:42