Optimization and Implementation of HMAC-SHA256 Algorithm Based on OpenCL
ZHENG Bowen
NIE Yi
CHAI Zhilei
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%.
Keywords:FPGASHA-256HMAC-SHA256OpenCLhardware acceleration
Publication Date:2023-11-20
Online Publishing Date:2025-08-15(First online date of this platform, not the publication date of the document)
Pages:7( 2483-2489 )
