UNPKG

@confluentinc/schemaregistry

Version:
21 lines (20 loc) 526 B
/** * 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); /** */ encrypt(plaintext: Uint8Array, associatedData?: Uint8Array): Promise<Uint8Array>; /** */ decrypt(ciphertext: Uint8Array, associatedData?: Uint8Array): Promise<Uint8Array>; } export declare function fromRawKey(key: Uint8Array): Promise<Aead>;