ReadonlyPRIVATE_Private key length in bytes.
ReadonlyPUBLIC_Public key length in bytes.
32 random bytes from options.rng (default secure), unvalidated; the
reference's x25519_new_private_key_using (random_data). A generator's
own error, including rand's InvalidGenerator, propagates unwrapped.
Optionaloptions: RngOptionsX25519 Diffie-Hellman, then HKDF-SHA-256 with salt "agreement" → 32 bytes
(the reference's x25519_shared_key). A low-order publicKey (RFC 7748
§6.1) gives the all-zero shared secret and so one fixed key, whatever the
private key: the reference calls x25519-dalek's diffie_hellman without
checking was_contributory, and neither does this. Reject such peers
yourself before deriving from an untrusted key.
The shape of the x25519 family.