iT邦幫忙

2025 iThome 鐵人賽

DAY 8
0
Security

後量子密碼學 - 走進 Lattice 世界系列 第 8

[Day8]後量子密碼學 - 走進 Lattice 世界: Short Integer Solution (SIS)

  • 分享至 

  • xImage
  •  

在之前的文章也簡單地介紹了 SIS,現在就深入地去講解一下。

短整數解 (SIS) 問題最早出現在阿傑塔 [Ajt96] 的開創性工作中,並作為單向和抗碰撞哈希函數、識別方案、數字簽名和其他“小密碼”原語(但不包括公鑰加密)的基礎。這裡定義 SIS 問題,調查其與最壞情況下格問題的聯繫,並探討其基本屬性和直接的密碼學意義。

定義
非正式地,SIS 問題要求,給定某個大有限加法群的許多均勻隨機元素,找到一個足夠“短”的非平凡整數組合,使其和為零。更正式地,SIS 由正整數 n 和 q 定義群 https://ithelp.ithome.com.tw/upload/images/20250904/20119569sbcO3l1GIk.png,正實數 β,以及群元素的數量 m 參數化。(參數 m 是次要的,因此有時不指定它。)具體來說,可以將 n 視為主要的硬度參數(例如 n≥100),而 q>β 至少是 n 的小多項式。

短整數解 https://ithelp.ithome.com.tw/upload/images/20250904/20119569MNQ2oNPswd.png的定義
給定 m 個均勻隨機向量 https://ithelp.ithome.com.tw/upload/images/20250904/20119569ZkVu2guN7B.png,形成矩陣 A https://ithelp.ithome.com.tw/upload/images/20250904/20119569kTTIA9qG7p.png 的列,找到一個非零整數向量 https://ithelp.ithome.com.tw/upload/images/20250905/20119569aZ1vfZ1WvJ.png,其範數 https://ithelp.ithome.com.tw/upload/images/20250905/20119569DX2uY3w6XL.png,使得:

https://ithelp.ithome.com.tw/upload/images/20250905/20119569dIHdluvz1y.png

現在強調關於 SIS 問題的幾個簡單但有用的觀察:

  • 沒有對 https://ithelp.ithome.com.tw/upload/images/20250905/201195690ugQ2JSBAK.png 的約束,可以通過高斯消元輕鬆找到解。類似地,必須取 β<q,否則 https://ithelp.ithome.com.tw/upload/images/20250905/20119569ysRC4BZjEF.png 將始終是一個合法的解。
  • 對於矩陣 A 的任何解,可以通過在解向量後附加零(這不改變解的範數)輕鬆轉換為任何擴展 https://ithelp.ithome.com.tw/upload/images/20250905/20119569ZQ1Xlw0l0N.png 的解。換句話說,可以根據需要忽略列 https://ithelp.ithome.com.tw/upload/images/20250905/20119569KDrd2qEwj5.png,因此隨著 m 的增加,SIS 問題只能變得更簡單。類似地,隨著 n 的增加,它只能變得更難。
  • 範數界 β 和向量 https://ithelp.ithome.com.tw/upload/images/20250905/20119569ztdXDdaNYY.png 的數量 m 必須足夠大以保證解的存在。當 https://ithelp.ithome.com.tw/upload/images/20250905/20119569LYj7Ia9fwv.pnghttps://ithelp.ithome.com.tw/upload/images/20250905/20119569R5O7CY8CTX.png 時就是這種情況,其中 https://ithelp.ithome.com.tw/upload/images/20250905/20119569H5ijdLVivO.png 是大於 https://ithelp.ithome.com.tw/upload/images/20250905/20119569q9fjXTiYrm.png 的最小整數,通過鴿巢原理:首先,根據前面的觀察,可以不失一般性地假設 https://ithelp.ithome.com.tw/upload/images/20250905/20119569wtKcGgZHQb.png。然後因為有超過 https://ithelp.ithome.com.tw/upload/images/20250905/201195690aroj6lAaP.png 個向量 https://ithelp.ithome.com.tw/upload/images/20250905/20119569y4b9xQvFRF.png,所以必須有兩個不同的 https://ithelp.ithome.com.tw/upload/images/20250905/201195695Z8GUYgaeo.png使得 https://ithelp.ithome.com.tw/upload/images/20250905/20119569W8raYxvNvn.png,因此它們的差 https://ithelp.ithome.com.tw/upload/images/20250905/20119569JDtKssr3pY.png 是一個範數最多為 β 的解。
  • 上述鴿巢論證實際上表明更多:誘導的函數族
    https://ithelp.ithome.com.tw/upload/images/20250905/20119569XWnqTXUpbv.png
    是抗碰撞的,假設相應 SIS 問題的難解性。這是因為 https://ithelp.ithome.com.tw/upload/images/20250905/20119569RN7GaB3w1M.png的碰撞 https://ithelp.ithome.com.tw/upload/images/20250905/20119569uow4wBPy2o.png 立即產生 A 的一個 SIS 解。(當然,域 https://ithelp.ithome.com.tw/upload/images/20250905/20119569pv1qeOfOGT.png 在這裡有些隨意,可以用任何其他足夠大的足夠短整數向量集代替。)
    SIS 問題可以看作是某類 mm 維整數格上的平均情況短向量問題,
    即所謂的“q-ary”格:

