Org.BouncyCastle.Crypto.Parameters.X25519PrivateKeyParameters
X25519 private key (RFC 7748). Holds the 32-byte clamped scalar used in Curve25519
Diffie-Hellman.
Length in bytes of an X25519 private-key scalar (32).
Length in bytes of the shared secret produced by an X25519 agreement (32).
Generate a fresh random X25519 private key using random.
Construct from a 32-byte scalar buffer.
Read the 32-byte scalar from input.
Write the 32-byte scalar into buf at off.
Compute the public key (u-coordinate) corresponding to this scalar.
Perform an X25519 Diffie-Hellman agreement against publicKey and write the
resulting SecretSize-byte shared secret into buf starting at
off.
Return a fresh copy of the 32-byte scalar.