Closed cpu closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.69%. Comparing base (
c358484
) to head (fa3209b
). Report is 49 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issues:
N/A
Description of changes:
While working with the
aws_lc_rs::cipher
module downstream in https://github.com/rustls/rustls/pull/2066 we noticed the documentation here could use a small touch-up.Previously the
aws_lc_rs::cipher::EncryptingKey
type'sencrypt()
andless_safe_encrypt()
functions were documented as returning a reference to the encrypted data. However, the implementation uses anin_out: &mut [u8]
argument for the encrypted data and returns aDecryptionContext
, not a ref. to ciphertext.Similarly, it feels important to call out that the
DecryptionContext
when usingencrypt()
contains a randomly generated IV. This makes usage clearer and also provides good counter-point to the disclaimer onless_safe_encrypt()
about the provenance (and safety) of the IV being unknown.Call-outs:
None that I can think of :-)
Testing:
N/A - docs only update.
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.