摘要
针对密码算法的不同编译需求,提出一种不同粒度密码算子抽象方法,通过对不同粒度算子的编译优化及映射来解决高阶密码算子在FPGA上快速高效部署的问题。从密码算法中抽象出热点算子来构建算子库,使用多级编译优化对密码算法进行优化与部署,并通过数据张量化以及寄存器优化方法来提升高阶密码算子在VTA硬件架构的部署及运算效率。实验结果表明,采用张量化和寄存器优化方法,执行效率较原始编译部署方法提升了32倍,较OpenCL提升约34倍,且可以根据构建的算子库对密码算法进行快速开发与实现。
Aiming at the different compilation requirements of cryptographic algorithms,a method of abstracting cryptographic operators at different granularities is proposed.This method addresses the issue of rapid and efficient deployment of high-order cryptographic operators on FPGAs through compilation optimization and mapping of operators at different granularities.Hotspot operators are abstracted from cryptographic algorithms to construct an operator library.Multi-level compilation optimization is used to optimize and deploy cryptographic algorithms.Data tensorization and register optimization methods are employed to enhance the deployment and computation efficiency of high-order cryptographic operators on the VTA hardware architecture.Experimental results show that the execution efficiency using tensorization and register optimization methods is 32 times higher than the original compilation and deployment methods,and approximately 34 times higher than OpenCL.Additionally,the constructed operator library allows for the rapid development and implementation of cryptographic algorithms.
作者
裴雪
魏帅
邵阳雪
于洪
葛晨洋
PEI Xue;WEI Shuai;SHAO Yangxue;YU Hong;GE Chenyang(Institute of Information Technology,Information Engineering University,Zhengzhou 450002,China;Songshan Laboratory,Zhengzhou 450046,China)
出处
《计算机科学》
CSCD
北大核心
2024年第S02期775-785,共11页
Computer Science
基金
国家重点研发计划重点专项(2022YFB4401401)
嵩山实验室项目(纳入河南省重大科技专项管理体系)(221100211100-01)。
关键词
算子抽象
编译优化
代码生成
密码算法
Operator abstraction
Compilation optimization
Code generation
Cryptographic algorithm