blob: 709a60d4df3cab11cc788905d4e0143574992485 [file] [log] [blame]
/**
* @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>;
}