aws / aws/aws-encryption-sdk-java

CiphertextType.deserialize should throw an error if it encounters an invalid type

未关闭
#118 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Java
星标
240
派生
125
PR 合并指标
30 天内没有已合并 PR

描述

Currently, if `CiphertextType.deserialize` is called with a byte containing anything other than a valid ciphertext type ID, it will return `null`. This seems like the wrong behavior to me.

https://github.com/aws/aws-encryption-sdk-java/blob/master/src/main/java/com/amazonaws/encryptionsdk/model/CiphertextType.java#L71-L75

贡献指南

打开贡献指南

调研方向

从 src/main/java/com/amazonaws/encryptionsdk/model/CiphertextType.java 开始,具体检查 CiphertextType.deserialize 及其关联行。检查对于不是有效 ciphertext 类型 ID 的字节的行为;当无效输入抛出错误而不是返回 null,并且有覆盖该行为的测试时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
cryptography
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。