Skip to main content
. 2023 May 14;23(10):4746. doi: 10.3390/s23104746
Algorithm 4 Summation algorithm for ciphertexts.
  • 1:

    Input ciphertexts: the ciphertexts array transferred from the service provider

  • 2:

    Input evaluator: the object that performs homomorphic computations

  • 3:

    for index=1,2,,N do

  • 4:

          cciphertexts[index]

  • 5:

          evaluator.sumEachElement(c)

  • 6:

    end for

  • 7:

    Output ciphertexts back to the service provider