as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

KeyDerivationContext

Represents a context for performing key derivation operations.

Extends

  • BaseCryptoClass

Methods

deriveBits()

deriveBits(length): Promise<ArrayBuffer>

Derive bits from the input keying material.

Parameters

length

number

The length of the derived key in bytes.

Returns

Promise<ArrayBuffer>

A promise that resolves to the derived key as an ArrayBuffer.


deriveKey()

deriveKey(length): Promise<SymmetricKey>

Derive a symmetric key from the input keying material.

Parameters

length

number

The length of the symmetric key in bytes.

Returns

Promise<SymmetricKey>

A promise that resolves to the derived symmetric key.


Last updated: Sep 30, 2025