信息网络安全 ›› 2025, Vol. 25 ›› Issue (11): 1707-1717.doi: 10.3969/j.issn.1671-1122.2025.11.005

• 专题论文:机密计算 • 上一篇    下一篇

基于机密计算的键值数据存储与操作优化方法研究

任丰原1,2, 张馨月1, 雷卓祎1, 刘忻1()   

  1. 1.兰州大学信息科学与工程学院兰州 730099
    2.清华大学信息科学技术学院北京 100084
  • 收稿日期:2025-07-27 出版日期:2025-11-10 发布日期:2025-12-02
  • 通讯作者: 刘忻 xinl@lzu.edu.cn
  • 作者简介:任丰原(1970—),男,甘肃,教授,博士,CCF会员,主要研究方向为系统结构、工业互联网|张馨月(2006—),女,甘肃,本科,主要研究方向为机密计算|雷卓祎(2002—),男,山西,硕士研究生,主要研究方向为机密计算|刘忻(1988—),男,甘肃,副教授,博士,CCF会员,主要研究方向为机密计算、人工智能
  • 基金资助:
    国家自然科学基金(62132007);甘肃省重点研发计划(23YFGA0010)

Research on Key-Value Data Storage and Operation Optimization Method Based on Confidential Computing

REN Fengyuan1,2, ZHANG Xinyue1, LEI Zhuoyi1, LIU Xin1()   

  1. 1. School of Information Science & Engineering, Lanzhou University, Lanzhou 730099, China
    2. School of Information Science and Technology, Tsinghua University, Beijing 100084, China
  • Received:2025-07-27 Online:2025-11-10 Published:2025-12-02

摘要:

机密计算旨在保护正在使用中的数据,基于硬件的TEE可使受保护的数据无法被主内存中的应用程序访问。为优化机密计算技术在使用过程中的换页开销和系统I/O性能,针对键值数据的查询与更新操作,文章基于SGX1技术实现基于机密计算的键值数据存储与操作优化方法。该方法将高频查询的键值数据以明文形式存储在TEE的最小堆中,主要数据结构以密文哈希表形式存储在不受保护的主内存中,在利用TEE优化热数据查询操作时,利用数据标签优化主内存中冷数据的查询与更新操作。实验结果表明,与直接对键值数据进行加解密以实现查询与更新的方法相比,该方法效率更高,能够有效避免换页开销并提升系统的I/O性能。

关键词: 机密计算, SGX, 键值数据存储

Abstract:

Confidential computing aims to protect data in use by making it inaccessible to applications in main memory through a hardware-based TEE. To optimize the paging overhead and system I/O performance of confidential computing technology during operation, this article implemented a key-value data storage and operation optimization method based on confidential computing in light of SGX1 technology for key-value data query and update operations. This approach stored frequently queried key-value data in plaintext within the TEE’s min-heap, while the primary data structures were maintained as ciphertext hash tables in unprotected main memory. By leveraging the TEE to optimize hot data queries, the method also enhanced cold data queries and updates in main memory through the use of data tags. Experimental results demonstrate that this method is more efficient than directly encrypting and decrypting key-value data for query and update operations, effectively reducing paging overhead and improving system I/O performance.

Key words: confidential computing, SGX, key-value data storage

中图分类号: