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, Feb 24, 2:59 PM
Unknown Object (File)
Jan 31 2025, 7:10 PM
Unknown Object (File)
Jan 26 2025, 3:45 PM
Unknown Object (File)
Jan 26 2025, 12:24 PM
Unknown Object (File)
Jan 25 2025, 10:32 AM
Unknown Object (File)
Jan 20 2025, 2:10 AM
Unknown Object (File)
Jan 20 2025, 2:09 AM
Unknown Object (File)
Jan 20 2025, 2:09 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54694
Build 51583: arc lint + arc unit