UNPKG

@confluentinc/schemaregistry

Version:
21 lines (20 loc) 616 B
/** * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { Aead } from './aead'; /** * Implementation of AES-GCM. * */ export declare class AesGcm extends Aead { private readonly key; constructor(key: CryptoKey); /** */ encrypt(plaintext: Uint8Array<ArrayBuffer>, associatedData?: Uint8Array<ArrayBuffer>): Promise<Uint8Array<ArrayBuffer>>; /** */ decrypt(ciphertext: Uint8Array<ArrayBuffer>, associatedData?: Uint8Array<ArrayBuffer>): Promise<Uint8Array<ArrayBuffer>>; } export declare function fromRawKey(key: Uint8Array<ArrayBuffer>): Promise<Aead>;