Blake2 missing functionality while migrating from `blake2-rfc`
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust
- 領域
- cryptography
調査の方向性
現在の blake2b 実装から始め、次に Blake2bVarCore::new_with_params と Blake2bVar API を調査してください。ポインターハックに頼らずに、設定済みの core を公開の可変出力型を通じて公開する方法を判断してください。完了の条件は、blake2-rfc から移行する呼び出し側が、安全で文書化された公開 API を通じて keyed variable-output Blake2b hasher を構築できることです。
索引モデルが issue の本文から書いたものです。
説明
Not sure if this is a feature request or a question...
I was previously using the blake2-rfc crate and now I want to migrate to the blake2 crate. However previously I was using the Blake2b::with_key constructor (as per https://docs.rs/blake2-rfc/0.2.18/blake2_rfc/blake2b/struct.Blake2b.html#method.with_key) and I can't seem to find the proper equivalent in case of the blake2 crate.
There seems to exist Blake2bVarCore::new_with_params (as per https://docs.rs/blake2/0.10.2/blake2/struct.Blake2bVarCore.html#method.new_with_params), however I can't seem to convert that into a Blake2bVar (which I need to get variable hash output).
Based on the current blake2b implementation, it seems I should be able to just replace the core member of the Blake2bVar with the Blake2bVarCore instance, which indeed works if I "hack my way" by using pointers. However there is no "official" (as per the public API) way of doing this.
A simple From implementation, or even an unsafe constructor that takes a Blake2bVarCore and yields a Blake2bVar would seem to suffice.
- 主要言語
- Rust
- スター
- 2.3k
- フォーク
- 341
- 平均マージ
- 12時間 31分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustCrypto/hashes のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
RustCrypto/hashes#912 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
RustCrypto/hashes#909 · コメント 4 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
RustCrypto/hashes#908 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
RustCrypto/hashes#763 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
RustCrypto/hashes#747 · コメント 1 件 ·
RustCrypto/hashes の 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 件 ·