as

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

EcdhKeyExchangeContext

Represents a context for performing ECDH key exchange operations.

Extends

  • BaseCryptoClass

Methods

computeSharedSecret()

computeSharedSecret(peerPublicKey): Promise<ArrayBuffer>

Compute the shared secret using the provided public key. This method uses the private key associated with this context.

Parameters

peerPublicKey

PublicKey

The public key of the peer.

Returns

Promise<ArrayBuffer>

A promise that resolves to the computed shared secret as an ArrayBuffer.


Last updated: Sep 30, 2025