aws / aws/aws-encryption-sdk-java
CiphertextType.deserialize should throw an error if it encounters an invalid type
Open
bug
- Dominant language
- Java
- Stars
- 240
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.