Expand description
X25519 related types and methods used in Diffie-Hellman key exchange.
Structs§
- Curve25519 public key used in key exchange. This key cannot be directly generated and can only be converted from Ed25519
PublicKey
. - Curve25519 secret key used in key exchange. This key cannot be directly generated and can only be converted from Ed25519
SecretKey
.
Constants§
- Length of the public Curve25519 key.
- Length of the secret Curve25519 key.
Functions§
- Converts an arbitrary array of data to the Curve25519-compatible private key.
- Converts Ed25519 keys to Curve25519.
- Converts Ed25519 public key to Curve25519 public key.
- Calculates the scalar multiplication for X25519.
- Calculates the public key based on private key for X25519.