{"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.