Title: THS: an efficient and secure SUM queries scheme for encrypted databases
Authors: Weihua Liu; Yue Yang; Fangzhou Yi; Haoshuai Gong
Addresses: Shandong Inspur Database Technology Co., Ltd., No. 1036, Langchao Road, High-tech Zone, Jinan City, Shandong Province, China ' CS, Nankai University, 38 Tongyan Road, Jinnan District, Tianjin, China ' CS, Nankai University, 38 Tongyan Road, Jinnan District, Tianjin, China ' CS, Nankai University, 38 Tongyan Road, Jinnan District, Tianjin, China
Abstract: SUM queries are one of the most important query services in outsourced encrypted databases. Many current traditional solutions rely on homomorphic encryption (HE) algorithms to perform additional calculations on encrypted data. However, the query efficiency is extremely low and the performance is poor. To address these issues, this paper proposes THS, an efficient secure database SUM query solution. The solution first establishes a B+ tree index structure and adds a field to each non-leaf node of the B+ tree to store the sum of all child nodes for that node. The solution also incorporates an efficient HE algorithm, enabling direct summation calculations and reducing computation pressure. Our solution achieves a time complexity of O(1) for SUM queries and can be flexibly integrated into any encrypted database. In scenarios with frequent SUM queries, comparative analysis with other solutions currently demonstrates that THS is significantly superior in various dimensions.
Keywords: encrypted databases; SUM queries; B+ tree; homomorphic encryption; data security; data privacy; internet of things; IoT.
DOI: 10.1504/IJCSE.2025.149775
International Journal of Computational Science and Engineering, 2025 Vol.28 No.6, pp.628 - 637
Received: 10 Jan 2024
Accepted: 05 Mar 2024
Published online: 12 Nov 2025 *