Search Results for

    / fm / liveswitch / MacContextBase

    Class: MacContextBase

    fm.liveswitch.MacContextBase

    A message authentication code (MAC) context.

    Hierarchy

    • MacContextBase

      ↳ MacContext

    Table of contents

    Constructors

    • constructor

    Methods

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

    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 AbstractdoCompute(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 AbstractdoDestroy(): 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

    ▸ 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

    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.14.6