Skip to content

libsodium.PKI.SharedSecret.Constructor

Andrew Lambert edited this page Jan 21, 2023 · 8 revisions

Method Signatures

 Sub Constructor(RecipientPublicKey As libsodium.PKI.PublicKey, SenderPrivateKey As libsodium.PKI.EncryptionKey)

Parameters

Name Type Comment
RecipientPublicKey PublicKey The public half of the recipient's key pair.
SenderPrivateKey EncryptionKey The sender's key pair.

Remarks

Derives a shared key from the public half of the recipient's key and the private half of the sender's key using an Elliptic Curve Diffie-Hellman (ECDH) key exchange over the Curve25519 curve.

Clone this wiki locally