| 标准 | RFC 8032 |
|---|---|
| 曲线 | edwards25519 |
| 公钥 / 签名 | 32 字节 / 64 字节 |
| 特点 | 确定性签名、无需随机数、实现简洁 |
生成与签名(OpenSSL)
生成与签名(OpenSSL)
openssl genpkey -algorithm ED25519 -out ed.key
openssl pkey -in ed.key -pubout -out ed.pub
openssl pkeyutl -sign -inkey ed.key -rawin -in data.bin -out sig.bin
openssl pkeyutl -verify -pubin -inkey ed.pub -rawin -in data.bin -sigfile sig.binOpenSSL 对 Ed25519 使用 pkeyutl 的 -rawin 方式(一次性哈希整个输入),不支持流式多段签名。