Org.BouncyCastle.Crypto.Agreement.X25519Agreement
X25519 (RFC 7748) Diffie-Hellman raw agreement. Init takes the local
X25519PrivateKeyParameters; CalculateAgreement
writes the 32-byte shared secret derived against the peer's
X25519PublicKeyParameters.
Length in bytes of the shared secret produced by the agreement (32).
public X25519Agreement()
Perform the agreement against publicKey and write the shared secret into
buf starting at off.
Span-based overload of CalculateAgreement.
Capture the local private key used for subsequent agreements.