CPC H04L 9/008 (2013.01) [H04L 9/06 (2013.01); H04L 2209/125 (2013.01)] | 13 Claims |
1. A method for processing homomorphic ciphertexts, the method comprising:
receiving an input of an instruction for sorting a plurality of homomorphic ciphertexts;
sorting the homomorphic ciphertexts by using a 5-way sorter which can sort five homomorphic ciphertexts in a single stage; and
outputting the sorted homomorphic ciphertexts, wherein the 5-way sorter is configured to:
based on a first homomorphic ciphertext, a second homomorphic ciphertext, and a third homomorphic ciphertext being input, and using a comparison function between two input values, calculate a larger value and a smaller value between the first homomorphic ciphertext and the second homomorphic ciphertext,
input the larger value and the third homomorphic ciphertext into the comparison function and output a first output value,
input the smaller value and the third homomorphic ciphertext into the comparison function and output a third output value, and
calculate a second output value by subtracting the first output value and the third output value from a summed-up value of the first to third homomorphic ciphertexts and output the second output value.
|