@confluentinc/schemaregistry
Version:
Node.js client for Confluent Schema Registry
21 lines (20 loc) • 525 B
TypeScript
/**
* 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, associatedData?: Uint8Array): Promise<Uint8Array>;
/**
*/
decrypt(ciphertext: Uint8Array, associatedData?: Uint8Array): Promise<Uint8Array>;
}
export declare function fromRawKey(key: Uint8Array): Promise<Aead>;