Page MenuHomeFreeBSD

geliboot: Use the correct IV length for AES-XTS.
ClosedPublic

Authored by jhb on Jan 13 2022, 9:28 PM.
Tags
None
Referenced Files
F150235014: D33884.id101442.diff
Mon, Mar 30, 12:08 PM
Unknown Object (File)
Sun, Mar 29, 11:35 PM
Unknown Object (File)
Mon, Mar 16, 1:48 PM
Unknown Object (File)
Mon, Mar 16, 8:37 AM
Unknown Object (File)
Mon, Mar 2, 9:17 AM
Unknown Object (File)
Feb 20 2026, 10:14 AM
Unknown Object (File)
Feb 14 2026, 7:06 PM
Unknown Object (File)
Feb 8 2026, 9:11 AM

Details

Summary
  • Use AES_XTS_IV_LEN instead of the key length as the IV length.
  • Use G_ELI_IVKEYLEN as the size of the zeroed iv[] array in g_eli_crypto_cipher() to match geli_io().

PR: 261172
Sponsored by: FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43911
Build 40799: arc lint + arc unit