Skip navigation

DSpace

機構典藏 DSpace 系統致力於保存各式數位資料(如:文字、圖片、PDF)並使其易於取用。

點此認識 DSpace
DSpace logo
English
中文
  • 瀏覽論文
    • 校院系所
    • 出版年
    • 作者
    • 標題
    • 關鍵字
    • 指導教授
  • 搜尋 TDR
  • 授權 Q&A
    • 我的頁面
    • 接受 E-mail 通知
    • 編輯個人資料
  1. NTU Theses and Dissertations Repository
  2. 電機資訊學院
  3. 資訊工程學系
請用此 Handle URI 來引用此文件: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/98677
標題: 多項式乘法的新技巧:驗證應用單項式於中國剩餘定理之多項式乘法
A New Trick for Polynomial Multiplication: A verified CRT polymul utilizing a monomial factor
作者: 邱俊茗
Chun-Ming Chiu
指導教授: 蕭旭君
Hsu-Chun Hsiao
關鍵字: 多項式乘法,數論轉換,混合底數,中國剩餘定理,整數模運算,
Polynomial multiplication,NTT,Mixed-radix,CRT,Modular Arithmetic,
出版年 : 2025
學位: 碩士
摘要: 針對多項式乘法的問題,我們在論文中展示了新穎的轉換策略,並示範如何將其應用在 NTRU Prime 密碼系統上。明確而言,在此密碼系統的所有參數集中,我們特別關注了 sntrup761 跟 ntrulpr761 這兩者。它們使用的多項式商環都是 ℤ₄₅₉₁[x]/⟨x⁷⁶¹−x−1⟩。為了評估我們的新想法是否具實用性,我們使用了 C++ 語言與 ARM Neon intrinsics,將新提出的演算法實做出來。過程中我們發現到,代數轉換過程中事實上存在著不少優化契機。我們進一步利用了這些機會,最終設計出了效率十分出色的乘法器,其在 Cortex-A72 的平台上的計算速度勝過了所有現有紀錄。
通常而言,為了避免整數溢流錯誤,基於整數模運算的演算法會經常需要更換計算過程的中間值,轉而用另一個同餘但絕對值較小的整數取代。為了追求效率,我們在實做中盡可能跳過了這個步驟。不可否認的,這增加了整數溢流錯誤的危險性。針對這類型的錯誤,由於引發機率實在過低,基於測試資料的傳統偵測方法往往是沒有幫助的。為了確認我們實做出的是否正確無誤,我們運用了名為 CryptoLine 的形式驗證工具。驗證過程中,我們使用了 CryptoLine 最新版本的所有功能,其中幫助最大的兩個功能是基於 Integer Set Library 的值域驗證,以及程式等價性的驗證。透過後者,我們可以將同一個程式碼用不同的設定,編譯成另一個「優化較不徹底但容易驗證」的執行檔。最終透過證明新版本的正確性以及兩者的等價性,我們可以間接得到原版本執行檔的正確性保證。
In this paper we present a novel transformation strategy for polynomial multiplications and apply it to NTRU Prime, specifically the parameter sets sntrup761 and ntrulpr761 working in the ring ℤ₄₅₉₁[x]/⟨x⁷⁶¹−x−1⟩. To evaluate the practicality of our idea, we implemented the algorithm in C++ with ARM Neon intrinsics. By further exploiting the various optimization opportunities in the transformation process, we achieve state-of-the-art performance on Cortex-A72.
Because of the aggressively lazy modular reduction strategy, overflows are of serious concern. Such errors in an optimized implementation are notoriously difficult to detect using traditional test vectors. To this end, the compiled binary file is formally verified using the tool CryptoLine. We use all the features in the current version of CryptoLine. This includes the Integer Set Library for range checking, plus the Logical Equivalence Checking to verify the correctness of the binary produced with the most optimized compiler setting by showing it as being equivalent to a binary from a less optimized compilation.
URI: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/98677
DOI: 10.6342/NTU202501941
全文授權: 同意授權(全球公開)
電子全文公開日期: 2025-08-18
顯示於系所單位:資訊工程學系

文件中的檔案:
檔案 大小格式 
ntu-113-2.pdf571.36 kBAdobe PDF檢視/開啟
顯示文件完整紀錄


系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。

社群連結
聯絡資訊
10617臺北市大安區羅斯福路四段1號
No.1 Sec.4, Roosevelt Rd., Taipei, Taiwan, R.O.C. 106
Tel: (02)33662353
Email: ntuetds@ntu.edu.tw
意見箱
相關連結
館藏目錄
國內圖書館整合查詢 MetaCat
臺大學術典藏 NTU Scholars
臺大圖書館數位典藏館
本站聲明
© NTU Library All Rights Reserved