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)
Mon, Apr 20, 3:39 PM
Unknown Object (File)
Mon, Apr 20, 1:43 PM
Unknown Object (File)
Mon, Apr 13, 9:06 AM
Unknown Object (File)
Mon, Apr 13, 5:32 AM
Unknown Object (File)
Sun, Apr 12, 10:06 PM
Unknown Object (File)
Sun, Apr 12, 9:14 PM
Unknown Object (File)
Thu, Apr 9, 8:23 PM
Unknown Object (File)
Mon, Mar 30, 12:08 PM

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