frodo-kem: Use seeds instead of expanded private/decapsulation keys
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- cryptography
調査の方向性
Start with frodo-kem/src/kem.rs, especially the key-generation path around line 116, then inspect the KeyInit and KeyExport implementations for DecapsulationKey and the KemSizes trait. Compare the seed-oriented behavior of ml-kem and determine how parameter-specific seed sizes should be represented. The work is done when seed-based initialization and export are defined, the existing expanded-key path is deprecated or handled deliberately, and serialized key-format implications are resolved.
索引モデルが issue の本文から書いたものです。
説明
frodo-kem currently requires the hazmat feature to work with seeds, and by default only generates, loads, and saves the expanded private key. By contrast, ml-kem primarily loads and saves the seed rather than the expanded key.
Would you be open to a PR for some of this that brings frodo-kem closer to ml-kem's design; or do you recommend advanced users stick to the hazmat-gated K::default().generate_keypair_from_seed(&mut seed.clone())?
Using same approach as ml-kem would be a breaking change to the serialized key format, and could be achieved by:
- adding a seed:
Option<...>field ofKEY_SEED_SIZEbytes tofrodo_kem::kem::DecapsulationKey - keeping the seed in
Generate(it's currently discarded infrodo-kem/src/kem.rs:116) - refactoring
KeyInit/KeyExportto operate on the seed, not the expanded private key - deprecating the current expanded
TryKeyInitpath - the main complication is that frodo-kem's seed size differs per parameter set (
len_s + len_seedSE + len_z), soKemSizeswould need aSeedSizeassociated type rather than a single fixedSeedtype.
- 主要言語
- Rust
- スター
- 130
- フォーク
- 63
- 平均マージ
- 4日 3時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustCrypto/KEMs のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 12/100
RustCrypto/KEMs#417 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
RustCrypto/KEMs#395 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
RustCrypto/KEMs#389 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
frodo-kem: `Algorithm::encryption_key_from_decryption_key` skips both of the validations its siblings perform対応中かも @cipherprofessor が 76 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
RustCrypto/KEMs#381 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
RustCrypto/KEMs#346 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
RustCrypto/KEMs の issue をすべて見る
似ている issue
-
The new tests repeat each other and one only checks a two-line helper再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンinfra
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
storytold/wordcraft#9405 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
in-progress
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
area: ai-assistants documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BetaBots-LLC/latticegate#17 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
storytold/craft-libs#5594 ·
メンテナーはふだん 1 日以内に返信
-
available documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Nixitov/Riptide-Native#932 ·
メンテナーはふだん 1 日以内に返信