Grade protocol

A group of k students (s1 to sk) is given each a secret grade gi between 0 and m-1. The students want to compute the sum of their grades without disclosing them. To this aim they produce k random numbers between 0 and Latex formula, such that the number ri is known only to the students si and si. Then each student si declares a number Latex formula, and the sum of all grades is equivalent to the sum of the declarations modulo n.

To prove the security of the protocol, and thus the secrecy of the grades, we need to show that the information the attacker gains by knowing the declarations and the sum is the same as the information he would gain by knowing only the sum. The leakage of the protocol for different numbers of students and grades is shown in the tables below; on the left the leakage of the Grade protocol and on the right the leakage of a protocol declaring only the final sum. The tables are identical, proving that the attacker that knowing the students declarations and the sum of the grades does not provide any more information to the attacker than just knowing the sum of the grades.

Leakage of the grade protocol
Number of students
2 3 4 5
Number of grades 2 1.500 1.811 2.030 2.198
3 2.197 2.525 2.745 2.910
4 2.655 2.984 3.201 3.365
5 2.999 3.325 3.541 timeout
Leakage of the sum of the grades
Number of students
2 3 4 5
Number of grades

2 1.500 1.811 2.030 2.198
3 2.197 2.525 2.745 2.910
4 2.655 2.984 3.201 3.365
5 2.999 3.325 3.541 timeout