Performance Evaluation of Instruction Set Extensions for Long Integer Modular Arithmetic on a SPARC V8 Processor

J. Großschädl, S. Tillich, Alexander Szekely
{"title":"Performance Evaluation of Instruction Set Extensions for Long Integer Modular Arithmetic on a SPARC V8 Processor","authors":"J. Großschädl, S. Tillich, Alexander Szekely","doi":"10.1109/DSD.2007.4341542","DOIUrl":null,"url":null,"abstract":"Many important algorithms for public-key cryptography rely on computation-intensive arithmetic operations like modular exponentiation on very long integers, typically in the range of 512 and 2048 bits. Modular exponentiation is generally realized through a sequence of modular multiplications and spends the majority of execution time in simple inner loops. Speeding up these performance-critical inner loop operations with custom instructions has, therefore, a significant impact on the total execution time of public-key cryptosystems. In this paper we analyze the performance of instruction set extensions for long integer arithmetic on a SPARC V8 processor. We discuss various implementation options and optimization opportunities for both modular multiplication and exponentiation. In particular, we introduce a partial loop unrolling (PLU) technique for modular multiplication which allows to achieve large performance gains at the cost of a moderate increase in code size, while maintaining the full flexibility of a \"rolled-loop\" implementation. In addition, we study window methods for modular exponentiation and analyze their impact on performance and memory requirements. Our experimental results, obtained with an FPGA prototype of the LEON-2 SPARC V8 core, show that a full 1024-bit modular exponentiation can be performed in about 12.5 ldr 106 clock cycles, which is a reasonable value for embedded devices like smart cards or sensor nodes.","PeriodicalId":274389,"journal":{"name":"10th Euromicro Conference on Digital System Design Architectures, Methods and Tools (DSD 2007)","volume":"27 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2007-08-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"17","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"10th Euromicro Conference on Digital System Design Architectures, Methods and Tools (DSD 2007)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DSD.2007.4341542","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 17

Abstract

Many important algorithms for public-key cryptography rely on computation-intensive arithmetic operations like modular exponentiation on very long integers, typically in the range of 512 and 2048 bits. Modular exponentiation is generally realized through a sequence of modular multiplications and spends the majority of execution time in simple inner loops. Speeding up these performance-critical inner loop operations with custom instructions has, therefore, a significant impact on the total execution time of public-key cryptosystems. In this paper we analyze the performance of instruction set extensions for long integer arithmetic on a SPARC V8 processor. We discuss various implementation options and optimization opportunities for both modular multiplication and exponentiation. In particular, we introduce a partial loop unrolling (PLU) technique for modular multiplication which allows to achieve large performance gains at the cost of a moderate increase in code size, while maintaining the full flexibility of a "rolled-loop" implementation. In addition, we study window methods for modular exponentiation and analyze their impact on performance and memory requirements. Our experimental results, obtained with an FPGA prototype of the LEON-2 SPARC V8 core, show that a full 1024-bit modular exponentiation can be performed in about 12.5 ldr 106 clock cycles, which is a reasonable value for embedded devices like smart cards or sensor nodes.
长整数模运算指令集扩展在SPARC V8处理器上的性能评价
许多重要的公钥加密算法依赖于计算密集型的算术运算,比如对非常长的整数(通常在512到2048位之间)进行模幂运算。模幂运算通常是通过一系列模乘法来实现的,并且大部分执行时间都在简单的内循环中。因此,使用自定义指令加速这些对性能至关重要的内循环操作会对公钥密码系统的总执行时间产生重大影响。本文分析了长整数运算指令集扩展在SPARC V8处理器上的性能。我们讨论了模乘法和求幂的各种实现选项和优化机会。特别是,我们为模块化乘法引入了部分循环展开(PLU)技术,该技术允许以适度增加代码大小为代价获得较大的性能收益,同时保持“滚动循环”实现的全部灵活性。此外,我们研究了模求幂的窗口方法,并分析了它们对性能和内存需求的影响。我们用lion -2 SPARC V8内核的FPGA原型获得的实验结果表明,完整的1024位模块化幂运算可以在大约12.5 ldr 106时钟周期内完成,这对于智能卡或传感器节点等嵌入式设备来说是一个合理的值。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:604180095
Book学术官方微信
小红书