Submitted:
19 August 2025
Posted:
20 August 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Background
3. Related Work
4. Materials and Methods
- The client possesses the key to encrypt and decrypt the data.
- The client encrypts the dataset and sends the encrypted dataset to the server.
- The server gets the encrypted dataset, calculates the requested statistics, and sends the encrypted result(s) to the client.
- The client then decrypts the encrypted results to get the desired results.
- Calculation of mean
- Calculation of variance
- Bubble sort
- Odd-even sort
- Bitonic sort
- Calculation of mode
- Five-point summary with bitonic sort if the length of the datasets is a power of 2 and bubble sort otherwise.
4.1. Security of the Application
5. Implementation
5.1. Limitations
- Branching: Concrete does not support branching, which means we cannot use conditional statements such as if-else. This limitation makes it difficult to implement complex algorithms, especially sorting algorithms since they rely on comparisons.
- Data Types: Concrete only supports encrypted Integers along with Boolean data types which means we cannot work with decimal or floating-point numbers. Furthermore, the division of encrypted numbers is not supported. This limitation further restricts the number of analyses that can be performed.
5.2. Calculation of Mean
5.3. Calculation of Variance
5.4. Sorting
5.5. Five-Point Summary
5.6. Mode and Frequencies
6. Results
6.1. Timing of Mean Calculations
6.2. Timing of Variance Calculations
6.3. Timing of Sorting Algorithms
6.4. Timing of Five-Point Summary Calculations
6.5. Timing of Mode Calculations
7. Discussion
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| DOAJ | Directory of open access journals |
| TLA | Three letter acronym |
| LD | Linear dichroism |
References
- Statistical Confidentiality and Personal Data Protection - Microdata - Eurostat. Available online: https://ec.europa.eu/eurostat/web/microdata/statistical-confidentiality-and-personal-data-protection# (accessed on 3 June 2025).
- 11 Confidential Information Protection and Statistical Efficiency Act (2002) | CIO. Available online: https://www.cio.gov/handbook/it-laws/cipsea/ (accessed on 3 June 2025).
- Bureau, U.C. Statistical Safeguards.
- Data Protection and Privacy Policy. Available online: https://www.census.gov/about/policies/privacy.html (accessed on 3 June 2025).
- Statistical Confidentiality | Insee. Available online: https://www.insee.fr/en/information/2388575 (accessed on 3 June 2025).
- Statistical Standards Program - Confidentiality Procedures. Available online: https://nces.ed.gov/statprog/confproc.asp (accessed on 3 June 2025).
- Differential Privacy for Census Data Explained. Available online: https://www.ncsl.org/technology-and-communication/differential-privacy-for-census-data-explained (accessed on 3 June 2025).
- Decennial Census Disclosure Avoidance. Available online: https://www.census.gov/programs-surveys/decennial-census/disclosure-avoidance.html (accessed on 3 June 2025).
- Welcome | Concrete. Available online: https://docs.zama.ai/concrete (accessed on 3 June 2025).
- Chillotti, I.; Gama, N.; Georgieva, M.; Izabachène, M. TFHE: Fast Fully Homomorphic Encryption Over the Torus. Journal of Cryptology 2020, 33, 34–91. [Google Scholar] [CrossRef]
- Gentry, C. Fully Homomorphic Encryption Using Ideal Lattices. Proceedings of the Annual ACM Symposium on Theory of Computing 2009, 169–178. [Google Scholar] [CrossRef]
- Chillotti, I.; Gama, N.; Georgieva, M.; Izabachène, M. Faster Fully Homomorphic Encryption: Bootstrapping in Less than 0.1 Seconds. Cryptology ePrint Archive 2016. [Google Scholar]
- Tassoni, P. A Fully Homomorphic Encryption Application: SHA256 on Encrypted Input. 2023. [Google Scholar]
- Zama - Open Source Cryptography. Available online: https://www.zama.ai/ (accessed on 3 June 2025).
- MLIR. Available online: https://mlir.llvm.org/ (accessed on 3 June 2025).
- Microsoft SEAL: Fast and Easy-to-Use Homomorphic Encryption Library. Available online: https://www.microsoft.com/en-us/research/project/microsoft-seal/ (accessed on 1 August 2025).
- IBM Z Content Solutions | Fully Homomorphic Encryption. Available online: https://www.ibm.com/support/z-content-solutions/fully-homomorphic-encryption/ (accessed on 1 August 2025).
- Feng, X.M.; Li, X.D.; Zhou, S.Y.; Jin, X. Homomorphic Comparison Method Based on Dynamically Polynomial Composite Approximating Sign Function. 2023 IEEE Conference on Communications and Network Security, CNS 2023; 2023; pp. 1–9. [Google Scholar] [CrossRef]
- Hong, S.; Kim, S.; Choi, J.; Lee, Y.; Cheon, J.H. Efficient Sorting of Homomorphic Encrypted Data with K-Way Sorting Network. IEEE Transactions on Information Forensics and Security 2021, 16, 4389–4404. [Google Scholar] [CrossRef]
- Malvi, N.B.; Shylashree, N. Innovative Homomorphic Sorting of Environmental Data in Area Monitoring Wireless Sensor Networks. IEEE Access 2024, 12, 59260–59272. [Google Scholar] [CrossRef]
- Wang, C.; Chen, J.; Zhang, X.; Cheng, H. An Efficient Fully Homomorphic Encryption Sorting Algorithm Using Addition Over TFHE. In Proceedings of the International Conference on Parallel and Distributed Systems - ICPADS; 2023; 2023-Janua, pp. 226–233. [Google Scholar] [CrossRef]
- Gong, Y.; Chang, X.; Mišić, J.; Mišić, V.B.; Wang, J.; Zhu, H. Practical Solutions in Fully Homomorphic Encryption: A Survey Analyzing Existing Acceleration Methods. Cybersecurity 2024, 7. [Google Scholar] [CrossRef]
- Bergerat, L.; Boudi, A.; Bourgerie, Q.; Chillotti, I.; Ligier, D.; Orfila, J.-B.; Tap, S. Parameter Optimization and Larger Precision for (T)FHE. J. Cryptol. 2023, 36. [Google Scholar] [CrossRef]
- Raj, R.; Kurt Peker, Y.; Mutlu, Z.D. Blockchain and Homomorphic Encryption for Data Security and Statistical Privacy. Electronics 2024, 13, 3050. [Google Scholar] [CrossRef]