https://ithelp.ithome.com.tw/upload/images/20250905/20119569NlFq3977eI.png

借用編碼理論的術語,這裡 A 充當“奇偶校驗”(或更準確地說,“arity-check”)矩陣,定義了格 https://ithelp.ithome.com.tw/upload/images/20250905/20119569B8Ihp7JpLG.png。SIS 問題要求在 https://ithelp.ithome.com.tw/upload/images/20250905/20119569FBtTR0X0Rl.png 中找到一個足夠短的非零向量,其中 A 是均勻隨機選擇的。

還可以考慮 SIS 問題的非齊次版本,即對於均勻隨機且獨立的 A,u,找到 https://ithelp.ithome.com.tw/upload/images/20250905/20119569GMXR5WdG9M.png 的短整數解。注意,忽略範數約束,所有解的集合是格陪集 https://ithelp.ithome.com.tw/upload/images/20250905/20119569VgbnJGle1P.png,其中 https://ithelp.ithome.com.tw/upload/images/20250905/20119569QLzCepc6HJ.png 是任意(不一定短)的解。可以證明,對於典型參數,齊次和非齊次問題基本上是等價的。

正規形式
SIS 問題允許一個小而重要的優化,稱為(埃爾米特)“正規形式”(HNF),它將實例 A 的大小壓縮了 n 列,而不影響密碼功能或硬度。其工作原理如下:首先,可以假設 https://ithelp.ithome.com.tw/upload/images/20250905/20119569PetNFbUlu5.png的最左邊 n 列 https://ithelp.ithome.com.tw/upload/images/20250905/20119569s9XGaMNnr5.pnghttps://ithelp.ithome.com.tw/upload/images/20250905/20119569p1Xg4BY3hr.png 上形成可逆矩陣,這是不失一般性的,因為如上所述,可以根據需要忽略列。然後將 A 替換為

https://ithelp.ithome.com.tw/upload/images/20250905/20119569VwjWAkU2fx.png

並將 https://ithelp.ithome.com.tw/upload/images/20250905/20119569BSk0KLcjiC.png子矩陣視為隱含的。注意 https://ithelp.ithome.com.tw/upload/images/20250905/20119569FILP2QMcrt.png是均勻隨機的,因為 https://ithelp.ithome.com.tw/upload/images/20250905/20119569spCrrNgSev.png 是均勻且獨立於 https://ithelp.ithome.com.tw/upload/images/20250905/20119569DbfJmkOG4U.png 的。此外,A 和 https://ithelp.ithome.com.tw/upload/images/20250905/20119569eQTXVHKH1q.png具有完全相同的(短)SIS 解。因此,後者形式的 SIS 實例至少與前者類型的實例一樣難解。

硬度

從阿傑塔的開創性工作 [Ajt96] 開始,一系列工作已經建立了關於 SIS 問題相對於最壞情況下格問題硬度的逐步更強的結果。所有這些結果都是以下模板的實例:

