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
F82031185: D33885.diff
Wed, Apr 24, 7:01 PM
Unknown Object (File)
Fri, Apr 5, 5:26 PM
Unknown Object (File)
Fri, Mar 29, 5:05 AM
Unknown Object (File)
Jan 12 2024, 7:55 AM
Unknown Object (File)
Dec 23 2023, 10:48 AM
Unknown Object (File)
Nov 12 2023, 4:49 PM
Unknown Object (File)
Aug 5 2023, 7:12 AM
Unknown Object (File)
Aug 5 2023, 7:12 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
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 43912
Build 40800: arc lint + arc unit

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).