One-pass encryption/decryption
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- rust
- 領域
- cryptography
調査の方向性
まず、issue に一覧されている未チェックの AEAD 実装を aes-gcm から読み、それらの暗号化パスと復号パスを比較します。完了の条件は、該当する実装をワンパス動作に変換し、再利用可能なサポートを aead crate に置くべきかどうかを判断することとし、SIV モードの制限を考慮します。
索引モデルが issue の本文から書いたものです。
説明
Currently all of the AEAD implementations do two passes over the plaintext/ciphertext when encrypting/decrypting respectively: for encryption, they encrypt the plaintext in the first pass, and authenticate it in the second pass. For decryption, it's vice versa.
A better approach is to pick a number of blocks to operate on in parallel and encrypt/authenticate or authenticate/decrypt in a single pass. This has better cache locality, e.g. when we encrypt data, store the resulting ciphertext, then load it again to do authentication, that is pretty much guaranteed to hit L1 cache when doing it in a single pass (and ideally we could hand off values still stored in e.g. SIMD registers)
This is a tracking issue for converting the implementations of these respective algorithms to be one pass. It also might be good to discuss ways we could have a generic implementation of one pass encryption/decryption in the aead crate (especially one specialized for the non-SIV stream-cipher + universal-hash use case) which can be reused across different algorithm implementations.
-
aes-gcm -
aes-gcm-siv† -
aes-siv† -
chacha20poly1305 -
xsalsa20poly1305
†NOTE: SIV modes by definition cannot support 1-pass encryption (because the first pass generates the synthetic IV, which must be known in advance before encryption can be performed). However, they can support 1-pass decryption, since the IV is known in advance in that case.
- 主要言語
- Rust
- スター
- 961
- フォーク
- 200
- 平均マージ
- 1時間 30分
- マージ済み PR(30日)
- 6
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustCrypto/AEADs のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
RustCrypto/AEADs#864 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
RustCrypto/AEADs#765 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
RustCrypto/AEADs#755 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
RustCrypto/AEADs#706 · コメント 1 件 · リアクション 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
RustCrypto/AEADs#660 · コメント 7 件 ·
RustCrypto/AEADs の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
TheLarkInn/aipm#2413 ·
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
todo:ticket
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
taikoxyz/taiko-mono#22168 · コメント 1 件 ·