Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
Provides support for building GCM (Galois/Counter Mode) cipher contexts.

Extends

Accessors

additionalData

Set Signature

set additionalData(data): void Specify additional authentication data (AAD) to be included in the GCM context.
Remarks
This parameter is optional.
Parameters
data
ArrayBuffer The additional data to include.
Returns
void

iv

Set Signature

set iv(iv): void Specify the initialization vector (IV) to use. Use a 4-byte array when intending to use a randomized sequence of nonces (the IV is used as an identifier to differentiate the sequence). Otherwise, set it with an array of length equal to the value returned by the ivSize() API (in that case the IV is used as an arbitrary nonce).
Remarks
This parameter is mandatory.
Parameters
iv
ArrayBuffer The initialization vector to use.
Returns
void
Last modified on October 2, 2025