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
Unknown Object (File)
Tue, Nov 4, 1:33 AM
Unknown Object (File)
Fri, Oct 31, 7:01 AM
Unknown Object (File)
Tue, Oct 28, 8:40 PM
Unknown Object (File)
Tue, Oct 28, 5:11 AM
Unknown Object (File)
Sat, Oct 25, 2:23 AM
Unknown Object (File)
Oct 15 2025, 11:31 AM
Unknown Object (File)
Oct 15 2025, 11:31 AM
Unknown Object (File)
Oct 15 2025, 11:31 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable