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)
Mon, Jul 22, 12:54 PM
Unknown Object (File)
Fri, Jul 12, 2:50 AM
Unknown Object (File)
Sun, Jul 7, 10:21 AM
Unknown Object (File)
Thu, Jul 4, 6:12 AM
Unknown Object (File)
Mon, Jul 1, 8:17 AM
Unknown Object (File)
Thu, Jun 27, 9:12 PM
Unknown Object (File)
Jun 27 2024, 1:02 AM
Unknown Object (File)
Jun 18 2024, 7:39 AM
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