Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/util/encryption"

Index

Functions

HKDF

  • HKDF(hashAlg: string, salt: Buffer, ikm: Buffer, info: Buffer, size: number): Buffer

computePoly1305

  • computePoly1305(cipherText: Buffer, AAD: Buffer, nonce: Buffer, key: Buffer): Buffer

encryptAndSeal

  • encryptAndSeal(plainText: Buffer, AAD: Buffer, nonce: Buffer, key: Buffer): Buffer[]

getPadding

  • getPadding(buffer: any, blockSize: any): Buffer

verifyAndDecrypt

  • verifyAndDecrypt(cipherText: Buffer, mac: Buffer, AAD: Buffer, nonce: Buffer, key: Buffer): Buffer

Generated using TypeDoc