Recent from talks
Nothing was collected or created yet.
Digital signature
View on Wikipedia
A digital signature is a mathematical scheme for verifying the authenticity of digital messages or documents. A valid digital signature on a message gives a recipient confidence that the message came from a sender known to the recipient.[1][2]
Digital signatures are a type of public-key cryptography, and are commonly used for software distribution,[3][4][5] financial transactions,[citation needed] contract management software,[citation needed] and in other cases where it is important to detect forgery or tampering.
A digital signature on a message or document is similar to a handwritten signature on paper, but it is not restricted to a physical medium like paper—any bitstring can be digitally signed—and while a handwritten signature on paper could be copied onto other paper in a forgery, a digital signature on a message is mathematically bound to the content of the message so that it is infeasible for anyone to forge a valid digital signature on any other message.[6]
Digital signatures are often used to implement electronic signatures, which include any electronic data that carries the intent of a signature,[7] but not all electronic signatures use digital signatures.[8][9]
Definition
[edit]A digital signature scheme consists of three algorithms:[6][10]
- A key generation algorithm that selects a private key at random from a set of possible private keys. The algorithm outputs the private key and a corresponding public key.
- A signing algorithm that, given a message and a private key, produces a signature.
- A signature verifying algorithm that, given the message, public key and signature, either accepts or rejects the message's claim to authenticity.
Two main properties are required:
- Correctness: Signatures produced by the signing algorithm with a private key pass the verification algorithm with the corresponding public key.
- Security (existential unforgeability under chosen-message attack, or EUF-CMA): It should be computationally infeasible to generate a valid signature for a party without knowing that party's private key.
Formally, a digital signature scheme is a triple of probabilistic polynomial-time algorithms, (G, S, V), satisfying:
- G (key-generator) generates a public key (pk), and a corresponding private key (sk), on input 1n, where n is the security parameter.
- S (signing) returns a tag, t, on the inputs: the private key (sk), and a string (x).
- V (verifying) outputs accepted or rejected on the inputs: the public key (pk), a string (x), and a tag (t).
Here 1n refers to a unary number in the formalism of computational complexity theory.
For correctness, S and V must satisfy
- Pr [(pk, sk) ← G(1n), V(pk, x, S(sk, x)) = accepted] = 1.[11]
A digital signature scheme is secure if for every non-uniform probabilistic polynomial time adversary A,
- Pr [(pk, sk) ← G(1n), (x, t) ← AS(sk, · )(pk, 1n), x ∉ Q, V(pk, x, t) = accepted] < negl(n),
where AS(sk, · ) denotes that A has access to the oracle, S(sk, · ), Q denotes the set of the queries on S made by A, which knows the public key, pk, and the security parameter, n, and x ∉ Q denotes that the adversary may not directly query the string, x, on S.[11][12]
History
[edit]In 1976, Whitfield Diffie and Martin Hellman first described the notion of a digital signature scheme, although they only conjectured that such schemes existed based on functions that are trapdoor one-way permutations.[13][14] Soon afterwards, Ronald Rivest, Adi Shamir, and Len Adleman invented the RSA algorithm, which could be used to produce primitive digital signatures[15] (although only as a proof-of-concept – "plain" RSA signatures are not secure[16]). The first widely marketed software package to offer digital signature was Lotus Notes 1.0, released in 1989, which used the RSA algorithm.[17]
Other digital signature schemes were soon developed after RSA, the earliest being Lamport signatures,[18] Merkle signatures (also known as "Merkle trees" or simply "Hash trees"),[19] and Rabin signatures.[20]
In 1988, Shafi Goldwasser, Silvio Micali, and Ronald Rivest became the first to rigorously define the security requirements of digital signature schemes.[21] They described a hierarchy of attack models for signature schemes, and also presented the GMR signature scheme, the first that could be proved to prevent even an existential forgery against a chosen message attack, which is the currently accepted security definition for signature schemes.[21] The first such scheme which is not built on trapdoor functions but rather on a family of function with a much weaker required property of one-way permutation was presented by Moni Naor and Moti Yung.[22]
Method
[edit]This Method section needs additional citations for verification. (January 2022) |
One digital signature scheme (of many) is based on RSA. To create signature keys, generate an RSA key pair containing a modulus, N, that is the product of two random secret distinct large primes, along with integers, e and d, such that e d ≡ 1 (mod φ(N)), where φ is Euler's totient function. The signer's public key consists of N and e, and the signer's secret key contains d.
Used directly, this type of signature scheme is vulnerable to key-only existential forgery attack. To create a forgery, the attacker picks a random signature σ and uses the verification procedure to determine the message, m, corresponding to that signature.[23] In practice, however, this type of signature is not used directly, but rather, the message to be signed is first hashed to produce a short digest, that is then padded to larger width comparable to N, then signed with the reverse trapdoor function.[24] This forgery attack, then, only produces the padded hash function output that corresponds to σ, but not a message that leads to that value, which does not lead to an attack. In the random oracle model, hash-then-sign (an idealized version of that practice where hash and padding combined have close to N possible outputs), this form of signature is existentially unforgeable, even against a chosen-plaintext attack.[14][clarification needed][25]
There are several reasons to sign such a hash (or message digest) instead of the whole document.
- For efficiency
- The signature will be much shorter and thus save time since hashing is generally much faster than signing in practice.
- For compatibility
- Messages are typically bit strings, but some signature schemes operate on other domains (such as, in the case of RSA, numbers modulo a composite number N). A hash function can be used to convert an arbitrary input into the proper format.
- For integrity
- Without the hash function, the text "to be signed" may have to be split (separated) in blocks small enough for the signature scheme to act on them directly. However, the receiver of the signed blocks is not able to recognize if all the blocks are present and in the appropriate order.
Applications
[edit]As organizations move away from paper documents with ink signatures or authenticity stamps, digital signatures can provide added assurances of the evidence to provenance, identity, and status of an electronic document as well as acknowledging informed consent and approval by a signatory.[citation needed] The United States Government Printing Office (GPO) publishes electronic versions of the budget, public and private laws, and congressional bills with digital signatures.[citation needed] Universities including Penn State, University of Chicago, and Stanford are publishing electronic student transcripts with digital signatures.[citation needed]
Below are some common reasons for applying a digital signature to communications:
Authentication
[edit]A message may have letterhead or a handwritten signature identifying its sender, but letterheads and handwritten signatures can be copied and pasted onto forged messages. Even legitimate messages may be modified in transit.[6]
If a bank's central office receives a letter claiming to be from a branch office with instructions to change the balance of an account, the central bankers need to be sure, before acting on the instructions, that they were actually sent by a branch banker, and not forged—whether a forger fabricated the whole letter, or just modified an existing letter in transit by adding some digits.
With a digital signature scheme, the central office can arrange beforehand to have a public key on file whose private key is known only to the branch office. The branch office can later sign a message and the central office can use the public key to verify the signed message was not a forgery before acting on it. A forger who doesn't know the sender's private key can't sign a different message, or even change a single digit in an existing message without making the recipient's signature verification fail.[6][1][2]
Encryption can hide the content of the message from an eavesdropper, but encryption on its own may not let recipient verify the message's authenticity, or even detect selective modifications like changing a digit—if the bank's offices simply encrypted the messages they exchange, they could still be vulnerable to forgery. In other applications, such as software updates, the messages are not secret—when a software author publishes a patch for all existing installations of the software to apply, the patch itself is not secret, but computers running the software must verify the authenticity of the patch before applying it, lest they become victims to malware.[2]
Limitations
[edit]Replays. A digital signature scheme on its own does not prevent a valid signed message from being recorded and then maliciously reused in a replay attack. For example, the branch office may legitimately request that bank transfer be issued once in a signed message. If the bank doesn't use a system of transaction IDs in their messages to detect which transfers have already happened, someone could illegitimately reuse the same signed message many times to drain an account.[6]
Uniqueness and malleability of signatures. A signature itself cannot be used to uniquely identify the message it signs—in some signature schemes, every message has a large number of possible valid signatures from the same signer, and it may be easy, even without knowledge of the private key, to transform one valid signature into another.[26] If signatures are misused as transaction IDs in an attempt by a bank-like system such as a Bitcoin exchange to detect replays, this can be exploited to replay transactions.[27]
Authenticating a public key. Prior knowledge of a public key can be used to verify authenticity of a signed message, but not the other way around—prior knowledge of a signed message cannot be used to verify authenticity of a public key. In some signature schemes, given a signed message, it is easy to construct a public key under which the signed message will pass verification, even without knowledge of the private key that was used to make the signed message in the first place.[28]
Non-repudiation
[edit]Non-repudiation, or more specifically non-repudiation of origin, is an important aspect of digital signatures. By this property, an entity that has signed some information cannot at a later time deny having signed it. Similarly, access to the public key only does not enable a fraudulent party to fake a valid signature.
Note that these authentication, non-repudiation etc. properties rely on the secret key not having been revoked prior to its usage. Public revocation of a key-pair is a required ability, else leaked secret keys would continue to implicate the claimed owner of the key-pair. Checking revocation status requires an "online" check; e.g., checking a certificate revocation list or via the Online Certificate Status Protocol.[29] Very roughly this is analogous to a vendor who receives credit-cards first checking online with the credit-card issuer to find if a given card has been reported lost or stolen. Of course, with stolen key pairs, the theft is often discovered only after the secret key's use, e.g., to sign a bogus certificate for espionage purpose.
Notions of security
[edit]In their foundational paper, Goldwasser, Micali, and Rivest lay out a hierarchy of attack models against digital signatures:[21]
- In a key-only attack, the attacker is only given the public verification key.
- In a known message attack, the attacker is given valid signatures for a variety of messages known by the attacker but not chosen by the attacker.
- In an adaptive chosen message attack, the attacker first learns signatures on arbitrary messages of the attacker's choice.
They also describe a hierarchy of attack results:[21]
- A total break results in the recovery of the signing key.
- A universal forgery attack results in the ability to forge signatures for any message.
- A selective forgery attack results in a signature on a message of the adversary's choice.
- An existential forgery merely results in some valid message/signature pair not already known to the adversary.
The strongest notion of security, therefore, is security against existential forgery under an adaptive chosen message attack.
Additional security precautions
[edit]Putting the private key on a smart card
[edit]All public key / private key cryptosystems depend entirely on keeping the private key secret. A private key can be stored on a user's computer, and protected by a local password, but this has two disadvantages:
- the user can only sign documents on that particular computer
- the security of the private key depends entirely on the security of the computer
A more secure alternative is to store the private key on a smart card. Many smart cards are designed to be tamper-resistant (although some designs have been broken, notably by Ross Anderson and his students[30]). In a typical digital signature implementation, the hash calculated from the document is sent to the smart card, whose CPU signs the hash using the stored private key of the user, and then returns the signed hash. Typically, a user must activate their smart card by entering a personal identification number or PIN code (thus providing two-factor authentication). It can be arranged that the private key never leaves the smart card, although this is not always implemented. If the smart card is stolen, the thief will still need the PIN code to generate a digital signature. This reduces the security of the scheme to that of the PIN system, although it still requires an attacker to possess the card. A mitigating factor is that private keys, if generated and stored on smart cards, are usually regarded as difficult to copy, and are assumed to exist in exactly one copy. Thus, the loss of the smart card may be detected by the owner and the corresponding certificate can be immediately revoked. Private keys that are protected by software only may be easier to copy, and such compromises are far more difficult to detect.
Using smart card readers with a separate keyboard
[edit]Entering a PIN code to activate the smart card commonly requires a numeric keypad. Some card readers have their own numeric keypad. This is safer than using a card reader integrated into a PC, and then entering the PIN using that computer's keyboard. Readers with a numeric keypad are meant to circumvent the eavesdropping threat where the computer might be running a keystroke logger, potentially compromising the PIN code. Specialized card readers are also less vulnerable to tampering with their software or hardware and are often EAL3 certified.
Other smart card designs
[edit]Smart card design is an active field, and there are smart card schemes which are intended to avoid these particular problems, despite having few security proofs so far.
Using digital signatures only with trusted applications
[edit]One of the main differences between a digital signature and a written signature is that the user does not "see" what they sign. The user application presents a hash code to be signed by the digital signing algorithm using the private key. An attacker who gains control of the user's PC can possibly replace the user application with a foreign substitute, in effect replacing the user's own communications with those of the attacker. This could allow a malicious application to trick a user into signing any document by displaying the user's original on-screen, but presenting the attacker's own documents to the signing application.
To protect against this scenario, an authentication system can be set up between the user's application (word processor, email client, etc.) and the signing application. The general idea is to provide some means for both the user application and signing application to verify each other's integrity. For example, the signing application may require all requests to come from digitally signed binaries.
Using a network attached hardware security module
[edit]One of the main differences between a cloud based digital signature service and a locally provided one is risk. Many risk averse companies, including governments, financial and medical institutions, and payment processors require more secure standards, like FIPS 140-2 level 3 and FIPS 201 certification, to ensure the signature is validated and secure.
WYSIWYS
[edit]Technically speaking, a digital signature applies to a string of bits, whereas humans and applications "believe" that they sign the semantic interpretation of those bits. In order to be semantically interpreted, the bit string must be transformed into a form that is meaningful for humans and applications, and this is done through a combination of hardware and software based processes on a computer system. The problem is that the semantic interpretation of bits can change as a function of the processes used to transform the bits into semantic content. It is relatively easy to change the interpretation of a digital document by implementing changes on the computer system where the document is being processed. From a semantic perspective this creates uncertainty about what exactly has been signed. WYSIWYS (What You See Is What You Sign)[31] means that the semantic interpretation of a signed message cannot be changed. In particular this also means that a message cannot contain hidden information that the signer is unaware of, and that can be revealed after the signature has been applied. WYSIWYS is a requirement for the validity of digital signatures, but this requirement is difficult to guarantee because of the increasing complexity of modern computer systems. The term WYSIWYS was coined by Peter Landrock and Torben Pedersen to describe some of the principles in delivering secure and legally binding digital signatures for Pan-European projects.[31]
Digital signatures versus ink on paper signatures
[edit]An ink signature could be replicated from one document to another by copying the image manually or digitally, but to have credible signature copies that can resist some scrutiny is a significant manual or technical skill, and to produce ink signature copies that resist professional scrutiny is very difficult.
Digital signatures cryptographically bind an electronic identity to an electronic document and the digital signature cannot be copied to another document. Paper contracts sometimes have the ink signature block on the last page, and the previous pages may be replaced after a signature is applied. Digital signatures can be applied to an entire document, such that the digital signature on the last page will indicate tampering if any data on any of the pages have been altered, but this can also be achieved by signing with ink and numbering all pages of the contract.
Some digital signature algorithms
[edit]- RSA
- DSA
- ECDSA
- EdDSA
- RSA with SHA
- ECDSA with SHA[32]
- ElGamal signature scheme as the predecessor to DSA, and variants Schnorr signature and Pointcheval–Stern signature algorithm
- Rabin signature algorithm
- Pairing-based schemes such as BLS
- CRYSTALS-Dilithium, a quantum-resistant scheme based on LWE in lattices
- Falcon, a quantum-resistant scheme based on CVP in lattices
- SPHINCS+, a quantum-resistant scheme based on hash functions
- Undeniable signatures
- Aggregate signature – a signature scheme that supports aggregation: Given n signatures on n messages from n users, it is possible to aggregate all these signatures into a single signature whose size is constant in the number of users. This single signature will convince the verifier that the n users did indeed sign the n original messages. A scheme by Mihir Bellare and Gregory Neven may be used with Bitcoin.[33]
- Signatures with efficient protocols – are signature schemes that facilitate efficient cryptographic protocols such as zero-knowledge proofs or secure computation.
The current state of use – legal and practical
[edit]Most digital signature schemes share the following goals regardless of cryptographic theory or legal provision:
- Quality algorithms: Some public-key algorithms are known to be insecure, as practical attacks against them have been discovered.
- Quality implementations: An implementation of a good algorithm (or protocol) with mistake(s) will not work.
- Users (and their software) must carry out the signature protocol properly.
- The private key must remain private: If the private key becomes known to any other party, that party can produce perfect digital signatures of anything.
- The public key owner must be verifiable: A public key associated with Bob actually came from Bob. This is commonly done using a public key infrastructure (PKI) and the public key↔user association is attested by the operator of the PKI (called a certificate authority). For 'open' PKIs in which anyone can request such an attestation (universally embodied in a cryptographically protected public key certificate), the possibility of mistaken attestation is non-trivial. Commercial PKI operators have suffered several publicly known problems. Such mistakes could lead to falsely signed, and thus wrongly attributed, documents. 'Closed' PKI systems are more expensive, but less easily subverted in this way.
Only if all of these conditions are met will a digital signature actually be any evidence of who sent the message, and therefore of their assent to its contents. Legal enactment cannot change this reality of the existing engineering possibilities, though some such have not reflected this actuality.
Legislatures, being importuned by businesses expecting to profit from operating a PKI, or by the technological avant-garde advocating new solutions to old problems, have enacted statutes and/or regulations in many jurisdictions authorizing, endorsing, encouraging, or permitting digital signatures and providing for (or limiting) their legal effect. The first appears to have been in Utah in the United States, followed closely by the states Massachusetts and California. Other countries have also passed statutes or issued regulations in this area as well and the UN has had an active model law project for some time. These enactments (or proposed enactments) vary from place to place, have typically embodied expectations at variance (optimistically or pessimistically) with the state of the underlying cryptographic engineering, and have had the net effect of confusing potential users and specifiers, nearly all of whom are not cryptographically knowledgeable.
Adoption of technical standards for digital signatures have lagged behind much of the legislation, delaying a more or less unified engineering position on interoperability, algorithm choice, key lengths, and so on what the engineering is attempting to provide.
Industry standards
[edit]Some industries have established common interoperability standards for the use of digital signatures between members of the industry and with regulators. These include the Automotive Network Exchange for the automobile industry and the SAFE-BioPharma Association for the healthcare industry.
Using separate key pairs for signing and encryption
[edit]In several countries, a digital signature has a status somewhat like that of a traditional pen and paper signature, as in the 1999 EU digital signature directive and 2014 EU follow-on legislation.[34] Generally, these provisions mean that anything digitally signed legally binds the signer of the document to the terms therein. For that reason, it is often thought best to use separate key pairs for encrypting and signing. Using the encryption key pair, a person can engage in an encrypted conversation (e.g., regarding a real estate transaction), but the encryption does not legally sign every message he or she sends. Only when both parties come to an agreement do they sign a contract with their signing keys, and only then are they legally bound by the terms of a specific document. After signing, the document can be sent over the encrypted link. If a signing key is lost or compromised, it can be revoked to mitigate any future transactions. If an encryption key is lost, a backup or key escrow should be utilized to continue viewing encrypted content. Signing keys should never be backed up or escrowed unless the backup destination is securely encrypted.
See also
[edit]- 21 CFR 11
- X.509
- Advanced electronic signature
- Blind signature
- Detached signature
- Public key certificate
- Digital signature in Estonia
- Electronic lab notebook
- Electronic signature
- Electronic signatures and law
- eSign (India)
- GNU Privacy Guard
- Public key infrastructure
- Public key fingerprint
- Server-based signatures
- Probabilistic signature scheme
Notes
[edit]- ^ a b Goldwasser, Shafi; Bellare, Mihir (July 2008). "Chapter 10: Digital signatures" (PDF). Lecture Notes on Cryptography. p. 168. Archived (PDF) from the original on 2022-04-20. Retrieved 2023-06-11.
- ^ a b c Katz, Jonathan; Lindell, Yehuda (2007). "Chapter 12: Digital Signature Schemes". Introduction to Modern Cryptography. p. 399.
- ^ Boneh, Dan; Shoup, Victor (January 2023). "13. Digital Signatures". A Graduate Course in Applied Cryptography (PDF) (Version 0.6 ed.).
- ^ "§ 7.5. Package signing in Debian". Securing Debian Manual. Debian Project. Archived from the original on 2025-06-11. Retrieved 2025-07-17.
- ^ "Distributing your app to registered devices". Apple Developer Documentation. Apple, Inc. Archived from the original on 2024-03-13. Retrieved 2025-07-17.
- ^ a b c d e Stinson, Douglas (2006). "7: Signature Schemes". Cryptography: Theory and Practice (3rd ed.). Chapman & Hall/CRC. p. 281. ISBN 978-1-58488-508-5.
- ^ "US ESIGN Act of 2000" (PDF). Archived (PDF) from the original on 2011-05-22. Retrieved 2006-05-10.
- ^ State of WI Archived 2006-09-25 at the Wayback Machine
- ^ National Archives of Australia Archived November 9, 2014, at the Wayback Machine
- ^ Galbraith, Steven (2012). "§1.3.2: Security of signatures" (PDF). Mathematics of Public-Key Cryptography. Cambridge University Press. pp. 7–9. ISBN 978-1-107-01392-6.
- ^ a b Pass, def 135.1
- ^ Goldreich's FoC, vol. 2, def 6.1.2. Pass, def 135.2
- ^ Diffie, W.; Hellman, M. (1976). "New directions in cryptography" (PDF). IEEE Transactions on Information Theory. 22 (6): 644–654. doi:10.1109/TIT.1976.1055638.
- ^ a b "Signature Schemes and Applications to Cryptographic Protocol Design Archived 2022-09-08 at the Wayback Machine", Anna Lysyanskaya, PhD thesis, MIT, 2002.
- ^ Rivest, R.; Shamir, A.; Adleman, L. (1978). "A Method for Obtaining Digital Signatures and Public-Key Cryptosystems" (PDF). Communications of the ACM. 21 (2): 120–126. CiteSeerX 10.1.1.607.2677. doi:10.1145/359340.359342. S2CID 2873616. Archived from the original (PDF) on 2008-12-17. Retrieved 2025-07-02.
- ^ For example any integer, r, "signs" m=re and the product, s1s2, of any two valid signatures, s1, s2 of m1, m2 is a valid signature of the product, m1m2.
- ^ "The History of Notes and Domino". developerWorks. 2007-11-14. Archived from the original on 2013-03-05. Retrieved 17 September 2014.
- ^ "Constructing digital signatures from a one-way function.", Leslie Lamport, Technical Report CSL-98, SRI International, Oct. 1979.
- ^ Merkle, Ralph C. (1990). "A Certified Digital Signature" (PDF). Advances in Cryptology — CRYPTO' 89 Proceedings. Lecture Notes in Computer Science. Vol. 435. pp. 218–238. doi:10.1007/0-387-34805-0_21. ISBN 978-0-387-97317-3.
- ^ Rabin, Michael O. (January 1979). Digitalized Signatures and Public Key Functions as Intractable as Factorization (PDF) (Technical report). Cambridge, MA, United States: MIT Laboratory for Computer Science. TR-212.
- ^ a b c d Goldwasser, Shafi; Micali, Silvio; Rivest, Ronald L. (1988). "A Digital Signature Scheme Secure Against Adaptive Chosen-Message Attacks" (PDF). SIAM Journal on Computing. 17 (2): 281–308. doi:10.1137/0217017. Archived from the original (PDF) on 2024-09-18.
- ^ Naor, Moni; Yung, Moti (1989). "Universal one-way hash functions and their cryptographic applications". Proceedings of the twenty-first annual ACM symposium on Theory of computing - STOC '89. ACM. pp. 33–43. doi:10.1145/73007.73011. ISBN 978-0-89791-307-2.
- ^ "Modern Cryptography: Theory & Practice", Wenbo Mao, Prentice Hall Professional Technical Reference, New Jersey, 2004, pg. 308. ISBN 0-13-066943-1
- ^ Handbook of Applied Cryptography by Alfred J. Menezes, Paul C. van Oorschot, Scott A. Vanstone. Fifth Printing (August 2001) page 445.
- ^ Bellare, Mihir; Rogaway, Phillip (1996). "The Exact Security of Digital Signatures-How to Sign with RSA and Rabin". In Maurer, Ueli (ed.). Advances in Cryptology — EUROCRYPT '96. Lecture Notes in Computer Science. Vol. 1070. Berlin, Heidelberg: Springer. pp. 399–416. doi:10.1007/3-540-68339-9_34. ISBN 978-3-540-68339-1.
- ^ Brendel, Jacqueline; Cremers, Cas; Jackson, Dennis; Zhao, Meng (2020-10-14). The Provable Security of Ed25519: Theory and Practice (Technical report). IACR Cryptology ePrint Archive. 2020/823.
- ^ Decker, Christian; Wattenhofer, Roger (2014). "Bitcoin Transaction Malleability and MtGox". In Kutyłowski, Mirosław; Vaidya, Jaideep (eds.). Computer Security - ESORICS 2014. Lecture Notes in Computer Science. Vol. 8713. Springer. pp. 313–326. arXiv:1403.6676. doi:10.1007/978-3-319-11212-1_18. ISBN 978-3-319-11212-1.
- ^ Ayer, Andrew (2015-08-11). "Signature misuse vulnerability in draft-barnes-acme-04". acme@ietf.org (Mailing list). Retrieved 2023-06-12.
- ^ JA, Ashiq. "Recommendations for Providing Digital Signature Services". Cryptomathic. Archived from the original on 9 February 2016. Retrieved 7 January 2016.
- ^ "Chip and Skim: cloning EMV cards with the pre-play attack" (PDF). Archived from the original (PDF) on 2018-05-16. Retrieved 2018-04-06.
- ^ a b Landrock, Peter; Pedersen, Torben (1998). "WYSIWYS? – What you see is what you sign?". Information Security Technical Report. 3 (2): 55–61. doi:10.1016/S0167-4048(98)80005-8.
- ^ RFC 5758
- ^ "Technology roadmap – Schnorr signatures and signature aggregation". bitcoincore.org. Bitcoin Core. 23 March 2017. Archived from the original on 24 March 2018. Retrieved 1 April 2018.
- ^ Turner, Dawn. "Major Standards and Compliance of Digital Signatures – A World-Wide Consideration". Cryptomathic. Archived from the original on 9 February 2016. Retrieved 7 January 2016.
References
[edit]- Goldreich, Oded (2001), Foundations of cryptography I: Basic Tools, Cambridge: Cambridge University Press, ISBN 978-0-511-54689-1
- Goldreich, Oded (2004), Foundations of cryptography II: Basic Applications (1. publ. ed.), Cambridge [u.a.]: Cambridge Univ. Press, ISBN 978-0-521-83084-3
- Pass, Rafael, A Course in Cryptography (PDF), retrieved 31 December 2015
Further reading
[edit]- J. Katz and Y. Lindell, "Introduction to Modern Cryptography" (Chapman & Hall/CRC Press, 2007)
- Lorna Brazell, Electronic Signatures and Identities Law and Regulation (2nd edn, London: Sweet & Maxwell, 2008)
- Dennis Campbell, editor, E-Commerce and the Law of Digital Signatures (Oceana Publications, 2005)
- M. H. M Schellenkens, Electronic Signatures Authentication Technology from a Legal Perspective, (TMC Asser Press, 2004)
- Jeremiah S. Buckley, John P. Kromer, Margo H. K. Tank, and R. David Whitaker, The Law of Electronic Signatures (3rd Edition, West Publishing, 2010).
- Digital Evidence and Electronic Signature Law Review Free open source
Digital signature
View on GrokipediaIntroduction
Definition
A digital signature is a mathematical scheme for demonstrating the authenticity of a digital message or document using asymmetric cryptography, which enables the verification of the sender's identity, ensures the message has not been altered, and provides non-repudiation by binding the signer to the message.[1][9] This scheme relies on a pair of mathematically related keys: a private key known only to the signer and a public key available to verifiers, forming the basis of public-key cryptography as the foundational enabler.[1] The core properties of a digital signature include authenticity, which confirms the message originated from the claimed sender; integrity, which detects any tampering or modification to the message; and non-repudiation, which prevents the signer from denying they produced or sent the message.[1][9] These properties are achieved through cryptographic transformations that create a unique, tamper-evident "fingerprint" of the message, typically involving a hash function to produce a fixed-size digest that is then encrypted with the private key.[1] Unlike electronic signatures, which broadly encompass any digital mark or process intended to signify agreement (such as a scanned handwritten signature or simple click-through), digital signatures are cryptographically bound using asymmetric keys, providing stronger security guarantees against forgery and alteration.[9] Electronic signatures may lack these cryptographic elements and thus offer lower assurance of authenticity and integrity. In the basic workflow, a key pair is generated using a key generation algorithm, after which the signer applies the signing algorithm to the message (often its hash) using the private key to produce the signature; verification then uses the public key and the signing algorithm to check if the signature matches the message, confirming the properties hold.[10] Formally, a digital signature scheme consists of three algorithms: KeyGen, which generates the public-private key pair; Sign, which produces the signature on a message using the private key; and Verify, which checks the validity of the signature using the public key and message.[10][11]Importance and Basic Principles
Digital signatures are pivotal in fostering digital trust, allowing secure interactions in environments where physical presence is impractical. They underpin e-commerce by authenticating transactions and preventing unauthorized alterations, software updates by verifying the origin and integrity of code to mitigate malware risks, and legal documents by providing non-repudiation, ensuring that signatories cannot deny their actions and that records hold legal weight under frameworks like the ESIGN Act.[9][12][13] Central to their operation are prerequisite concepts like cryptographic hash functions, which compress variable-length messages into fixed-size digests for efficient processing. For instance, SHA-256 generates a 256-bit hash that represents the message uniquely, enabling signatures on the digest rather than the full data, which enhances performance without compromising security.[14][15] This hashing step is crucial, as it maintains data integrity by detecting even minor changes, as any alteration to the message produces a different hash. Public-key infrastructure (PKI) forms the foundational trust model for digital signatures, involving certificates issued by trusted certificate authorities (CAs) that link public keys to verified identities. These X.509 certificates, digitally signed by the CA, allow verifiers to confirm the signer's legitimacy through a chain of trust rooted in well-known authorities.[16][17] The core process of signature creation is formalized as where is the signature, is the signer's private key, is the hash function applied to the message . This mechanism provides resistance to forgery, as forging a valid signature requires solving the underlying hard problem (e.g., discrete logarithm in DSA), while hashing ensures scalability by reducing the input size for the computationally intensive signing operation.[18]Historical Development
Early Concepts
The foundational ideas for digital signatures emerged in the mid-1970s with the invention of public-key cryptography, which introduced asymmetric key pairs to enable secure authentication without shared secrets. In their seminal 1976 paper, Whitfield Diffie and Martin Hellman outlined the concept of digital signatures as a means to provide non-repudiation and integrity for electronic messages, where a signer could produce a signature using a private key that anyone could verify with the corresponding public key, all without exposing the private key to forge future signatures. This approach, detailed in "New Directions in Cryptography," shifted cryptography from symmetric systems—where encryption and decryption used the same key—to asymmetric ones, laying the groundwork for signatures as a distinct primitive separate from encryption. Building on this framework, the RSA algorithm, proposed by Ronald Rivest, Adi Shamir, and Leonard Adleman in their 1978 paper (submitted in 1977), became the first practical digital signature scheme. It leveraged the computational difficulty of factoring large composite numbers: the signer encrypted a message hash with their private key (derived from secret prime factors), producing a signature verifiable by decrypting it with the public key (the product of those factors and an exponent).[19] This method allowed efficient verification while keeping signing secure, marking a key advancement in realizing Diffie and Hellman's vision for practical use in systems like electronic mail.[19] Another early proposal came from Ralph Merkle and Martin Hellman in 1978, who suggested a digital signature scheme based on the knapsack problem, an NP-complete subset sum variant made "trapdoor" easy to solve with secret knowledge. The scheme generated a public knapsack instance from a superincreasing private one, allowing the signer to encode message bits as subset sums for verification, but it suffered from security flaws and was broken shortly after by lattice-based attacks.[20] Despite its insecurity, this work highlighted alternative mathematical foundations beyond factoring, though it underscored the nascent field's vulnerabilities. Throughout the 1970s, these innovations grappled with substantial hurdles, including severe computational constraints—public-key operations like RSA exponentiation processed only a few thousand bits per second on era hardware, roughly 1/1000th the speed of symmetric ciphers like DES—and the complete absence of interoperability standards, which fueled skepticism from traditional cryptographers and delayed broader acceptance.[21] These limitations confined early digital signatures to theoretical and experimental realms, emphasizing the need for optimized algorithms and eventual standardization efforts.[21]Key Milestones and Adoption
The first major commercial implementation of digital signatures occurred in 1989 with the release of Lotus Notes 1.0, a collaborative software platform that incorporated RSA-based digital signatures for authenticating and securing documents and communications.[22] This marked a transition from theoretical concepts to practical software deployment, enabling secure email and file sharing in enterprise environments.[23] In 1991, the National Institute of Standards and Technology (NIST) proposed the Digital Signature Algorithm (DSA) as part of efforts to standardize secure authentication for government and commercial use.[24] That same year, Pretty Good Privacy (PGP) software was released by Phil Zimmermann, introducing digital signatures for email encryption and signing, which quickly gained popularity among individuals and organizations for secure messaging.[25] The mid-1990s saw further standardization, with the X.509 version 3 format proposed in 1994 to define public key infrastructure (PKI) certificates, facilitating the binding of public keys to identities for broader digital signature verification.[26] Concurrently, the integration of digital signatures into SSL (Secure Sockets Layer) protocols during the 1990s, evolving into TLS, enabled secure web transactions by authenticating servers and protecting data integrity in e-commerce.[27] Early legal frameworks began recognizing digital signatures to promote adoption. The Utah Digital Signature Act of 1995 was the first U.S. state law to grant legal validity to digital signatures using PKI, establishing licensing for certification authorities and setting precedents for electronic contracts.[28] Federally, the Electronic Signatures in Global and National Commerce Act (ESIGN) was enacted in 2000, providing nationwide legal equivalence for electronic signatures and records in interstate commerce, thereby removing barriers to their use in business transactions.[29] These developments drove the shift from academic experimentation—such as early schemes like RSA—to widespread commercial application, particularly in e-commerce, where digital signatures became essential for verifying transactions and ensuring non-repudiation. By the 2000s, this adoption supported billions of secure online interactions annually, underpinning the explosive growth of digital commerce.[30]Technical Mechanisms
Key Generation
Key generation is a probabilistic process that produces a private key and a corresponding public key for use in digital signatures, typically parameterized by a security level (often expressed as a bit length) to ensure computational hardness against attacks.[18] This process relies on the principles of asymmetric cryptography, where the keys are mathematically related but computationally infeasible to derive one from the other without solving hard problems like integer factorization.[5] The security parameter determines the key length, which provides a specific level of protection against brute-force or algorithmic attacks; for instance, RSA keys of 2048 bits are recommended for at least 112 bits of security strength, based on the estimated difficulty of factoring the modulus.[18] Longer keys, such as 3072 bits, offer higher security (up to 128 bits) but increase computational overhead, with choices guided by standards that balance security and performance.[31] A representative example is the RSA key generation algorithm, where two large prime numbers and are randomly selected such that is sufficiently large to prevent attacks exploiting closeness.[18] The modulus is computed, and a public exponent (commonly 65537, an odd prime) is chosen coprime to . The private exponent is then derived as the modular multiplicative inverse of modulo , satisfying , yielding the public key and private key .[5] Primes and are generated using probabilistic primality tests like Miller-Rabin to ensure they are prime with overwhelming probability.[18] Randomness plays a critical role in key generation to prevent predictability and ensure the keys' uniqueness and security; approved random bit generators (RBGs), such as those in NIST SP 800-90A, must be used to produce seeds and candidates with entropy matching the security strength.[32] Inadequate randomness can lead to weak keys vulnerable to attacks, so generation occurs in secure environments like FIPS 140-validated modules.[33] The private key must remain strictly secret to the owner, while the public key is distributed openly, often embedded in digital certificates issued by trusted authorities to bind it to the owner's identity and enable verification.[33] Certificates ensure the public key's authenticity and integrity during sharing.[18]Signing and Verification Processes
The signing process begins with the computation of a cryptographic hash of the message, typically denoted as , where is the original message and is a secure one-way hash function such as SHA-256. This hash produces a fixed-length digest that succinctly represents the message, regardless of its size. The signer then uses their private key to generate the digital signature , which mathematically binds the hash to the private key through operations like modular exponentiation in schemes such as RSA. This step ensures that the signature can only be produced by the private key holder, providing authenticity.[34][4] Verification involves the recipient recomputing the hash of the received message and using the signer's public key to check whether evaluates to true. This check typically decrypts or processes to recover a value that must match , confirming both the message's integrity (no tampering) and origin (from the private key holder). If the hashes do not match, the signature is invalid, indicating potential tampering with the message or an attempt at forgery using an unauthorized key. The process relies on the asymmetry of public-key cryptography, where verification is computationally feasible for anyone with the public key but forging requires the private key.[34][5] A key efficiency advantage of this mechanism is that the full message is not directly signed or encrypted, which would be impractical for large data; instead, only the compact hash (e.g., 256 bits for SHA-256) undergoes the intensive private-key operation, allowing signatures on documents of arbitrary length with minimal computational overhead. For illustration in the RSA scheme, the signing pseudocode can be expressed as:hash = SHA256(message)
[signature](/page/Signature) = modular_exponentiation(hash, private_exponent, modulus)
hash = SHA256(message)
[signature](/page/Signature) = modular_exponentiation(hash, private_exponent, modulus)
decrypted_hash = modular_exponentiation(signature, public_exponent, modulus)
if decrypted_hash == SHA256(received_message) then valid
decrypted_hash = modular_exponentiation(signature, public_exponent, modulus)
if decrypted_hash == SHA256(received_message) then valid