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) 434 B
import { CiphersuiteImpl } from "./crypto/ciphersuite.js"; import { PreSharedKeyID } from "./presharedkey.js"; export interface PskIndex { findPsk(preSharedKeyId: PreSharedKeyID): Uint8Array | undefined; } export declare const emptyPskIndex: PskIndex; export declare function accumulatePskSecret(groupedPsk: PreSharedKeyID[], pskSearch: PskIndex, cs: CiphersuiteImpl, zeroes: Uint8Array): Promise<[Uint8Array, PreSharedKeyID[]]>;