NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/39525: cgd inadvertently encrypts blkno eight times to generate IV



On Fri, 12 Sep 2008, jo%schlaupelz.de@localhost wrote:

The patch provided below retains backwards compatibility by
introducing a new option "iv-method encblkno2" to cgdconfig.
Existing cgd volumes with "iv-method encblkno" in the config
file will still be handled as before.  When creating a new
cgd config file with cgdconfig, encblkno2 is now the default.
Depending on the option chosen, cgd will now either divide the
block length value by eight (to convert from bits to bytes)
or not (the old behavior).

        Just a thought on naming - you could rename the current
        encblkno to encblkno8 and add a new encblkno1, plus having
        the code still accept encblkno as an alias to encblkno8.

        That would make the new names more understandable...

--
                David/absolute       -- www.NetBSD.org: No hype required --


Home | Main Index | Thread Index | Old Index