| Range of Data Points | Number of Data Points | Average Time (seconds) |
|---|---|---|
| 15 | 250 | 0.2591563225 |
| 15 | 500 | 0.2949240685 |
| 15 | 750 | 0.38118453 |
| 15 | 1000 | 0.4087949276 |
| 25 | 250 | 0.2753661633 |
| 25 | 500 | 0.396542263 |
| 25 | 750 | 0.3986121178 |
| 25 | 1000 | 0.4104460239 |
| 50 | 250 | 0.383390665 |
| 50 | 500 | 0.3923248768 |
| 50 | 750 | 0.4271043301 |
| 50 | 1000 | 0.5118193626 |
| 100 | 250 | 0.4524414539 |
| 100 | 500 | 0.4589883327 |
| 100 | 750 | 0.5494303226 |
| 100 | 1000 | 0.5682396412 |
| 150 | 250 | 0.4333281517 |
| 150 | 500 | 0.5372673035 |
| 150 | 750 | 0.545094347 |
| 150 | 1000 | 0.5996977806 |
| 200 | 250 | 0.4320604324 |
| 200 | 500 | 0.5359194756 |
| 200 | 750 | 0.5851401329 |
| 200 | 1000 | 0.6423121452 |
| 255 | 250 | 0.4070921421 |
| 255 | 500 | 0.5407989502 |
| 255 | 750 | 0.6363827229 |
| 255 | 1000 | 0.6393474102 |
| Range of Data Points | Number of Data Points | Average Time (seconds) |
|---|---|---|
| 5 | 5 | 1.246793652 |
| 5 | 10 | 3.375664091 |
| 5 | 15 | 33.91963091 |
| 10 | 5 | 3.607125664 |
| 10 | 10 | 10.76089249 |
| 15 | 5 | 3.438992119 |
| 25 | 5 | 3.458190584 |
| Range of Data Points | Number of Data Points | Bubble Sort | Odd-Even Sort | Bitonic Sort |
|---|---|---|---|---|
| 15 | 4 | 0.9289829731 | 0.7964228153 | 0.8072038174 |
| 15 | 8 | 3.802570963 | 3.864653492 | 3.272667646 |
| 15 | 16 | 24.73645005 | 24.69945812 | 16.30537062 |
| 25 | 4 | 2.856794691 | 2.788843584 | 2.765028334 |
| 25 | 8 | 12.97878513 | 13.01196995 | 11.17189612 |
| 25 | 16 | 56.15869894 | 55.68540888 | 37.06650977 |
| 50 | 4 | 6.555260181 | 6.388585186 | 6.457304382 |
| 50 | 8 | 28.90009408 | 29.26282926 | 25.16641912 |
| 50 | 16 | 130.86719 | 129.7057092 | 86.97843432 |
| 100 | 4 | 17.98627133 | 18.19524159 | 17.79985828 |
| 100 | 8 | 75.5639575 | 76.38956137 | 66.86756725 |
| 100 | 16 | 343.5751762 | 339.6416773 | 225.6959048 |
| Range of Data Points | Number of Data Points | Bubble Sort | Odd-Even Sort |
|---|---|---|---|
| 15 | 5 | 1.537935781 | 1.378816271 |
| 15 | 10 | 6.759463835 | 10.02927947 |
| 15 | 15 | 21.59084606 | 21.59491601 |
| 25 | 5 | 4.542301035 | 4.644551325 |
| 25 | 10 | 20.7969069 | 20.76616225 |
| 25 | 15 | 49.09692616 | 49.09074335 |
| 50 | 5 | 10.75415287 | 10.73756552 |
| 50 | 10 | 47.21169949 | 47.18740268 |
| 50 | 15 | 110.4754518 | 110.6606554 |
| 100 | 5 | 26.53084812 | 26.59446735 |
| 100 | 10 | 120.4038908 | 121.4246564 |
| 100 | 15 | 283.6238332 | 291.6370564 |
| Range of Data Points | Number of Data Points | Average Time (seconds) |
|---|---|---|
| 15 | 4 | 0.9810014725 |
| 15 | 8 | 3.417602873 |
| 15 | 16 | 17.51649423 |
| 25 | 4 | 2.912345314 |
| 25 | 8 | 11.7951118 |
| 25 | 16 | 39.08947101 |
| 50 | 4 | 6.989213991 |
| 50 | 8 | 26.62157102 |
| 50 | 16 | 90.04364886 |
| 100 | 4 | 16.12305002 |
| 100 | 8 | 64.05258303 |
| 100 | 16 | 218.2426797 |
| Range of Data Points | Number of Data Points | Average Time (seconds) |
|---|---|---|
| 15 | 5 | 1.417282438 |
| 15 | 10 | 6.477654457 |
| 15 | 15 | 23.12285528 |
| 25 | 5 | 5.151349926 |
| 25 | 10 | 21.98973017 |
| 25 | 15 | 52.02675552 |
| 50 | 5 | 11.52323828 |
| 50 | 10 | 49.68436537 |
| 50 | 15 | 116.3990614 |
| 100 | 5 | 27.65277104 |
| 100 | 10 | 122.0125351 |
| 100 | 15 | 282.037562 |
| Range of Data Points | Number of Data Points | Average Time (seconds) |
|---|---|---|
| 15 | 5 | 1.134563398 |
| 15 | 10 | 2.909134007 |
| 15 | 15 | 5.814851332 |
| 25 | 5 | 1.949247265 |
| 25 | 10 | 7.032726526 |
| 25 | 15 | 14.75217366 |
| 50 | 5 | 5.563875389 |
| 50 | 10 | 15.28342657 |
| 50 | 15 | 29.15656028 |
| 100 | 5 | 12.18101587 |
| 100 | 10 | 36.2555759 |
| 100 | 15 | 60.19268651 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 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 (http://creativecommons.org/licenses/by/4.0/).