View full-text article in PMC Sensors (Basel). 2023 May 14;23(10):4746. doi: 10.3390/s23104746 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice 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: c←ciphertexts[index] 5: evaluator.sumEachElement(c) 6:end for 7:Output ciphertexts back to the service provider