定理1
對於任何 m=poly(n),任何 B>0,以及任何足夠大的 https://ithelp.ithome.com.tw/upload/images/20250905/20119569ioj0QUVJMO.png,以不可忽略的概率解決 https://ithelp.ithome.com.tw/upload/images/20250905/20119569unw087N5CG.png至少與在最壞情況下解決任意 n 維格上的決策近似最短向量問題 https://ithelp.ithome.com.tw/upload/images/20250905/20119569KMo2ydhNH7.png 和近似最短獨立向量問題 https://ithelp.ithome.com.tw/upload/images/20250905/20119569cLwSSbs33E.png(以及其他)一樣困難,對於某些 https://ithelp.ithome.com.tw/upload/images/20250905/20119569NXFpt95jnw.png

請注意,m 和 q 的精確值(除了其下界)在最終的硬度保證中基本上不起作用,但近似因子 γ 隨著 SIS 解的範數界 β 的增加而降低。該定理通過給出一個多項式時間歸約來證明,該歸約使用 SIS 的預言機(在平均情況下以顯著概率工作)來解決任意 n 維格上的 https://ithelp.ithome.com.tw/upload/images/20250905/20119569lubT0wbjxa.pnghttps://ithelp.ithome.com.tw/upload/images/20250905/20119569raJaoNxnr1.png。這種歸約的核心挑戰在於生成一個均勻隨機的 SIS 實例,其解以某種方式有助於找到任意格的短向量;下面對此進行高層次描述。

在阿傑塔的原始工作中,與模數 q 和近似因子 γ 相關的 poly(n) 因子是相當大的多項式。從那時起,幾項工作已經顯著改進了這些因子,從而產生更小的實例(例如密碼密鑰)和更強的硬度保證。一些最顯著的改進如下:

  • Micciancio 和 Regev [MR04] 的 2004 年工作獲得了 https://ithelp.ithome.com.tw/upload/images/20250905/20119569yJnwu0n4ia.png 的近似因子,對於 β 的有意義選擇,可以小至 https://ithelp.ithome.com.tw/upload/images/20250905/20119569ZjJ0luYViR.png,模數 q 可以小至 https://ithelp.ithome.com.tw/upload/images/20250905/20119569ipNfNZ6pi8.png。這項工作使用格上的高斯分佈,並建立在 [Ban93, Reg03, AR04] 首次開發的調和分析技術之上。特別是,它定義並分析了格平滑參數 https://ithelp.ithome.com.tw/upload/images/20250905/20119569PfbkMW8T6U.png 的重要概念(已經隱含在 [Ban93, Reg03] 中),這是“平滑掉”格的離散結構所需的高斯“模糊”量。這種平滑使得歸約能夠生成與任意輸入格有意義鏈接的均勻隨機 SIS 實例。

  • Gentry、Peikert 和 Vaikuntanathan 的 2008 年工作 將 q 的界限改進到小至 https://ithelp.ithome.com.tw/upload/images/20250905/201195691nfmv82FkZ.png,同時保持 [MR04] 中的 https://ithelp.ithome.com.tw/upload/images/20250905/20119569ReiXU9PUsW.png 近似因子。主要的新成分是一個技術上更簡單的歸約,完全使用格上的離散高斯分佈,避免了與連續高斯相關的“舍入”誤差。為此,歸約使用了 GPV 的離散高斯採樣算法,如下面的定理 5.4.2 所述。

  • Micciancio 和 Peikert [MP13] 的 2013 年工作進一步將 q 的界限改進到小至 https://ithelp.ithome.com.tw/upload/images/20250905/20119569RtGITFZU3r.png,對於任何常數 https://ithelp.ithome.com.tw/upload/images/20250905/201195691zmWvsFUMh.png。回想一下,這個界限基本上是最優的(除了 https://ithelp.ithome.com.tw/upload/images/20250905/20119569ZuSXke1R5G.png因子),因為任何 SIS 實例都有範數 q 的平凡解。歸約獲得的近似因子 γ 有些微妙,因為它可以取決於 SIS 解的 https://ithelp.ithome.com.tw/upload/images/20250905/20119569O7iqRV7DvE.png 範數,而不是通常的 https://ithelp.ithome.com.tw/upload/images/20250905/20119569GLsmRWhyvn.png 範數。這是由於歸約使用 SIS 預言機通過幾個其他離散高斯的組合產生一個離散高斯,使用類似於 [Pei10] 中證明的“卷積引理”。

