UNPKG

tink-crypto

Version:

A multi-language, cross-platform library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.

24 lines (23 loc) 654 B
/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { Aead } from '../aead/internal/aead'; /** * A helper for DEM (data encapsulation mechanism) of ECIES-AEAD-HKDF. */ export interface EciesAeadHkdfDemHelper { /** * @return the size of the DEM key in bytes */ getDemKeySizeInBytes(): number; /** * Creates a new `Aead` primitive that uses the key material given in * `demKey`, which must be of length `getDemKeySizeInBytes()`. * * @param demKey the DEM key. * @return the newly created `Aead` primitive. */ getAead(demKey: Uint8Array): Promise<Aead>; }