JP2010122246A - 逆元演算装置および逆元演算プログラム - Google Patents
逆元演算装置および逆元演算プログラム Download PDFInfo
- Publication number
- JP2010122246A JP2010122246A JP2008292877A JP2008292877A JP2010122246A JP 2010122246 A JP2010122246 A JP 2010122246A JP 2008292877 A JP2008292877 A JP 2008292877A JP 2008292877 A JP2008292877 A JP 2008292877A JP 2010122246 A JP2010122246 A JP 2010122246A
- Authority
- JP
- Japan
- Prior art keywords
- intermediate variable
- value
- inverse element
- variable
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
【解決手段】逆元演算装置10において,入力部11は,逆元を求める値Xと有限体の法Pとを入力し,中間変数A,B,α,βの設定を行う。条件付中間変数交換部13は,条件に応じて,A−B間,α−β間での値の交換,A−B間,α−β間での減算処理を行う。法符号調整部14は,αの正負に応じて中間法変数P’に−PまたはPを設定する。条件付法加算・シフト部15は,αが奇数である場合にαにP’を加算し,Aおよびαの値を1/2する。変換終了判定部16は,Aの値が1になれば中間変数変換部12による処理の終了を判定する。中間変数符号調整部17は,αが負である場合にαにPを加算する。出力部18は,最終的なαの値を求められた逆元として出力する。
【選択図】図1
Description
格子篩法に基づく一般数体篩法を利用した素因数分解アルゴリズムでは,上記の計算を大量の(p,r)に対して高速に演算する必要がある。上記の計算では,特にmod pの逆元演算が困難である。
2.拡張バイナリ法
3.拡張レーマー法
これらのGCD演算アルゴリズムの中で,拡張バイナリ法に基づくGCD演算は,処理の内部において割算を利用しない点でハードウェア実装に向いた演算方法であることが知られている(例えば,非特許文献1参照)。
A. Menezes,P. Ooscot ,S. Vanstone ,"Handbook of Applied Cryptography",14.4.3節 Algorithm14.61 ,CRC press ,1997. Takagi,"A VLSI Algorithm for Modular Division Based on the Binary GCD Algorithm ",IEICE Trans Fundamentals Vol. E81-A ,No5. 1998.
出力:s=−(a1+b1*r)*(a0+b0*r)-1 mod p
ただし,rは絶対値が32bit未満の整数であり,pは32ビット以下の素数であるものとする。
11 入力部
12 中間変数変換部
13 条件付中間変数交換部
14 法符号調整部
15 条件付法加算・シフト部
16 変換終了判定部
17 中間変数符号調整部
18 出力部
Claims (2)
- 拡張バイナリ法に基づくGCD演算を用いて有限体の逆元を計算する逆元演算装置であって,
逆元を求めたい値と有限体の法とを入力し,演算結果が逆元の値となる特定の中間変数を含む複数の中間変数の設定を行う入力部と,
条件に応じて,所定の中間変数間での値の交換,または所定の中間変数間での減算を行う条件付中間変数交換部と,
前記特定の中間変数の値が奇数である場合に前記特定の中間変数に対する前記有限体の法の加算または減算を前記特定の中間変数の符号に応じて切り換えて行い,前記特定の中間変数を含む所定の中間変数の値を1/2する条件付法加算・シフト部と,
所定の中間変数の値によって,前記条件付中間変数交換部,前記条件付法加算・シフト部による処理の終了を判定する変換終了判定部と,
前記特定の中間変数の符号が負である場合に,前記特定の中間変数に前記有限体の法を加算する中間変数符号調整部と,
前記特定の中間変数の値を求められた逆元の値として出力する出力部とを備える
ことを特徴とする逆元演算装置。 - 拡張バイナリ法に基づくGCD演算を用いて有限体の逆元を計算する逆元演算プログラムであって,
コンピュータを,
逆元を求めたい値と有限体の法とを入力し,演算結果が逆元の値となる特定の中間変数を含む複数の中間変数の設定を行う入力部と,
条件に応じて,所定の中間変数間での値の交換,または所定の中間変数間での減算を行う条件付中間変数交換部と,
前記特定の中間変数の値が奇数である場合に前記特定の中間変数に対する前記有限体の法の加算または減算を前記特定の中間変数の符号に応じて切り換えて行い,前記特定の中間変数を含む所定の中間変数の値を1/2する条件付法加算・シフト部と,
所定の中間変数の値によって,前記条件付中間変数交換部,前記条件付法加算・シフト部による処理の終了を判定する変換終了判定部と,
前記特定の中間変数の符号が負である場合に,前記特定の中間変数に前記有限体の法を加算する中間変数符号調整部と,
前記特定の中間変数の値を求められた逆元の値として出力する出力部として
機能させるための逆元演算プログラム。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008292877A JP2010122246A (ja) | 2008-11-17 | 2008-11-17 | 逆元演算装置および逆元演算プログラム |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008292877A JP2010122246A (ja) | 2008-11-17 | 2008-11-17 | 逆元演算装置および逆元演算プログラム |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010122246A true JP2010122246A (ja) | 2010-06-03 |
Family
ID=42323682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008292877A Pending JP2010122246A (ja) | 2008-11-17 | 2008-11-17 | 逆元演算装置および逆元演算プログラム |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010122246A (ja) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020013336A (ja) * | 2018-07-18 | 2020-01-23 | 富士通株式会社 | 並列処理装置、リダクション演算システム及びリダクション演算方法 |
CN112805770A (zh) * | 2018-10-10 | 2021-05-14 | 日本电信电话株式会社 | 秘密右移位运算系统、秘密除法运算系统、它们的方法、秘密计算装置以及程序 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002175180A (ja) * | 2000-12-06 | 2002-06-21 | Matsushita Electric Ind Co Ltd | 逆数演算方法及び逆数演算装置並びに逆数演算プログラムを記録したコンピュータ読み取り可能な記録媒体 |
JP2003288015A (ja) * | 2002-03-28 | 2003-10-10 | Matsushita Electric Ind Co Ltd | 逆元演算装置、逆元演算方法、rsa鍵対生成装置、rsa鍵対生成方法 |
-
2008
- 2008-11-17 JP JP2008292877A patent/JP2010122246A/ja active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002175180A (ja) * | 2000-12-06 | 2002-06-21 | Matsushita Electric Ind Co Ltd | 逆数演算方法及び逆数演算装置並びに逆数演算プログラムを記録したコンピュータ読み取り可能な記録媒体 |
JP2003288015A (ja) * | 2002-03-28 | 2003-10-10 | Matsushita Electric Ind Co Ltd | 逆元演算装置、逆元演算方法、rsa鍵対生成装置、rsa鍵対生成方法 |
Non-Patent Citations (1)
Title |
---|
JPN6012059347; Lorencz, R.: 'New Algorithm for Classical Modular Inverse' Cryptographic Hardware and Embedded Systems - CHES 2002 LNCS 2523, 2003, pp. 57-70 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020013336A (ja) * | 2018-07-18 | 2020-01-23 | 富士通株式会社 | 並列処理装置、リダクション演算システム及びリダクション演算方法 |
JP7077839B2 (ja) | 2018-07-18 | 2022-05-31 | 富士通株式会社 | 並列処理装置、リダクション演算システム及びリダクション演算方法 |
CN112805770A (zh) * | 2018-10-10 | 2021-05-14 | 日本电信电话株式会社 | 秘密右移位运算系统、秘密除法运算系统、它们的方法、秘密计算装置以及程序 |
CN112805770B (zh) * | 2018-10-10 | 2023-10-03 | 日本电信电话株式会社 | 秘密右移位运算系统及方法、秘密除法运算系统及方法、秘密计算装置以及记录介质 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7904498B2 (en) | Modular multiplication processing apparatus | |
EP1708081B1 (en) | Method and device for calculating a Montgomery conversion parameter | |
CN109814838B (zh) | 获取加解密运算中的中间结果组的方法、硬件装置和系统 | |
JP4180024B2 (ja) | 乗算剰余演算器及び情報処理装置 | |
CN111385092B (zh) | 使用信息盲化的密码装置及其密码处理方法 | |
Pornin | Optimized binary gcd for modular inversion | |
JP2004227344A (ja) | 乗算器及び暗号回路 | |
JP4170267B2 (ja) | 乗算剰余演算器及び情報処理装置 | |
JP2010122246A (ja) | 逆元演算装置および逆元演算プログラム | |
KR101977873B1 (ko) | 하드웨어 구현된 모듈러 역원 모듈 | |
JP5175983B2 (ja) | 演算装置 | |
Will et al. | Computing mod without mod | |
WO2016181978A1 (ja) | 行列作用装置、行列作用方法、およびプログラム | |
US8407270B2 (en) | Methods of calculating negative inverse of modulus | |
JP2000207387A (ja) | 演算装置及び暗号処理装置 | |
Arazi et al. | On calculating multiplicative inverses modulo $2^{m} $ | |
WO2020037565A1 (zh) | 模逆运算器、模逆运算方法及安全系统 | |
KR100946256B1 (ko) | 다정도 캐리 세이브 가산기를 이용한 듀얼필드상의확장성있는 몽고매리 곱셈기 | |
JP6973677B1 (ja) | 逆数算出方法、装置、およびプログラム | |
JP7286239B2 (ja) | 演算処理方法、演算処理装置、及び半導体装置 | |
JP2004177582A (ja) | 楕円曲線暗号装置、楕円曲線暗号演算方法 | |
US7480380B2 (en) | Method for efficient generation of modulo inverse for public key cryptosystems | |
Chen et al. | A CRS-based convolution algorithm for NTRUEncrypt | |
JP3137599B2 (ja) | BのC乗のnを法とした剰余を計算する回路 | |
JP2015203859A (ja) | 逆数演算器 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110808 |
|
A977 | Report on retrieval |
Effective date: 20121026 Free format text: JAPANESE INTERMEDIATE CODE: A971007 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121120 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130118 |
|
A02 | Decision of refusal |
Effective date: 20130219 Free format text: JAPANESE INTERMEDIATE CODE: A02 |