# GATE2008-IT-70

4.3k views

The total number of keys required for a set of $n$ individuals to be able to communicate with each other using secret key and public key cryptosystems, respectively are:

1. $n(n-1)$ and $2n$
2. $2n$ and $\dfrac{n(n - 1)}{2}$
3. $\dfrac{n(n - 1)}{2}$ and $2n$
4. $\dfrac{n(n - 1)}{2}$ and $n$

edited

For private key crypto for communication between each pair of individuals on secret key will be required, so if an individual wants to communicate with other $\text{n-1}$ individuals he should have $\text{n-1}$ secret keys,

So, the total number of secret keys for private encryption,

$=n\times (n-1)$ (If we include copies) or $n\times \dfrac{(n-1)}{2}$ (distinct keys).

For public key encryption each individual needs to have a public and private key,
so the total keys required in $2\times n$.

From the tone of the question the answer seems to be C) $\dfrac{n(n-1)}{2}$ and $2n$.

edited
1
I was including copies in my answer since both sender and receiver will need to store it, but I guess question is asking for distinct keys in which case we should divide by 2.
0
If there are three hosts A,B and C.

Then A has Private=2 and Public=1

B has Private=2 and Public=1

C has Private=2 and Public=1

All the private keys are unique. So here the answer should be 6 for Private keys and 3 for public key? Please explain if I am missing anything.
0
The question is asking for number of keys in private and public crypto system, not the number of private and public keys. If you have used public crypto system in your example they why does A need 2 private keys?
in private key encryption a key used for encryption as well as decryption.  so no of keys required for n individuals is same as no of communication link between any two individuals.
no of keys = n*(n-1)/2

in case of Public key each sender has its own public as well as private key so no of keys are 2n..
0
I understand in asymmetric key cryptography,  n private keys are required but why would we take n public keys if public key is known to everyone
2
Every individual has a public and private key bcz. if someone wants to communicate any msg. to that individual using Public Key Cryptography he needs to encrypt that msg. using the individual's public key. Then at the receiver side, only the receiver could decrypt the msg. using his private key. You can treat public and private keys as reciprocal of one another!

Hope it helps.
1 vote

For a private key encryption

If there are 2 individuals then total number of distinct keys for communication will be 1 Similarly for 3 individuals we will need 2 distinct keys. Like ways for n users we will need n-1 keys So, total number of keys will be

1+2+3+…n-1 = (n (n-1)/2)

public key encryption scheme

Every individual will have two keys one public key and one private key.
Therefore, for n individuals to communicate we will have 2* n keys
Hence, the correct answer will be ((n(n – 1))/2) and 2n.

1 vote

For secret or symmetric key cryptography, we need a key between each pair of hosts. So, $n_{C_{2}}$ keys,

For public key cryptography, each host would have two keys — public key and private key. So, $2n$

Option C

## Related questions

1
6.7k views
You are given the following four bytes : 10100011 00110111 11101001 10101011 Which of the following are substrings of the base $64$ encoding of the above four bytes? $\text{zdp}$ $\text{fpq}$ $\text{qwA}$ $\text{oze}$
Host $X$ has $IP$ address $192.168.1.97$ and is connected through two routers $R1$ and $R2$ to an­other host $Y$ with $IP$ address $192.168.1.80$. Router $R1$ has $IP$ addresses $192.168.1.135$ and $192.168.1.110$. $R2$ has $IP$ addresses $192.168.1.67$ ... $IP$ address should $X$ configure its gateway as? $192.168.1.67$ $192.168.1.110$ $192.168.1.135$ $192.168.1.155$
Host $X$ has IP address $192.168.1.97$ and is connected through two routers $R1$ and $R2$ to an­other host $Y$ with IP address $192.168.1.80$. Router $R1$ has IP addresses $192.168.1.135$ and $192.168.1.110$. $R2$ has IP addresses $192.168.1.67$ and ... is $255.255.255.224$. Given the information above, how many distinct subnets are guaranteed to already exist in the network? $1$ $2$ $3$ $6$
The three way handshake for TCP connection establishment is shown below. Which of the following statements are TRUE? $S1:$ Loss of $SYN + ACK$ from the server will not establish a connection $S2:$ Loss of $ACK$ from the client cannot establish the connection $S3:$ ... machine on no packet loss $S2$ and $S3$ only $S1$ and $S4$ only $S1$ and $S3$ only $S2$ and $S4$ only