Comment on page
Ed25519 to X25519
- When you are forced to use the same key pair for key exchange and signing due to resource constraints (unlikely if using this library but possible on embedded devices).
- When you only have access to signing keys.
It is bad practice to reuse the same key for different purposes. Please generate separate Ed25519 and X25519 key pairs unless your circumstances match the above.
Fills a span with the X25519 public key for a given Ed25519 public key.
Ed25519.GetX25519PublicKey(Span<byte> x25519PublicKey, ReadOnlySpan<byte> ed25519PublicKey)
x25519PublicKeyhas a length not equal to
ed25519PublicKeyhas a length not equal to
The X25519 public key could not be computed.
Fills a span with the X25519 private key for a given Ed25519 private key.
Ed25519.GetX25519PrivateKey(Span<byte> x25519PrivateKey, ReadOnlySpan<byte> ed25519PrivateKey)
x25519PrivateKeyhas a length not equal to
ed25519PrivateKeyhas a length not equal to
The X25519 private key could not be computed.