Template:Context In a cryptographic digital signature or MAC system, forgery is the ability to create a pair consisting of a message and a signature (or MAC) that is valid for , where has not been signed in the past by the legitimate signer. There are three types of forgery: Existential, Selective, and Universal.
Existential forgery is the creation (by an adversary) of any message/signature pair , where was not produced by the legitimate signer. The adversary need not have any control over ; need not have any particular meaning; and indeed it may even be gibberish — as long as the pair is valid, the adversary has succeeded in constructing an existential forgery.
Existential forgery is essentially the weakest adversarial goal, therefore the strongest schemes are those which are "existentially unforgeable".
Selective forgery is the creation (by an adversary) of a message/signature pair where has been chosen by the adversary prior to the attack. may be chosen to have interesting mathematical properties with respect to the signature algorithm; however, in selective forgery, must be fixed before the start of the attack.
The ability to successfully conduct a selective forgery attack implies the ability to successfully conduct an existential forgery attack.
Universal forgery is the creation (by an adversary) of a valid signature for any given message . An adversary capable of universal forgery is able to sign messages he chose himself (as in selective forgery), messages chosen at random, or even specific messages provided by an opponent.