歸約概述:

證明定理 4.1.2 的所有最壞情況/平均情況歸約都遵循以下模板,最初由 Ajtai [Ajt96] 提出。回想一下,歸約被給予一個任意 n 維格 https://ithelp.ithome.com.tw/upload/images/20250905/20119569t8ziiMZHTj.png的基底 B,以及一個平均情況的 SIS 預言機(oracle),其目標是為某個 γ=poly(n) 求解 https://ithelp.ithome.com.tw/upload/images/20250905/20119569HQUHylfnAg.png,即找到 n 個線性獨立的格向量,其長度均不超過 https://ithelp.ithome.com.tw/upload/images/20250905/201195690fgYWdIXNb.png

在最高層次上,歸約使用一組線性獨立的格向量 https://ithelp.ithome.com.tw/upload/images/20250905/20119569UgAfSi67TX.png(從輸入基底 B 開始),連同其 SIS 預言機,來獲得一個新的集合 https://ithelp.ithome.com.tw/upload/images/20250905/20119569xm6GL4Xgdg.png,使得
https://ithelp.ithome.com.tw/upload/images/20250905/20119569152oJfBzNG.png,其中對於集合 https://ithelp.ithome.com.tw/upload/images/20250905/20119569I6VBDHlRH8.png
https://ithelp.ithome.com.tw/upload/images/20250905/20119569mLWHiOdx5g.png
然後它反覆重複這個過程,直到停止工作,此時可以保證最終的集合確實是 https://ithelp.ithome.com.tw/upload/images/20250905/20119569plwu6O6Xgy.png 的解。

