as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Represents a context for performing ECDH key exchange operations.

Extends

  • BaseCryptoClass

Constructors

new EcdhKeyExchangeContext()

new EcdhKeyExchangeContext(): EcdhKeyExchangeContext

Returns

EcdhKeyExchangeContext

Methods

computeSharedSecret()

computeSharedSecret(peerPublicKey: PublicKey): 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. Promise<ArrayBuffer> A promise that resolves to the computed shared secret as an ArrayBuffer.

Returns

Promise<ArrayBuffer>
最后修改于 2026年8月25日