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.

15 lines (14 loc) 452 B
/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** Interface for private keys for Key Encapsulation Mechanism (KEM) */ export interface HpkeKemPrivateKey { /** Gets the serialized KEM public key. */ getSerializedPublicKey(): Promise<Uint8Array>; /** Access to the KEM private key. */ readonly privateKey: CryptoKey; /** Access to the KEM public key. */ readonly publicKey: CryptoKey; }