Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MacContextBase

A message authentication code (MAC) context.

Hierarchy

  • MacContextBase

Index

Constructors

constructor

  • Initializes a new instance of the fm.icelink.macContextBase class.

    Parameters

    • type: MacType

      The type.

    Returns MacContextBase

Properties

Private _type

_type: MacType
internal

Methods

compute

  • compute(input: DataBuffer): DataBuffer
  • Computes the message authentication code (MAC).

    Parameters

    • input: DataBuffer

      The input.

    Returns DataBuffer

destroy

  • destroy(): void
  • Destroys this instance.

    Returns void

Protected Abstract doCompute

  • doCompute(input: DataBuffer): DataBuffer
  • Computes the message authentication code (MAC).

    Parameters

    • input: DataBuffer

      The input.

    Returns DataBuffer

Protected Abstract doDestroy

  • doDestroy(): void
  • Destroys this instance.

    Returns void

getType

  • getType(): MacType
  • Gets the type.

    Returns MacType

getTypeString

  • getTypeString(): string
  • Returns string

Private setType

  • setType(value: MacType): void
  • internal

    Parameters

    • value: MacType

    Returns void

Static compute

  • compute(type: MacType, key: DataBuffer, input: DataBuffer): DataBuffer
  • Computes the message authentication code (MAC) for a given type.

    Parameters

    • type: MacType

      The type.

    • key: DataBuffer

      The key.

    • input: DataBuffer

      The input.

    Returns DataBuffer