← Cryptography guide

K043 / Asymmetric encryption, signatures and key exchange

DSA

Digital Signature Algorithm · Survey date 2026-12-05

DSA is a public-key system for digital signatures and a federal standard.

CRYPTOGRAPHY LAB / K043

Cryptography Lab · DSA

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: Toy educational example

DSA sign + verify (toy p=23,q=11,g=4)

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

Open lab →

Definition and overview
DSA is a public-key system for digital signatures and a federal standard. Source document ↗
Classification and reversibility
Signature-only algorithm, not general encryption or key agreement; verification differs from decryption. Source document ↗
Key or secret requirements
Private/public key pair; sign privately, verify publicly. Source document ↗
Operating principle and structure
Three stages: key generation, signing, verification. Source document ↗
Key size, block size and parameters
Domain parameters L (modulus bits), N (subgroup bits), e.g. L=1024,N=160. Source document ↗
Security strength and recommendation
FIPS 186-5 removed DSA for new signing, retaining legacy verification only. Source document ↗
Known attacks and vulnerabilities
1024-bit DSA keys may be vulnerable to discrete-log attacks. Source document ↗
Standards and certification
Finite-field discrete-log signature standardized in NIST FIPS 186 series. Source document ↗
Typical uses
Verify signature origin and integrity with public key. Source document ↗
Implementations, libraries and tools
Chilkat and similar libraries support key generation/import/export/sign/verify. Source document ↗
Decryption or decoding
Accept/reject by public-key signature verification, not decryption. Source document ↗
Advantages
Produces small publicly verifiable signatures. Source document ↗
Limitations and cautions
Retired/legacy; avoid in new designs and migrate to alternatives. Source document ↗
Distinguishing encryption, encoding and hashing
Signing/verification only, not encryption/decryption or encoding/decoding; provides no confidentiality. Source document ↗

Practical examples

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

Example

Sign message with private key; recipient accepts/rejects using message, signature and public key. Use separate encryption for confidentiality.

Procedure

Generate key pair, hash message and sign privately, verify publicly. Public-key encryption uses public key to encrypt/private key to decrypt; Base64 is format encoding. DSA verification is neither.

Scenario

Verify provenance/integrity of software and documents, maintain legacy DSA verification; migrate to alternative signing in new designs.

Pitfalls and alternatives

Do not confuse DSA with encryption or encoding; consider ECDSA/EdDSA or PQC standards for new systems. Avoid 1024-bit legacy keys, nonce k reuse and weak domain validation.

References