A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Digital Signatures

Graduate Depth 98 in the knowledge graph ☐ I know this ☆ Set as goal
3topics build on this
527prerequisites beneath it
See this on the map →
Hash Functions and Collision ResistanceThe RSA Cryptosystem→→Blockchain Consensus CryptographyPublic Key Infrastructure+1 more
digital-signature non-repudiation rsa-pss dsa euf-cma

Core Idea

A digital signature scheme lets a signer with a private key produce a signature on a message that anyone with the corresponding public key can verify. Unlike MACs, signatures provide non-repudiation: the signer cannot deny having signed because only they possess the private key. Security requires existential unforgeability under chosen-message attack (EUF-CMA). RSA-PSS, DSA, and ECDSA are the main schemes. Signatures are applied to message hashes (not raw messages) for efficiency and to prevent algebraic attacks. They are foundational to PKI, code signing, certificates, and blockchain transactions.

Explainer

A digital signature is the public-key analog of a handwritten signature: it binds a message to the identity of the signer in a way that anyone can verify but only the signer can produce. A signature scheme consists of three algorithms: key generation (produce a public-private key pair), signing (use the private key to compute a signature on a message), and verification (use the public key to check whether a signature is valid). The security goal is EUF-CMA (existential unforgeability under chosen-message attack): an adversary who can obtain signatures on any messages of their choosing still cannot forge a valid signature on any new message.

The simplest conceptual scheme is RSA signatures. The signer computes s = H(m)d mod n, where d is the private key and H is a cryptographic hash. The verifier checks that se mod n = H(m), where e is the public key. Hashing is essential for two reasons: it compresses the message to a fixed size for the RSA operation, and it prevents algebraic forgery attacks that exploit RSA's multiplicative homomorphism. In practice, RSA-PSS adds randomized padding to the hash before signing, providing a tighter security proof. DSA and ECDSA use a different approach based on discrete logarithms in a prime-order group (or elliptic curve group), where the signature is a pair (r, s) computed using the private key and a per-signature random nonce.

The nonce in DSA/ECDSA is a critical security parameter. If the same nonce is ever reused for two different messages, the private key can be algebraically recovered from the two signatures. This is not a theoretical curiosity — Sony's PlayStation 3 ECDSA implementation used a constant nonce, allowing hackers to recover the signing key and run unauthorized software. Deterministic signatures (Ed25519, or ECDSA with RFC 6979) eliminate nonce-related risks by deriving the nonce deterministically from the private key and the message, ensuring it is unique per message without relying on a random number generator.

The most transformative application of digital signatures is Public Key Infrastructure (PKI), the trust system underlying HTTPS. A certificate authority (CA) signs a binding between a domain name and a public key, producing a certificate. When your browser connects to a website, it verifies the certificate's signature using the CA's public key (which is pre-installed in the browser's trust store). If the signature checks out, the browser trusts that the public key belongs to the claimed domain and proceeds with a DH key exchange. This chain of trust — from CA to certificate to session key — is what makes secure web browsing possible. It also creates a concentration of trust: a compromised CA can forge certificates for any domain, which is why the security of CAs is one of the most critical (and fragile) aspects of internet infrastructure.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Two-Way Finite Automata → NFA to DFA Conversion (Subset Construction) → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Pushdown Automata (PDA) → Equivalence of CFGs and Pushdown Automata → Closure Properties of Context-Free Languages → Limitations of Context-Free Languages → Pumping Lemma for Context-Free Languages → Turing Machines → Variants of Turing Machines and Equivalence → Nondeterministic Time Complexity and NP → The P vs. NP Problem → Complexity Class P: Polynomial Time → Hash Functions and Collision Resistance → The RSA Cryptosystem → Digital Signatures

Longest path: 99 steps · 527 total prerequisite topics

Prerequisites (2)

Leads To (3)