The Exercise
A network of users wants every pair of them to be able to talk in secret. With private key cryptography, each pair shares a key of its own, known to the two of them and to no one else. Public key cryptography instead lets each user publish a single key, with which anyone can encrypt a message that only that user can read. The exercise counts the keys each scheme needs as the network grows.
Users and Keys
The users form a finite set , and is the number of its elements.
The set of private keys of holds one key for each unordered pair of distinct users: (1)✦
The set of public keys of holds one key for each user, and is the set of users itself: (2)✦
The Claim
Theorem 1. Let be a finite set of users. The number of private keys of is (3)✦ and the number of public keys of is (4)✦
What Is Checked
The claim is stated over the private keys (1) and the public keys (2) of a finite set of users. The library proves both counts, (3) for the pairs and (4) for the users.