• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2022, Vol. 44 ›› Issue (07): 1162-1170.

• 高性能计算 • 上一篇    下一篇

国产通用处理器密码算法指令实现研究

陈子钰,何军,郭翔宇   

  1. (上海高性能集成电路设计中心,上海 201204)
  • 收稿日期:2021-11-24 修回日期:2022-01-04 接受日期:2022-07-25 出版日期:2022-07-25 发布日期:2022-07-25

Implementation of cryptographic instructions for general purpose processors

CHEN Zi-yu,HE Jun,GUO Xiang-yu   

  1. (Shanghai High-Performance Integrated Circuit  Design Center,Shanghai 201204,China )
  • Received:2021-11-24 Revised:2022-01-04 Accepted:2022-07-25 Online:2022-07-25 Published:2022-07-25

摘要: 介绍了国际主流密码算法AES和SHA,综述了当前主流通用处理器架构的密码算法指令发展现状。为提高国产通用处理器在密码安全领域的性能,设计了面向国产通用处理器的AES和SHA密码算法扩展指令集,实现了能全流水执行的AES和SHA密码算法指令执行部件,并进行了实现评估和优化。该密码算法指令执行部件的工作频率达2.0 GHz,总面积为17 644 μm2,总功耗为59.62 mW,相比软件采用原有通用指令实现,对AES密码算法的最小加速比为8.90倍,对SHA密码算法的最小加速比为4.47倍,在指令全流水执行时可达19.30倍,显著地改善了处理器执行AES和SHA密码算法的性能,有望应用于国产通用处理器并进一步提升国产通用处理器芯片在密码安全应用领域的竞争力。此外,该密码算法指令部件还可以封装成专门用于支持密码算法的IP,应用在密码安全领域的专用芯片中。

关键词: 通用处理器, AES, SHA, 密码算法, 密码算法指令, 处理器性能

Abstract: This paper introduces the international mainstream cryptographic algorithms AES and SHA, and summarizes the development status of cryptographic algorithm instructions in the current mainstream general processor architecture. In order to improve the performance of general purpose processor in the field of cryptographic security, an extended instruction set of AES and SHA cryptographic algorithm for general purpose processor is designed, and an instruction execution unit of AES and SHA cryptographic algorithm that can be fully pipeline execute are realized, evaluated and optimized. The operating frequency of the instruction execution unit can reach 2.0 GHz, the total area is 17 644 μm2, and the total power consumption is 59.62 mW. Compared with the software implementation with the gene- ral instructions, the minimum speedup for AES cryptographic algorithm is 8.90 times, the minimum speedup for SHA cryptographic algorithm is 4.47 times and its speedup can reach 19.30 times in the case of fully pipelined execution of instructions, which significantly improves the performance of the processor in executing AES and SHA cryptographic algorithms, It is expected to be applied to general purpose processors and further enhance the competitiveness of general purpose processor chips in the field of cryptographic security applications. In addition, the cryptographic algorithm instruction execution unit can also be encapsulated into an IP specially used to support cryptographic algorithm and applied to a special chip in the field of cryptographic security. 

Key words: general purpose processor, advanced encryption standard(AES), secure hash algorrithm(SHA), cryptographic algorithm, cryptographic algorithm instruction, processor performance