Efficient and Constant Time Modular Inversions Over Prime Fields

Sen Xu, Haihua Gu, Lingyun Wang, Zheng Guo, Junrong Liu, Xiangjun Lu, Dawu Gu
{"title":"Efficient and Constant Time Modular Inversions Over Prime Fields","authors":"Sen Xu, Haihua Gu, Lingyun Wang, Zheng Guo, Junrong Liu, Xiangjun Lu, Dawu Gu","doi":"10.1109/CIS.2017.00122","DOIUrl":null,"url":null,"abstract":"As an important operation, modular inversion is crucial for high-performance public key cryptosystems (PKC), especially in Elliptic curve-based schemes over prime fields. Both security and efficiency must be considered in a specific implementation. Straightforward implementation leaks side channel information which can be used for breaking Elliptic curve signature algorithm (ECDSA) through a combination attack. Modular inversion is also the most time-consuming operation which has important impact on the performance. Therefore, efficient and constant time modular inversion is an optimal option to ensure both security and efficiency. In this paper, we describe a general principle on how to construct efficient constant time modular inversion based on Fermat's little theorem (FLT) over prime fields. We give the tight upper bounder of multiplications needed in our schemes. Improvements are obtained from both algorithm architecture and Montgomery trick. We extended our scheme to NIST and Chinese Elliptic curve standard, which can save 90% multiplications. The total improvement is a factor of 2 by comparing the straightforward implementation.","PeriodicalId":304958,"journal":{"name":"2017 13th International Conference on Computational Intelligence and Security (CIS)","volume":"75 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2017 13th International Conference on Computational Intelligence and Security (CIS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CIS.2017.00122","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5

Abstract

As an important operation, modular inversion is crucial for high-performance public key cryptosystems (PKC), especially in Elliptic curve-based schemes over prime fields. Both security and efficiency must be considered in a specific implementation. Straightforward implementation leaks side channel information which can be used for breaking Elliptic curve signature algorithm (ECDSA) through a combination attack. Modular inversion is also the most time-consuming operation which has important impact on the performance. Therefore, efficient and constant time modular inversion is an optimal option to ensure both security and efficiency. In this paper, we describe a general principle on how to construct efficient constant time modular inversion based on Fermat's little theorem (FLT) over prime fields. We give the tight upper bounder of multiplications needed in our schemes. Improvements are obtained from both algorithm architecture and Montgomery trick. We extended our scheme to NIST and Chinese Elliptic curve standard, which can save 90% multiplications. The total improvement is a factor of 2 by comparing the straightforward implementation.
素域上的高效常时间模反演
模反转是高性能公钥密码系统(PKC)的重要操作,特别是在素数域上基于椭圆曲线的方案中。在具体的实现中必须同时考虑安全性和效率。简单的实现泄露了侧信道信息,可用于通过组合攻击破解椭圆曲线签名算法。模反演也是最耗时的运算,对性能有重要影响。因此,高效恒时模反演是保证安全和效率的最佳选择。本文给出了基于费马小定理在素域上构造高效常时模反演的一般原理。我们给出了在我们的方案中所需要的乘法的紧上界。从算法架构和Montgomery技巧两方面进行了改进。我们将该方案推广到NIST和中国椭圆曲线标准,可节省90%的乘法。通过比较简单的实现,总改进是原来的2倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信