So let's talk about digital signatures. Maybe a lot of you have heard what they are, but the key idea is I have some secret, and that secret basically identifies me, you could say. And if I create something using that secret, people are able to know, with some good level of certainty, that I was the one who created that new thing, because only I have that secret.
If we bring it back to the technical terms: you have a sender. The sender has a secret key. The sender uses the secret key to sign a message, and this produces a signature, and anyone with the sender's public key can verify that the message was signed by the sender.
There are a few properties that digital signatures preserve.
If we look at how to define the scheme, you can think of it in terms of three algorithms.
When we pass verify the public key, the message, and the output of the signing algorithm on the secret key and that message, the result is accept. This must hold true for any digital signature scheme to be correct. If you are not getting that, then you don't have a correct digital signature scheme.
Our goal for a digital signature scheme is that it should not be possible to forge signatures. We have many standards for what a digital signature scheme is secure against. The strongest standard, which gives the adversary the most power to do many things, is called existential unforgeability under chosen message attack (EUF-CMA).
The more power you give the adversary while still being able to defend against that very powerful adversary, the more secure your scheme is. If our scheme was only secure against an adversary that is not able to do a lot of things, then that's less secure than a scheme where an adversary is able to basically test out, or play around with, this scheme many times and still not be able to break it. That's an important intuition to understand, which carries on for all protocols.
Power is usually defined with an interactive game. It's basically how much information we give the adversary and how much information we continue giving.
Without any interaction from the challenger, they have to create another message, which cannot be the same message that already has a signature, and they have to create a valid signature. Now, they can do this however they want. They can even guess. So if you're guessing, that's okay. You have like one in a billion chance of getting it correct, but there's a chance. It's not zero. It's very close to zero. That is what "not with more than negligible probability" means. How close to zero depends on the security parameter.
Just think of it like signing checks at a bank. You do a signature and then you deposit the check or take money out. What I have the ability to do is look at that check as many times as I want, basically study your signature. And then the hundredth time I forge your signature and I go to the bank and pretend I'm you. If I'm able to do that, then I basically forged your signature, which is the whole point of the scheme. I should not be able to forge signatures.
I don't need to have your secret key, because if you look at this verify function, it only requires the public key, which is public knowledge, and the message-signature pair. If I can make these message-signature pairs follow the same distribution as the ones that are correct, then I win. I don't even need to know your secret key.
Notice here the requirement was not "when you create this signature, you have to use sign." I never said that. I'll just create some other function, fake sign, that takes in all my knowledge about what I learned from all of your interactions. The adversary just needs to create a valid message-signature pair. Like I said, they could even guess it. We don't care if they actually use sign.
There are two ways this could be accepted. One is the secret key was compromised. That's one case where I can always create valid signatures. The other way is: forget about the secret key. Learn about message-signature pairs enough to create your own message-signature pair.
You shouldn't take it for granted or assume that once a private key is generated, it's always safe and secure. There are ways to learn maybe bits of information about the private key, or maybe break it down into easier problems, and then solve for the private key.
Someone in the room gave an example of the second way: suppose the scheme has the property that the signature of m1 + m2 is σ1 + σ2. That's a much better explanation. If I just recap:
Step 1. We got two messages. Adversary said, "Hey, sign this message," and the challenger signed it. Adversary said, "Hey, sign this message," and the challenger signed it.
Step 2. Knowing these message-signature pairs, I tried to basically calculate: what could the formula actually be, where our signatures are created? So I try adding up the messages, and I realized that if I also add up the signatures, the sum of the signatures is the signature of the sum of the messages. This is my hypothesis.
Step 3. So now I ask for signature three with the challenger, and he gives me signature three, and I check this against what I hypothesized. And indeed it turns out that it was what I thought it was going to be.
Step 4. So now I can stop the interaction here. I can cut off my interaction with the challenger, and I can say, "Hey, I'm ready for the test." For the message, I'm going to choose m4, which, if you notice, we never chose. We chose m1, m2 and m3. Those are the only three messages we asked about. So m4 = m1 + m3, and σ4 = σ1 + σ3.
So here we didn't even calculate anything ourselves. We just gave the addition of things we already had stored. And this should give accept.
Here I'm just saying secret key and public key, but we'll look at actual digital signature protocols, with real formulas.