| 标准 | RFC 7748 |
|---|---|
| 密钥长度 | 32 字节 |
| 安全强度 | 约 128 位 |
| 典型用途 | TLS 1.3 默认组、WireGuard、SSH 密钥交换 |
生成 X25519 密钥对
生成 X25519 密钥对
openssl genpkey -algorithm X25519 -out x.key
openssl pkey -in x.key -pubout -out x.pub
openssl pkey -in x.key -text -noout | Select-String 'Public-Key'X25519 只用于密钥协商,签名要用 Ed25519;两者可以基于同一随机种子派生(RFC 8410 约定),但用途必须分开。