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

J4 ›› 2015, Vol. 37 ›› Issue (08): 1417-1422.

• 论文 •    下一篇

小面积高性能的SHA-1/SHA-256/SM3 IP复用电路的设计

郑朝霞,田园,蔚然,高峻   

  1. (华中科技大学光学与电子信息学院,湖北 武汉 430074)
  • 收稿日期:2014-08-19 修回日期:2014-10-11 出版日期:2015-08-25 发布日期:2015-08-25
  • 基金资助:

    国家自然科学基金资助项目(61006020,61376031);中央高校基本科研业务费专项资金资助项目(2014TS041)

An SHA-1/SHA-256/SM3 IP multiplexing circuit
with small area and high performance

ZHENG Zhaoxia,TIAN Yuan,WEI Ran,GAO Jun     

  1. (School of Optical and Electronic Information,Huazhong University  of Science & Technology,Wuhan 430074,China)
  • Received:2014-08-19 Revised:2014-10-11 Online:2015-08-25 Published:2015-08-25

摘要:

Hash算法的快速发展导致了两个问题,一个是旧算法与新算法在应用于产品时更新换代的问题,另一个是基于应用环境的安全性选择不同算法时的复用问题。为解决这两个问题,实现了SHA-1/SHA256/SM3算法的IP复用电路,电路采用循环展开方式,并加入流水线的设计,在支持多种算法的同时,还具有小面积高性能的优势。首先,基于Xilinx Virtex-6 FPGA对电路设计进行性能分析,电路共占用776 Slice单元,最大吞吐率可以达到0.964 Gbps。然后,采用SMIC 0.13 μm CMOS工艺实现了该设计,最后电路的面积是30.6k门,比单独实现三种算法的电路面积总和减小了41.7%,工作频率是177.62 MHz,最大吞吐率达到1.34 Gbps。

关键词: Hash算法, SHA-1, SHA-256, SM3, IP复用

Abstract:

Abstract:The rapid development of Hash algorithm leads to two problems: one is the replacement of the old algorithms with the new ones when the products are upgraded, and the other is how to choose from different algorithms according to the security of the application environments. To solve the problems mentioned above, we design an SHA-1/SHA-256/SM3 IP multiplexing circuit, which makes use of the  loop unfolding technique and adds pipelines to each circuit. The circuit not only supports a variety of hash algorithms, but also features small area and high performance. The design is first implemented on a Xilinx Virtex-6 FPGA. It requires 776 slices and achieves a maximum throughput of 0.964Gbps. Then we also implement every circuit using the SMIC 0.13μm CMOS technology. The area of the circuit is 30.6k gates, which is reduced by 41.7% than that of the three circuits combined. Besides, the operating frequency of the circuit is 177.62 MHz, and the maximum throughput reaches 1.34Gbps.

Key words: Hash algorithm;SHA-1;SHA-256;SM3;IP multiplexing