Swap-Aggregator-Subgraph/node_modules/asmcrypto.js/dist_es8/aes/gcm.d.ts
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

20 lines
924 B
TypeScript
Executable File

import { AES } from './aes';
export declare class AES_GCM extends AES {
private readonly tagSize;
private readonly adata;
private readonly gamma0;
private counter;
static encrypt(cleartext: Uint8Array, key: Uint8Array, nonce: Uint8Array, adata?: Uint8Array, tagsize?: number): Uint8Array;
static decrypt(ciphertext: Uint8Array, key: Uint8Array, nonce: Uint8Array, adata?: Uint8Array, tagsize?: number): Uint8Array;
constructor(key: Uint8Array, nonce: Uint8Array, adata?: Uint8Array, tagSize?: number);
encrypt(data: Uint8Array): Uint8Array;
decrypt(data: Uint8Array): Uint8Array;
AES_GCM_Encrypt_process(data: Uint8Array): Uint8Array;
AES_GCM_Encrypt_finish(): Uint8Array;
AES_GCM_Decrypt_process(data: Uint8Array): Uint8Array;
AES_GCM_Decrypt_finish(): Uint8Array;
private AES_GCM_decrypt;
private AES_GCM_encrypt;
_gcm_mac_process(data: Uint8Array): void;
}