Skip to content
ContentLora

    Tip: press / anywhere to search.

    Explainer

    How digital signatures work

    A digital signature is the electronic counterpart of a handwritten signature: it gives assurance that the claimed signer signed some data and shows whether the data was changed afterwards.[1] The signer uses a private key that only they control, and anyone can check the signature with the matching public key.[2] Today's standard algorithms, RSA, ECDSA and EdDSA, are not expected to resist a large quantum computer, so NIST has published replacements and plans to retire the old algorithms after 2030.[3][4][5][6]

    Editor reviewedUpdated Explainer21 claims · 100% primaryPost-quantum cryptography and security, Cybersecurity
    Reading level: 6 passages differ; the rest is the same for everyone.

    This page explains the cryptography of digital signatures and summarises how EU and US law treats electronic signatures. It is not legal advice; check the rules that apply to your document or contract. Choose a reading level in each section.

    What a digital signature does

    A digital signature does for electronic data what a handwritten signature does on paper, and a bit more. It shows that a particular person or organisation signed something. It also reveals whether anyone changed the data after it was signed.[1]

    NIST lists four things signatures provide: proof of identity, proof the data is intact, proof of where it came from, and support for non-repudiation, meaning the signer can’t easily deny signing.[7]

    FIPS 186-5 frames a digital signature as an electronic analogue of a written signature that assures the claimed signatory signed the data and detects modification after signing.[1] NIST describes the services as identity authentication, integrity authentication, source authentication and support for non-repudiation. Signatures are paired with hash functions or XOFs to handle messages of arbitrary length.[7] A signed recipient can also use the signature as evidence to a third party that the claimed signatory produced it.[8]

    How signing and verifying work

    Every signer has a pair of keys. The private key makes signatures, and only its owner is supposed to use it. The public key checks signatures. It does not need to be secret, so anyone can use it to verify a signed message.[2]

    Most signature methods do not sign the whole document. They first run it through a hash function to get a short fingerprint, and sign that.[9] If even one character of the document changes, the fingerprint no longer matches and the signature fails.[10]

    In FIPS 186-5 the key-pair owner is the only entity authorised to use the private key. The public key must have integrity but not secrecy, and anyone can verify using the message digest and the public key.[2] For RSA, ECDSA and HashEdDSA the message is reduced to a fixed-length digest with an approved hash first, while pure EdDSA takes the message itself as input.[9] ECDSA additionally needs a fresh random per-message secret, which EdDSA and RSA do not.[11]

    Why certificates matter

    A valid signature only proves that someone holding a certain private key signed the data. It does not by itself prove who that someone is. Anyone can make a key pair and claim to be someone else. To trust a signature, you need to know the public key really belongs to the person named, which is what digital certificates from a public key infrastructure are for.[12]

    FIPS 186-5 notes that without assurance of key ownership, forging a signature reduces to falsely claiming an identity. That assurance requires binding the owner’s identity to the public key, as in a certificate issued from a PKI.[12] PKIs therefore have to move to post-quantum algorithms too: NIST says PKI components must be updated to issue and manage certificates that use PQC algorithms, and to sign certificates and revocation information with them.[13]

    The standard algorithms

    NIST’s signature standard, FIPS 186-5, published in February 2023, approves three methods: RSA, and two elliptic-curve methods called ECDSA and EdDSA. The older DSA method can now only be used to check old signatures.[3] RSA and elliptic-curve cryptography explained covers the maths behind them.

    FIPS 186-5 (3 February 2023) approves RSA as specified in RFC 8017, ECDSA, and EdDSA as specified in RFC 8032. DSA is retained only for verifying existing signatures.[3] New RSA signature applications must use RSASSA-PSS under PKCS #1 v2.2.[14] EdDSA is instantiated over edwards25519 and edwards448.[15]

    Electronic signatures in law

    Laws use “electronic signature” for more than cryptographic signatures.[16][17] US federal law counts an electronic sound, symbol or process as a signature if a person adopts it intending to sign.[16] Since 2000, US law has said a signature or contract in interstate commerce can’t be refused legal effect just because it is electronic.[18]

    The EU’s eIDAS Regulation has three levels. At its simplest, an electronic signature is any electronic data used to sign.[17] An advanced signature must identify the signer and show if the data changes.[19] A qualified signature adds a certified device and certificate, and counts the same as a handwritten signature across the EU.[20]

    15 U.S.C. 7006 defines an electronic signature as an electronic sound, symbol or process attached to or logically associated with a record and adopted with intent to sign.[16] Section 7001, enacted 30 June 2000, bars denying legal effect to signatures, contracts and records in interstate or foreign commerce solely because they are electronic.[18] eIDAS (Regulation 910/2014) defines an electronic signature broadly.[17] Article 26 requires an advanced signature to be uniquely linked to and capable of identifying the signatory, created with data under the signatory’s sole control, and linked to the data so that later changes are detectable.[19] A qualified signature is an advanced signature from a qualified creation device based on a qualified certificate. It has the legal effect of a handwritten signature and is recognised in all member states.[20]

    Signatures after quantum computers

    FIPS 186-5 itself warns that its algorithms are not expected to hold up against a large-scale quantum computer.[4] NIST has published two quantum-resistant replacements, ML-DSA and SLH-DSA, and is working on a third.[5] It plans to deprecate today’s signature algorithms after 2030 and disallow them after 2035.[6]

    FIPS 186-5 states that its algorithms are not expected to resist a large-scale quantum computer.[4] The replacements are FIPS 204 (ML-DSA, from CRYSTALS-Dilithium) and FIPS 205 (SLH-DSA, from SPHINCS+), with a FALCON-derived FIPS in development.[5] IR 8547 (October 2026) deprecates all quantum-vulnerable signature algorithms after 2030 and disallows them after 2035. The most sensitive federal systems must adopt PQC signatures by 31 December 2031.[6][21]

    Next in the crash course

    RSA and elliptic-curve cryptography explained

    How RSA and elliptic-curve cryptography work, why key sizes differ, where they are used, and NIST's plan to retire both after 2030 because of quantum risk.

    More in Post-quantum crypto

    Developing in AI & Computing

    Go deeper

    Questions readers ask

    What does a digital signature prove?

    It gives assurance that the claimed signatory signed the data and can show whether the data was modified after signing. NIST adds that signatures support identity, integrity and source authentication and non-repudiation.[1][7]

    Is a digital signature the same as an electronic signature?

    Not quite. In law, an electronic signature can be any electronic sound, symbol or process adopted with intent to sign (US) or electronic data used by the signatory to sign (EU). A digital signature is a specific cryptographic technique that uses a key pair.[16][17][2]

    Why do signatures use hash functions?

    For RSA, ECDSA and HashEdDSA, the message is first condensed into a fixed-length digest with an approved hash function, and the digest is what gets signed. Plain EdDSA signs the message directly.[9]

    How do I know a public key really belongs to the signer?

    The signature maths alone cannot tell you. NIST says that assurance requires the owner's identity and public key to be bound together, for example in a certificate issued by a public key infrastructure.[12]

    Are e-signatures legally binding?

    In the EU, a qualified electronic signature has the same legal effect as a handwritten one, and no electronic signature can be refused legal effect solely for being electronic. In the US, ESIGN says a signature or contract in interstate commerce cannot be denied legal effect solely because it is electronic. Other rules can still apply, so check the law that governs your document.[20][18]

    What happens to digital signatures when quantum computers arrive?

    FIPS 186-5 says its algorithms are not expected to resist a large-scale quantum computer. NIST has published ML-DSA and SLH-DSA as quantum-resistant replacements and plans to deprecate the current signature algorithms after 2030 and disallow them after 2035.[4][5][6]

    Sources

    · 21 claims from 5 publishers

    Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.

    1. [1]

      FIPS 186-5 describes a digital signature as an electronic analogue of a written signature that gives assurance the claimed signatory signed the information and can detect whether the information was changed after it was signed. confirmedas of 2023-02-03

    2. [2]

      In FIPS 186-5, each signatory has a key pair; the private key generates signatures and only its owner is authorised to use it, while the public key, which need not be kept secret but must keep its integrity, lets anyone verify a correctly signed message. confirmedas of 2023-02-03

    3. [3]

      FIPS 186-5, published on 3 February 2023, approves three signature techniques - RSA (as specified in RFC 8017), ECDSA and EdDSA (as specified in RFC 8032) - and no longer specifies the older DSA, which may only be used to verify existing signatures. confirmedas of 2023-02-03

    4. [4]

      FIPS 186-5 states that its signature algorithms are not expected to resist attacks from a large-scale quantum computer. confirmedas of 2023-02-03

    5. [5]

      NIST's quantum-resistant signature standards are FIPS 204 (ML-DSA, derived from CRYSTALS-Dilithium) and FIPS 205 (SLH-DSA, derived from SPHINCS+), and as of October 2026 NIST was developing a further signature standard derived from FALCON. confirmedas of 2026-10-27

    6. [6]

      In its final IR 8547, NIST says it will deprecate quantum-vulnerable public-key cryptography after 2030 and disallow its use under NIST standards and guidelines after 2035; for signatures this covers all quantum-vulnerable algorithms, instead of the earlier projection that 112-bit public-key schemes would be disallowed on 1 January 2031. confirmedas of 2026-10-27

    7. [7]

      NIST says digital signature algorithms provide identity authentication, integrity authentication, source authentication and support for non-repudiation, and are used together with hash functions or extendable-output functions to sign messages of any length. confirmedas of 2026-10-27

    8. [8]

      Digital signatures are used to detect unauthorised changes to data and to authenticate who signed it, and can give a recipient evidence that the claimed signatory really produced the signature. confirmedas of 2023-02-03

    9. [9]

      For RSA, ECDSA and HashEdDSA signatures, FIPS 186-5 has the message first converted into a fixed-length digest by an approved hash function; plain EdDSA signs the message without hashing it first. confirmedas of 2023-02-03

    10. [10]

      FIPS 180-4 says its hash algorithms are iterative, one-way functions, and that any change to a message will, with very high probability, produce a different digest, which is what makes them useful for digital signatures and message authentication codes. confirmedas of 2015-08-04

    11. [11]

      Under FIPS 186-5, ECDSA needs a random per-message secret number for each signature, which EdDSA and RSA do not require. confirmedas of 2023-02-03

    12. [12]

      FIPS 186-5 says a verifier can only be assured that a signature belongs to the claimed signatory if the owner's identity and public key are bound together, for example in a certificate issued by a public key infrastructure; otherwise forging a signature reduces to falsely claiming an identity. confirmedas of 2023-02-03

    13. [13]

      NIST's final IR 8547 says public key infrastructure components must be updated to issue, distribute and manage certificates that use post-quantum algorithms, and to sign certificates and revocation information with them. confirmedas of 2026-10-27

    14. [14]

      PKCS #1 v2.2 requires RSAES-OAEP to be supported for new encryption applications and keeps the older RSAES-PKCS1-v1_5 only for compatibility, and requires RSASSA-PSS in new signature applications. confirmedas of 2016-11-01

    15. [15]

      RFC 8032 (January 2017) describes the Edwards-curve Digital Signature Algorithm (EdDSA), instantiated with the edwards25519 and edwards448 curves. confirmedas of 2017-01-01

    16. [16]

      US federal law defines an electronic signature as an electronic sound, symbol or process attached to or logically associated with a contract or other record and executed or adopted by a person with the intent to sign it. confirmedas of 2026-11-21

    17. [17]

      The EU eIDAS Regulation (No 910/2014) defines an electronic signature as data in electronic form attached to or logically associated with other electronic data and used by the signatory to sign. confirmedas of 2014-08-28

    18. [18]

      The US ESIGN provisions at 15 U.S.C. 7001, enacted on 30 June 2000, say a signature, contract or record relating to a transaction in or affecting interstate or foreign commerce may not be denied legal effect, validity or enforceability solely because it is in electronic form. confirmedas of 2026-11-21

    19. [19]

      Under eIDAS an advanced electronic signature must be uniquely linked to and capable of identifying the signatory, be created with data the signatory can use under their sole control, and be linked to the signed data so that any later change is detectable. confirmedas of 2014-08-28

    20. [20]

      Under eIDAS a qualified electronic signature is an advanced electronic signature created by a qualified signature creation device and based on a qualified certificate; it has the same legal effect as a handwritten signature and is recognised in every EU member state, while other electronic signatures cannot be denied legal effect solely because they are electronic. confirmedas of 2014-08-28

    21. [21]

      NIST's final IR 8547 notes that Executive Order 14412 and OMB Memorandum M-26-15 require the US government's most sensitive systems to adopt post-quantum cryptography for key establishment by 31 December 2030 and for digital signatures by 31 December 2031. confirmedas of 2026-10-27

    Revision history (1)
    1. Page created.

    Created Nov 21, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Aug 23, 2027.

    Cite this page

    "How digital signatures work." ContentLora, updated Nov 21, 2026. https://contentlora.com/explain/how-digital-signatures-work

    Spotted an error? Suggest a correction or emailcorrections@contentlora.com.