Page MenuHomeFreeBSD

Use G_ELI_IVKEYLEN as the size of IV in the user test code.
ClosedPublic

Authored by jhb on Jan 13 2022, 9:28 PM.
Tags
None
Referenced Files
F116133688: D33885.diff
Fri, May 2, 8:45 PM
Unknown Object (File)
Wed, Apr 23, 2:49 PM
Unknown Object (File)
Sat, Apr 19, 10:12 PM
Unknown Object (File)
Mar 11 2025, 4:19 PM
Unknown Object (File)
Mar 7 2025, 2:48 PM
Unknown Object (File)
Feb 26 2025, 11:35 AM
Unknown Object (File)
Feb 26 2025, 10:53 AM
Unknown Object (File)
Feb 26 2025, 6:15 AM
Subscribers

Details

Summary

IVs are not the size of keys as a general case. Most often they are
the size of a single block.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Jan 13 2022, 9:28 PM

Do you need a kassert G_ELI_IVKEYLEN >= keysize?

This revision is now accepted and ready to land.Jan 13 2022, 9:51 PM
In D33885#766236, @imp wrote:

Do you need a kassert G_ELI_IVKEYLEN >= keysize?

No, the entire point is that IV sizes have no relation to key sizes. For the ciphers involved in fact, the key sizes are generally larger than the IVs (e.g. 8 byte IV for AES-XTS vs a 256/512 bit key).