Short-Iteration Constant-Time GCD and Modular Inversion

被引:1
|
作者
Jin, Yaoan [1 ]
Miyaji, Atsuko [1 ,2 ]
机构
[1] Osaka Univ, Grad Sch Engn, Suita, Osaka, Japan
[2] Japan Adv Inst Sci & Technol, Nomi, Japan
关键词
Constant-Time Modular Inversion (CTMI); Constant-Time Greatest Common Divisor (CT-GCD); Side Channel Attack (SCA);
D O I
10.1007/978-3-031-25319-5_5
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Even theoretically secure cryptosystems, digital signatures, etc. may not be secure after being implemented on the Internet of Things (IoT) devices and PCs because of Side-Channel Attack (SCA). Since RSA key generation and ECDSA need GCD computations or modular inversions, which are often computed by Binary Euclidean Algorithm (BEA) or Binary Extended Euclidean Algorithm (BEEA), the SCA weakness of BEA and BEEA becomes serious. For countermeasures, the Constant-Time GCD (CT-GCD) and Constant-Time Modular Inversion (CTMI) algorithms are good choices. Modular inversion based on Fermat's Little Theorem (FLT) can work in constant time but it is not efficient for general inputs. Two CTMI algorithms, named BOS and BY in this paper, are proposed by Joppe W. Bos and Bernstein, Yang respectively, which are based on the idea of BEA. However, BOS has complicated computations during one iteration and BY uses more iterations. Small number of iterations and simple computations during one iteration are good characteristics of a constant-time algorithm. Based on this view, this paper proposes new short-iteration CT-GCD and CTMI algorithms over F-p borrowing a simple idea of BEA. Our algorithms are evaluated from the theoretical point of view. Compared with BOS, BY and the improved version of BY, our short-iteration algorithms are experimentally demonstrated to be faster than theirs.
引用
收藏
页码:82 / 99
页数:18
相关论文
共 50 条
  • [31] Implementation of a constant-time dynamic storage allocator
    Masmano, M.
    Ripoll, I.
    Real, J.
    Crespo, A.
    Wellings, A. J.
    SOFTWARE-PRACTICE & EXPERIENCE, 2008, 38 (10): : 995 - 1026
  • [32] CONSTANT-TIME PARALLEL RECOGNITION OF SPLIT GRAPHS
    NIKOLOPOULOS, SD
    INFORMATION PROCESSING LETTERS, 1995, 54 (01) : 1 - 8
  • [33] CONSTANT-TIME CONVEXITY PROBLEMS ON RECONFIGURABLE MESHES
    BOKKA, V
    GURLA, H
    OLARIU, S
    SCHWING, JL
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 1995, 27 (01) : 86 - 99
  • [34] Constant-time randomized parallel string matching
    Crochemore, M
    Galil, Z
    Gasieniec, L
    Park, K
    Rytter, W
    SIAM JOURNAL ON COMPUTING, 1997, 26 (04) : 950 - 960
  • [35] Constant-time distributed dominating set approximation
    Fabian Kuhn
    Roger Wattenhofer
    Distributed Computing, 2005, 17 : 303 - 310
  • [36] Constant-time Monocular Self-Calibration
    Keivan, Nima
    Sibley, Gabe
    2014 IEEE INTERNATIONAL CONFERENCE ON ROBOTICS AND BIOMIMETICS IEEE-ROBIO 2014, 2014, : 1590 - 1595
  • [37] Constant-Time Filtering Using Shiftable Kernels
    Chaudhury, Kunal Narayan
    IEEE SIGNAL PROCESSING LETTERS, 2011, 18 (11) : 651 - 654
  • [38] Constant-time distributed dominating set approximation
    Kuhn, F
    Wattenhofer, R
    DISTRIBUTED COMPUTING, 2005, 17 (04) : 303 - 310
  • [39] A new constant-time parallel algorithm for merging
    Hazem M. Bahig
    The Journal of Supercomputing, 2019, 75 : 968 - 983
  • [40] A new constant-time parallel algorithm for merging
    Bahig, Hazem M.
    JOURNAL OF SUPERCOMPUTING, 2019, 75 (02): : 968 - 983