awslabs / awslabs/aws-encryption-sdk-specification
Check signature length against algorithm suite when decrypting
- Dominant language
- JavaScript
- Stars
- 37
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
When decrypting a message with a signature, we can short circuit some verification failures by first checking whether the signature length is valid for the algorithm suite in use. We would need to add in additional logic in order to enable this sort of check.
Proposal from @mattsb42-aws:
```
algorithm suites SHOULD define a max signature length and if they do then the client MUST fail if the signature length field is larger than that value
```
Contributor guide
Research direction
The issue names no files, tests, or entry points; first locate the decryption path that reads the signature length and the algorithm-suite definitions. Confirm how a suite defines its maximum signature length, then verify that an oversized signature fails before full verification.
Written by the indexing model from the issue text.
Assessment
- Domain
- cryptography
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100