@confluentinc/schemaregistry
Version:
Node.js client for Confluent Schema Registry
21 lines (20 loc) • 630 B
TypeScript
/**
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { Aead } from './aead';
/**
* Implementation of AES-SIV.
*
*/
export declare class AesSiv extends Aead {
private readonly key;
constructor(key: Uint8Array<ArrayBuffer>);
/**
*/
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>;