Options
All
  • Public
  • Public/Protected
  • All
Menu

A helper class for calculating and verifying SHA256 signatures

Hierarchy

  • SHA256Calculator

Index

Methods

calculateSignature

  • calculateSignature(data: ArrayBuffer): ArrayBuffer

compareSignatures

  • compareSignatures(sig1: ArrayBuffer, sig2: ArrayBuffer): boolean
  • Compare two signatures for equality. The comparison only occurs for the length of sig1, so if sig1 is a truncated version of sig2, the comparison will return true.

    Parameters

    • sig1: ArrayBuffer

      The signature to check against sig2

    • sig2: ArrayBuffer

      The (possibly extended) signature to compare sig1 against

    Returns boolean

    true if sig1 is a prefix of sig2, false otherwise

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc