Design and Implementation of SM4 Coprocessor Based on RISC-V

Shangshou Wang, Lei Wang, Huaili Guo, Zheng Wang
{"title":"Design and Implementation of SM4 Coprocessor Based on RISC-V","authors":"Shangshou Wang, Lei Wang, Huaili Guo, Zheng Wang","doi":"10.1109/ISCTIS58954.2023.10213118","DOIUrl":null,"url":null,"abstract":"A co-processor with SM4 algorithm is designed for information security hazards and the application of RISC-V processor and SM4 algorithm in the security field. The co-processor is designed with a cyclic iterative structure to save resources, while four extension instructions are customized and embedded in the C program using inline assembly to facilitate calls, and the SM4 algorithm is accelerated by hardware and software co-design with independent memory access channels. Finally, the co-processor is described and simulated at the behavioral level by hardware description language, and the co-processor-equipped Hummingbird E203 is deployed on AX7103 FPGA development board for synthesis and analysis. The comprehensive results show that the overall number of encryption and decryption instructions of the SM4 algorithm is reduced by 99.84% and the number of cycles is reduced by 99.62% after adopting the coprocessor, and the proposed design scheme can significantly improve the computing efficiency of the SM4 algorithm.","PeriodicalId":334790,"journal":{"name":"2023 3rd International Symposium on Computer Technology and Information Science (ISCTIS)","volume":"20 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-07-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 3rd International Symposium on Computer Technology and Information Science (ISCTIS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ISCTIS58954.2023.10213118","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

A co-processor with SM4 algorithm is designed for information security hazards and the application of RISC-V processor and SM4 algorithm in the security field. The co-processor is designed with a cyclic iterative structure to save resources, while four extension instructions are customized and embedded in the C program using inline assembly to facilitate calls, and the SM4 algorithm is accelerated by hardware and software co-design with independent memory access channels. Finally, the co-processor is described and simulated at the behavioral level by hardware description language, and the co-processor-equipped Hummingbird E203 is deployed on AX7103 FPGA development board for synthesis and analysis. The comprehensive results show that the overall number of encryption and decryption instructions of the SM4 algorithm is reduced by 99.84% and the number of cycles is reduced by 99.62% after adopting the coprocessor, and the proposed design scheme can significantly improve the computing efficiency of the SM4 algorithm.
基于RISC-V的SM4协处理器的设计与实现
针对信息安全隐患以及RISC-V处理器和SM4算法在安全领域的应用,设计了SM4算法协处理器。采用循环迭代结构设计协处理器,节省资源;采用内联汇编方式定制4条扩展指令并嵌入C程序中,方便调用;采用独立内存访问通道的软硬件协同设计加速SM4算法。最后,利用硬件描述语言对协处理器进行行为层面的描述和仿真,并将搭载协处理器的蜂鸟E203部署在AX7103 FPGA开发板上进行综合分析。综合结果表明,采用协处理器后,SM4算法的加解密总指令数减少了99.84%,周期数减少了99.62%,提出的设计方案可以显著提高SM4算法的计算效率。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信