Page MenuHomeFreeBSD

ossl: Fix some bugs in the fallback AES-GCM implementation
ClosedPublic

Authored by markj on Nov 29 2023, 8:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 19 2024, 4:13 AM
Unknown Object (File)
Nov 19 2024, 4:10 AM
Unknown Object (File)
Nov 19 2024, 4:10 AM
Unknown Object (File)
Nov 18 2024, 11:48 PM
Unknown Object (File)
Oct 24 2024, 11:49 AM
Unknown Object (File)
Oct 20 2024, 8:41 AM
Unknown Object (File)
Oct 13 2024, 9:01 PM
Unknown Object (File)
Oct 4 2024, 3:02 PM
Subscribers

Details

Summary

gcm_*_aesni() are used when the AVX512 implementation is not available.
Fix two bugs which manifest when handling operations spanning multiple
segments:

  • Avoid underflow when the length of the input is smaller than the residual.
  • In gcm_decrypt_aesni(), ensure that we begin the operation at the right offset into the input and output buffers.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable