Interface IGcmContextBuilder
interface IGcmContextBuilder
Extends ICipherContextBuilder
Interface for building GCM (Galois/Counter Mode) cipher contexts.
Methods
additionalData()
Specify additional authentication data (AAD) to be included in the GCM context.IGcmContextBuilder*additionalData(u8[]data)
Parameters
data
u8[] — Required
The additional data to include.
Returns
IGcmContextBuilder*
The GCM context builder object.
tagLength()
Specify the desired length of the authentication tag. This parameter is optional.IGcmContextBuilder*tagLength(i32len)
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()
Specify the initialization vector (IV) to use. This parameter is mandatory.IGcmContextBuilder*iv(u8[]iv)
Parameters
iv
u8[] — Required
The initialization vector to use.
Returns
IGcmContextBuilder*
The GCM context builder object.

