Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration MACImpl describes multiple message authentication code implementations.

see

https://github.com/nemtech/NIP/issues/12

since

0.3.0

Hierarchy

  • MACImpl

Index

Constructors

Methods

Constructors

Private constructor

Methods

Static create

  • create(type: MACType, key: Buffer, data: Buffer, publicSalt?: Buffer): Buffer
  • Create a message authentication code with given type. This will use either of HMAC or KMAC code generation.

    access

    public

    Parameters

    • type: MACType
    • key: Buffer
    • data: Buffer
    • Optional publicSalt: Buffer

      (Optional)

    Returns Buffer

Generated using TypeDoc