计算机与数字工程2023,Vol.51Issue(11):2483-2489,7.DOI:10.3969/j.issn.1672-9722.2023.11.002
基于OpenCL的HMAC-SHA256算法优化与实现
Optimization and Implementation of HMAC-SHA256 Algorithm Based on OpenCL
摘要
Abstract
As one of the mainstream message authentication algorithms,the HMAC algorithm runs slowly in software,and the traditional FPGA hardware implementation is difficult to update and maintain.To solve the above problems,a customized computing architecture of HMAC-SHA256 algorithm is designed and implemented in a high-level description method based on OpenCL.Spe-cifically,it includes calculation path optimization,storage structure and lookup table optimization,and HMAC-SHA256 full pipe-line structure design.Based on OpenCL instruction pipeline,data channel vectorization,data storage optimization and other meth-ods,the FPGA custom computing architecture of HMAC-SHA256 algorithm is realized.The experimental results show that on the Intel Stratix 10 FPGA platform,the achieved throughput rate of HMAC-SHA256 reaches 174.236Gbps,compared with Intel Core I7-10700 CPU,the performance is improved by 656%,and the energy efficiency is improved by 1514%.Compared with the NVID-IA GTX 1650 SUPER GPU,the performance is improved by 14%and the energy efficiency is improved by 288%.关键词
FPGA/SHA-256/HMAC-SHA256/OpenCL/硬件加速Key words
FPGA/SHA-256/HMAC-SHA256/OpenCL/hardware acceleration分类
信息技术与安全科学引用本文复制引用
郑博文,聂一,柴志雷..基于OpenCL的HMAC-SHA256算法优化与实现[J].计算机与数字工程,2023,51(11):2483-2489,7.基金项目
国家自然科学基金项目(编号:61972180)资助. (编号:61972180)