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
Native
Skip to main content

Interface IGcmContextBuilder

interface IGcmContextBuilder
Extends ICipherContextBuilder Interface for building GCM (Galois/Counter Mode) cipher contexts.

Methods

additionalData()

IGcmContextBuilder* additionalData(u8[] data)
Specify additional authentication data (AAD) to be included in the GCM context.

Parameters

data
u8[] — Required The additional data to include.

Returns

IGcmContextBuilder* The GCM context builder object.

tagLength()

IGcmContextBuilder* tagLength(i32 len)
Specify the desired length of the authentication tag. This parameter is optional.

Parameters

len
i32 — Required The length of the authentication tag.

Returns

IGcmContextBuilder* The GCM context builder object.

getIvSize()

i32 getIvSize()
Get the size of the initialization vector (IV) for the GCM cipher.

Returns

i32 The size of the IV.

iv()

IGcmContextBuilder* iv(u8[] iv)
Specify the initialization vector (IV) to use. This parameter is mandatory.

Parameters

iv
u8[] — Required The initialization vector to use.

Returns

IGcmContextBuilder* The GCM context builder object.
Last modified on October 29, 2026