UNPKG

ts-mls

Version:

[![CI](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml/badge.svg)](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/ts-mls.svg)](https://badge.fury.io/js/ts-mls) [![Coverage Status](https://co

8 lines (7 loc) 404 B
export type HashAlgorithm = "SHA-512" | "SHA-384" | "SHA-256"; export interface Hash { digest(data: Uint8Array): Promise<Uint8Array>; mac(key: Uint8Array, data: Uint8Array): Promise<Uint8Array>; verifyMac(key: Uint8Array, mac: Uint8Array, data: Uint8Array): Promise<boolean>; } export declare function refhash(label: string, value: Uint8Array, h: Hash): Promise<Uint8Array<ArrayBufferLike>>;