KeyAgreement.calculateSecret

ubyte[] calculateSecret(PublicKey publicKey)

Calculates the shared secret using the peer's public key.

Parameters

publicKeyThe peer's public key.

Returns

The generated shared secret.