Search Results for

    / fm / liveswitch / MacContext

    Class: MacContext

    fm.liveswitch.MacContext

    Hierarchy

    • MacContextBase

      ↳ MacContext

    Table of contents

    Constructors

    • constructor

    Properties

    • _key

    Methods

    • compute
    • destroy
    • doCompute
    • doDestroy
    • getType
    • getTypeString
    • compute

    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

    ▸ Staticcompute(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

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0