Digital Signatures
Previously we talked about Message Integrity in network communication, now we introduce Digital Signatures.
Similar to the signature you sign checks or legal documents. In digital world, we also need a way to indicate the owner or creator of a document, or to signify one’s agreement with a document’s content. A digital signature is a cryptographic technique for achieving these goals. Digital signing should satisfy:
- The signature must be verifiable. To prove that a document signed by an individual was indeed signed by that individual.
- The signature cannot be forged. Only that individual could have signed the document.
How can we design such a digital signature scheme. When Bob signs a message, he must put something unique to him on this message. You may say that MAC is an option. But for Alice to verify the signature, she must also have the copy of the shared secret s, in which case the s would not be unique to Bob.
Recall that with public-key cryptography, Bob has both a public and private key, both are unique to him. It seems to be an excellent choice for providing digital signatures. Let’s see what can we do using public-key cryptography.
Get Miguel’s stories in your inbox
Join Medium for free to get updates from this writer.
Suppose Bob wants to digitally sign a document, m. Bob can use his private key to compute the signature. (Note, here we do not use the private key to do encryption, because encryption and decryption are simply mathematical operations).
With message m and the digital signature of Bob, how can Alice prove that Bob had indeed signed the message and was the only person who could have possibly signed the message? She takes Bob’s public key and applies it to the digital signature, if she produces m, she can prove that only Bob could have signed the document for the following reasons:
- Whoever signed the message must have used the private key in computing the signature.
- The only person who could have known the private key is Bob. (Knowing the public key is of no help in learning the private key. Therefore the only person who could know the private key is the person who generate the pair of keys in the first place, assuming Bob does not give anyone his private key, nor anyone stolen his private key)
We also notice that using this method, once the original message is modified, the signature of Bob will be invalid for the new message. So digital signatures also provide message integrity.
Since signing and checking message using private and public key is expensive, a more efficient approach is to sign H(m) and then use private key to calculate H(m) as the signature for m.
For Alice to verify, she will use the public key to get H(m) first, then use the same hash function to compute and compare whether the two H(m) are the same.
Next, we will talk about one important application of digital signature, public key certification.









