Skip to main content

Function: aesEncryptGCM()

aesEncryptGCM(plaintext, key, iv, additionalData): Buffer<ArrayBuffer>

Defined in: src/Utils/crypto.ts:57

encrypt AES 256 GCM; where the tag tag is suffixed to the ciphertext

Parameters

plaintext

Uint8Array

key

Uint8Array

iv

Uint8Array

additionalData

Uint8Array

Returns

Buffer<ArrayBuffer>