Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2022 16:38:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261172] GELI boot failing with aes_xts_reinit: invalid IV length
Message-ID:  <bug-261172-227-4DQFa73YQH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-261172-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-261172-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261172

--- Comment #2 from John Baldwin <jhb@FreeBSD.org> ---
The issue is that the compile fix exposed an assertion that was previously
unchecked.

Hmm, the code in geliboot_crypto.c is a bit incorrect (but probably not
harmfully so).

This (untested) patch will fix the assertion, but it should also use a bett=
er
IV size.  The IV size is not the same as the key size (for AES-CBC the IV i=
s a
block, and for AES-XTS the IV is actually smaller than a block)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261172-227-4DQFa73YQH>