Blake2 missing functionality while migrating from `blake2-rfc`
还没有人认领这个 Issue。
评估
- 难度
- 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 分钟
- 30 天内合并 PR
- 2
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 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 ·
-
难度 5/5 一周以上 新手友好度 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 条评论 ·