/ fm / liveswitch / MacContext
Class: MacContext
fm.liveswitch.MacContext
Hierarchy
-
↳ MacContext
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new MacContext(type
: MacType, key
: DataBuffer): MacContext
Parameters:
Name | Type |
---|---|
type |
MacType |
key |
DataBuffer |
Returns: MacContext
Inherited from: MacContextBase
Defined in: Generated/TypeScript/fm.liveswitch/MacContext.ts:7
Properties
_key
• Private
_key: DataBuffer
Defined in: Generated/TypeScript/fm.liveswitch/MacContext.ts:7
Methods
compute
▸ compute(input
: DataBuffer): DataBuffer
Computes the message authentication code (MAC).
Parameters:
Name | Type | Description |
---|---|---|
input |
DataBuffer | The input. |
Returns: DataBuffer
Inherited from: MacContextBase
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:58
destroy
▸ destroy(): void
Destroys this instance.
Returns: void
Inherited from: MacContextBase
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:70
doCompute
▸ doCompute(input
: DataBuffer): DataBuffer
Parameters:
Name | Type |
---|---|
input |
DataBuffer |
Returns: DataBuffer
Overrides: MacContextBase
Defined in: Generated/TypeScript/fm.liveswitch/MacContext.ts:12
doDestroy
▸ doDestroy(): void
Returns: void
Overrides: MacContextBase
Defined in: Generated/TypeScript/fm.liveswitch/MacContext.ts:26
getType
▸ getType(): MacType
Gets the type.
Returns: MacType
Inherited from: MacContextBase
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:95
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: MacContextBase
Defined in: Generated/TypeScript/fm.liveswitch/MacContext.ts:4
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
Inherited from: MacContextBase
Defined in: Generated/TypeScript/fm.liveswitch/MacContextBase.ts:42