the argument to define auth tag length in crypto.createDecipheriv cannot work
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- cryptography
调研方向
从 crypto.createDecipheriv 入口点开始,跟踪其 authTagLength 选项如何通过 decipher.final() 进行处理。将预期的 12 字节标签行为与 issue 中描述的收到的标签进行比较。当受支持的行为已记录,或实现和测试能够一致地处理所请求的标签长度时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
For 'aes-256-gcm', I've tried to use:
let decipher = crypto.createDecipheriv('aes-256-gcm', serverKeyArr, iv, {authTagLength: 12});
to define auth tag to 12 bytes, however, when I execute decipher.final(), inside that function, the tag it calculated is still 16 bytes, then when it do xor test for the tag function calculated and the auth Tag I've received (which already cut off by server side from 16 bytes to 12 bytes), it will results in error because the length is different.
I wonder why the argument {authTagLength: 12} do not work?
Besides, is there any way I can use shorter auth tag length to pass decipher.final() function, because in my program, I only can get the first 12 bytes auth tag.
Thanks
- 主要语言
- JavaScript
- 星标
- 681
- 派生
- 209
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
browserify/crypto-browserify 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 35/100
browserify/crypto-browserify#255 · 1 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 35/100
browserify/crypto-browserify#250 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 30/100
browserify/crypto-browserify#240 ·
-
难度 4/5 3-5 天 新手友好度 35/100
browserify/crypto-browserify#238 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
browserify/crypto-browserify#232 · 6 条评论 ·
查看 browserify/crypto-browserify 的全部 Issue
相似的 Issue
-
Place search spins forever when nominatim fails可能已有人在做 @jgt87 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
anvaka/city-roads#213 ·
-
mobile UX
难度 2/5 1-3 小时 新手友好度 76/100
-
bug
难度 2/5 1-3 小时 新手友好度 69/100
jellyfin/jellyfin-web#8685 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
SchemaStore/schemastore#6535 ·
维护者通常 1 天内回复
-
enhancement good first issue helia storage tier-1
难度 2/5 1-3 小时 新手友好度 78/100
QMeshPy/distributed-quantum#53 ·
维护者通常 1 天内回复