Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MacContext

Hierarchy

  • MacContextBase
    • MacContext

Index

Constructors

constructor

  • new MacContext(type: MacType, key: DataBuffer): MacContext

Properties

Private _key

_key: DataBuffer

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

doCompute

  • doCompute(input: DataBuffer): DataBuffer
  • Parameters

    • input: DataBuffer

    Returns DataBuffer

doDestroy

  • doDestroy(): void

getType

  • getType(): MacType
  • Gets the type.

    Returns MacType

getTypeString

  • getTypeString(): string

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