blake2b: unusable in XOF fashion.
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- rust
- 领域
- cryptography
调研方向
尚未确定文件或测试入口点。首先检查 blake2 crate 的当前 API 以及相关的 Rust Rng 和 XOF 契约,然后确定任意长度输出的预期行为以及应如何对其进行验证。确定了所请求的 XOF 风格用例的 API 和测试后,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I might be missing something but with the latest blake2 crate I am unable to use it in XOF fashion.
Here's my use case: input some data to blake2 input, then read from it arbitrary number of bytes. This is valid use case to implement drbg from blake2 with "seed" which is also arbitrarily long. Of course I can work that around by hashing input to the size of some pseudo-rng (like ChaCha8Rng) but as far as I understand the contract for Rng is not to keep always the same output for the same seed (e.g. with the crate version change). I use quite extensively this functionality as many crypto protocols use keyed pseudo random functions and XOF was pretty straightforward way to implement it, and it would be nice to have this in blake2b implemented.
Please advise.
- 主要语言
- Rust
- 星标
- 2.3k
- 派生
- 341
- 平均合并
- 3 小时 55 分钟
- 30 天内合并 PR
- 1
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 一周以上 新手友好度 20/100
RustCrypto/hashes#908 ·
-
难度 3/5 1-2 天 新手友好度 35/100
RustCrypto/hashes#747 · 1 条评论 ·
-
performance
难度 4/5 3-5 天 新手友好度 35/100
RustCrypto/hashes#718 · 2 条评论 ·
查看 RustCrypto/hashes 的全部 Issue
相似的 Issue
-
`categorize_command` has no `uv` arm, so every `rtk uv …` row counts as `other` in the ecosystem mix未关闭area:api bug good first issue priority:low
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
area/cli kind/bug
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
good first issue open-endedness: low type: new feature
难度 2/5 1-3 小时 新手友好度 72/100