為了實現上述策略,歸約使用以下「核心步驟」:

  1. 使用當前的格向量集合 S,生成 m 個「分佈良好」且儘可能短的隨機格向量 https://ithelp.ithome.com.tw/upload/images/20250905/20119569LcyHY0Vhig.png。² 讓這些向量形成矩陣 V 的列。

  2. 定義 https://ithelp.ithome.com.tw/upload/images/20250905/201195693FZxHlvxal.png
    https://ithelp.ithome.com.tw/upload/images/20250905/20119569m8QjKrTYye.png

    https://ithelp.ithome.com.tw/upload/images/20250905/201195693p1SzlNxOn.png
    並將此實例給予 SIS 預言機。(注意,因為 https://ithelp.ithome.com.tw/upload/images/20250905/201195691HJqufkFxt.png 是格向量,所以 https://ithelp.ithome.com.tw/upload/images/20250905/20119569B44Wasf8ED.png是整數。)

  3. 如果預言機返回一個有效的解 https://ithelp.ithome.com.tw/upload/images/20250905/20119569IogdvKOS3E.png,則輸出 https://ithelp.ithome.com.tw/upload/images/20250905/20119569JEfdaZ7K78.png. 通過足夠多次重複這個核心步驟,歸約可以獲得許多向量 v,(其中一部分)將組成下一個集合 S′。為了使這一切按預期工作,需要證明以下幾點:

  • 如果 z 是 A 的 SIS 解,則 https://ithelp.ithome.com.tw/upload/images/20250905/20119569tqT3kP7ky2.png
    https://ithelp.ithome.com.tw/upload/images/20250905/20119569KxejDvP38A.png
    第一個主張由構造得出: 因為 https://ithelp.ithome.com.tw/upload/images/20250905/20119569Qs8aZH0sIJ.png,所以會有 https://ithelp.ithome.com.tw/upload/images/20250905/20119569sedeQAb8b0.png, 所以 https://ithelp.ithome.com.tw/upload/images/20250905/201195691XdI0oITN2.png。對於第二個主張,可以生成滿足 https://ithelp.ithome.com.tw/upload/images/20250905/20119569Vvyj1r9LIB.png 的向量 https://ithelp.ithome.com.tw/upload/images/20250905/20119569e9cDbcMuAu.png。那麼因為
    https://ithelp.ithome.com.tw/upload/images/20250905/20119569CWQboT1dlP.png, 因此有https://ithelp.ithome.com.tw/upload/images/20250905/201195691UaC3PNwnk.png
    因此,對於足夠大的 https://ithelp.ithome.com.tw/upload/images/20250905/20119569HAfBl6vSLg.png,可以確保
    https://ithelp.ithome.com.tw/upload/images/20250905/20119569ASQmzZ3u5q.png

  • SIS 實例 https://ithelp.ithome.com.tw/upload/images/20250905/2011956958gQbIbwW4.png是(近乎)均勻的。 因為 SIS 預言機僅被假設在均勻隨機實例上有效(以顯著機率),需要證明由歸約構造的實例是這種情況(達到可忽略的統計誤差)。如果
    https://ithelp.ithome.com.tw/upload/images/20250905/20119569cVnNK17aPy.png — 即如果還沒有 https://ithelp.ithome.com.tw/upload/images/20250905/20119569xKc05VaSdk.png 解 — — 那麼這成立,本質上是因為 https://ithelp.ithome.com.tw/upload/images/20250905/201195691LnreHU75C.pnghttps://ithelp.ithome.com.tw/upload/images/20250905/20119569i3EHX5X23m.png 是足夠「分佈良好」的。更具體地說,對於 https://ithelp.ithome.com.tw/upload/images/20250905/20119569EXO4EAHpyO.png的適當分佈,可以使用平滑參數(參見第 2.3 節)來證明 https://ithelp.ithome.com.tw/upload/images/20250905/20119569QwusqU8XZF.pngmod https://ithelp.ithome.com.tw/upload/images/20250905/20119569LTJjAznMiL.pnghttps://ithelp.ithome.com.tw/upload/images/20250905/20119569ciZ1zWmg2Z.png上近乎均勻,因為 https://ithelp.ithome.com.tw/upload/images/20250905/20119569hScliD5OqH.png
    實際上,在這裡並不需要 q 的上界:如果 q>γ,可以從一個寬度為 q/γ 倍的更寬分佈中取樣 https://ithelp.ithome.com.tw/upload/images/20250905/20119569OT5xxJJyDB.png;當最後除以 q 時,這種效應會被完全抵消。最後,因為乘以 https://ithelp.ithome.com.tw/upload/images/20250905/20119569W3Bvp6PUB3.png 是從 https://ithelp.ithome.com.tw/upload/images/20250905/20119569PetPJm3Kfg.pnghttps://ithelp.ithome.com.tw/upload/images/20250905/20119569xUMDDLjw58.png 的雙射,所以每個 https://ithelp.ithome.com.tw/upload/images/20250905/20119569NqoVKt0urv.png也是近乎均勻的。

  • 向量 v 的某個子集是滿秩的(即 v 不全位於 https://ithelp.ithome.com.tw/upload/images/20250905/20119569RmoT5jL6n6.png 的某個真子空間中)。 最後,必須證明即使是惡意的 SIS 預言機也不能,例如,強迫所有向量 v 為零。這再次源於 https://ithelp.ithome.com.tw/upload/images/20250905/20119569mgIQbyx5dA.png 是「分佈良好」的事實,但方式略有不同。具體來說,在給定任何固定的 https://ithelp.ithome.com.tw/upload/images/20250905/20119569yd6dOI7OA4.png值的條件下,真實的 https://ithelp.ithome.com.tw/upload/images/20250905/20119569HcDAi3CIdg.png;在陪集 - https://ithelp.ithome.com.tw/upload/images/20250905/20119569h2eKbAaOCP.png上是均勻分佈的。因此,在給定任何固定的 SIS 實例 A 和解 z 的條件下,隨機變量 Vz 仍然是足夠分佈良好的,使得 https://ithelp.ithome.com.tw/upload/images/20250905/20119569sCnIbaEGZc.png的任何真子空間都缺乏其顯著部分的機率質量,因此通過獲得足夠多的向量 v,可以得到一個 full-rank 集合


上一篇
[Day7]後量子密碼學 - 走進 Lattice 世界: 早期研究
下一篇
[Day9]後量子密碼學 - 走進 Lattice 世界: Learning With Errors, LWE
系列文
後量子密碼學 - 走進 Lattice 世界12
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言