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 CTR (Counter) mode cipher contexts.

Extends

Accessors

count

Set Signature

set count(count): void Specify the initial counter value for the CTR mode.
Remarks
This parameter is mandatory.
Throws
InvalidArgumentError If the counter value is invalid.
Parameters
count
bigint The initial counter value to use.
Returns
void

key

Set Signature

set key(key): void Specify the symmetric key to be used for encryption or decryption.
Remarks
This parameter is mandatory.
Parameters
key
SymmetricKey The symmetric key to use.
Returns
void

Inherited from

CipherContextBuilder.key
Last modified on October 2, 2025