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
Represents a context for performing key derivation operations.

Extends

  • BaseCryptoClass

Constructors

new KeyDerivationContext()

new KeyDerivationContext(): KeyDerivationContext

Returns

KeyDerivationContext

Methods

deriveBits()

deriveBits(length: number): Promise<ArrayBuffer> Derive bits from the input keying material.

Parameters

length
number The length of the derived key in bytes. Promise A promise that resolves to the derived key as an ArrayBuffer.

Returns

Promise<ArrayBuffer>

deriveKey()

deriveKey(length: number): Promise<SymmetricKey> Derive a symmetric key from the input keying material.

Parameters

length
number The length of the symmetric key in bytes. Promise A promise that resolves to the derived symmetric key.

Returns

Promise<SymmetricKey>
Last modified on July 22, 2026