Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Cryptography

Index

Constructors

Methods

Constructors

constructor

Methods

Static HMAC

  • HMAC(key: Buffer, data: Buffer): Buffer
  • Creates a Hash Message Authentication Code.

    This method uses SHA512 algorithm and create-hmac dependency for the MAC generation.

    Parameters

    • key: Buffer
    • data: Buffer

    Returns Buffer

Static KMAC

  • KMAC(key: Buffer, data: Buffer, publicSalt: undefined | Buffer): Buffer
  • Creates a Keccak Message Authentication Code.

    internal

    This method is used internally for key derivation

    Parameters

    • key: Buffer
    • data: Buffer
    • publicSalt: undefined | Buffer

    Returns Buffer

Static hash160

  • hash160(buffer: Buffer): Buffer

Generated using TypeDoc