aws / aws-lc

AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. It іs based on code from the Google BoringSSL project and the OpenSSL project.
Other
258 stars 105 forks source link

Add test to ensure sequence numbers are allowed to increase by more than one #1667

Open maddeleine opened 1 week ago

maddeleine commented 1 week ago

Issues:

N/A

Description of changes:

EVP_aead_aes_128_gcm_tls13() and EVP_aead_aes_256_gcm_tls13() are currently required to encrypt with a monotonically-increasing sequence number. This sequence number however is allowed to increase by more than 1 per encrypt call. This PR adds a test to codify this behavior.

Call-outs:

Testing:

Adds test. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

codecov-commenter commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (main@daa4251). Learn more about missing BASE report. Report is 29 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1667 +/- ## ======================================= Coverage ? 78.18% ======================================= Files ? 571 Lines ? 95416 Branches ? 13705 ======================================= Hits ? 74605 Misses ? 20200 Partials ? 611 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.