Class AesGcmParams

AES-GCM parameters

Hierarchy (view full)

Implements

Constructors

Properties

Methods

Constructors

  • Creates a new instance of AesGcmParams

    Parameters

    • iv: Buffer

      The initialization vector

    • aad: Buffer = ...

      The additional authentication data

    • tagBits: number = 128

      The length of authentication tag (output following cipher text) in bits. Can be any value between 0 and 128

    Returns AesGcmParams

Properties

aad: Buffer

The additional authentication data. This data is authenticated but not encrypted.

iv: Buffer

Initialization vector

  • The length of the initialization vector can be any number between 1 and 256. 96-bit (12 byte) IV values can be processed more efficiently, so that length is recommended for situations in which efficiency is critical.
tagBits: number

The length of authentication tag (output following cipher text) in bits. Can be any value between 0 and 128. Default 128

type: MechParams = MechParams.AesGCM

Methods

Generated using TypeDoc