← Cryptography guide

K042 / Asymmetric encryption, signatures and key exchange

Ed25519

EdDSA Ed25519 · Survey date 2026-12-05

EdDSA is a digital signature scheme instantiated with Ed25519 or Ed448 parameters.

CRYPTOGRAPHY LAB / K042

Cryptography Lab · Ed25519

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Standard operation

Ed25519 sign + verify (RFC 8032, pure Ed25519)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Reference ↗

Open lab →

Definition and overview
EdDSA is a digital signature scheme instantiated with Ed25519 or Ed448 parameters. Source document ↗
Classification and reversibility
Digital signature, not encryption or encoding/decoding. Source document ↗
Key or secret requirements
Requires private key (seed/integer) and public EC point derived as private scalar × G. Source document ↗
Operating principle and structure
Hash/process 32-byte seed to scalar; public key scalar×B; signature has two 32-byte values R,S. Source document ↗
Key size, block size and parameters
32-byte public key and 64-byte signature. Source document ↗
Security strength and recommendation
Best classical attack Pollard rho about 2^126; quantum Shor vulnerability. Source document ↗
Known attacks and vulnerabilities
Implementation/API misuse can expose private keys if public/private correspondence is unchecked (Chalkias attack). Source document ↗
Standards and certification
Standard signature in RFC 8032 and NIST FIPS 186-5 (2023). Source document ↗
Typical uses
Ed25519/Ed448 signatures in SSH. Source document ↗
Implementations, libraries and tools
JavaScript noble-ed25519 claims RFC 8032/FIPS 186-5 compliance. Source document ↗
Decryption or decoding
Verify signature with public key; no decryption or decoding. Source document ↗
Advantages
High performance, no unique random value per signature, small keys/signatures, side-channel and collision resistance. Source document ↗
Limitations and cautions
Skipping public/private key correspondence checks in signature APIs risks private-key leakage. Source document ↗
Distinguishing encryption, encoding and hashing
EdDSA/Ed25519 are signatures; Ed448 is a distinct signature method, not encryption/hash/encoding. Source document ↗

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

Generate test key pair, sign message with Ed25519, verify publicly. Do not show real secret key/seed; use test vectors or disposable keys.

Procedure

Generate key pair from seed, sign with private key; verify using public key, message and signature. No decryption/decoding or recovery of original.

Scenario

SSH authentication, software/package signing and JWT signing need public verification. Delegate key generation/sign/verify to libraries; check matching public keys and test vectors.

Pitfalls and alternatives

Do not confuse with encryption/hash/encoding. Skipped correspondence checks risk Chalkias attack; evaluate large-message handling and quantum vulnerability, follow key-management and standard profiles.

References