Please use this identifier to cite or link to this item:
http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/6163
Title: | ARM 處理器上準梅森質數體的快速運算程式碼產生器 Code Generation for Fast Pseudo-Mersenne Prime Field Arithmetic on ARM Processors |
Authors: | Shang-Yi Yang 楊上逸 |
Advisor: | 鄭振牟 |
Keyword: | 多精度乘法,模乘法,準梅森質數,快速密碼學,ARM11, multi-precision multiplication,modular multiplication,pseudo-Mersenne primes,high-speed cryptography,ARM11,convolved multiplication, |
Publication Year : | 2013 |
Degree: | 碩士 |
Abstract: | 近期高速密碼學研究中,往往透過電腦指令的排列組合來提升運算效率,但如果少了自動化工具,則需要耗費相當大的人力。
使用我們提出的工具,只需要準梅森質數作為輸入,就能透過窮舉找出在ARM11上最高效率的模乘法程式。窮舉的參數包含大數的表示方示及程式碼產生器參數,而提出的模乘法演算法則混合了乘法與模餘兩部份,特別適合提升準梅森質數體上的計算效率。 使用提出的演算法,自動產生出的高質量程式碼運行時間較GCC編譯器的結果快16.4%,且為GMP模乘法的4至8倍。 Recent research on high-speed cryptography has been striving for performance by twiddling with instructions, but without an automated tool, writing fast software takes much precious labor effort. We present a tool with a simple interface for crypto developers to generate fast modular multiplication routines in a few keystrokes: you provide the prime as the modulus and it produces several candidate results or enumerates them all for benchmark. Specifically, we automatized the choice of number representation and the code generation for multiplication modulo a pseudo-Mesenne prime on ARM11, using the proposed convolved multiplication method, which interleaves multiplication and modular reduction. The high-quality code generated runs up to 16.4% faster than the convolved multiplication compiled by defacto-standard compilers such as gcc, and is 4 to 8 times faster than the GMP modular multiplication. |
URI: | http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/6163 |
Fulltext Rights: | 同意授權(全球公開) |
Appears in Collections: | 電機工程學系 |
Files in This Item:
File | Size | Format | |
---|---|---|---|
ntu-102-1.pdf | 1.07 MB | Adobe PDF | View/Open |
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.