Page MenuHomeFreeBSD

Use 'const' for keys and IVs passed to software encryption algorithms.

Authored by jhb on Aug 20 2019, 9:39 PM.



Specifically, use 'const' for the key passed to the 'setkey' method
and 'const' for the 'iv' passed to the 'reinit' method.

Test Plan
  • GENERIC still compiles. I should at least run cryptocheck -d soft against this which I haven't yet.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb created this revision.Aug 20 2019, 9:39 PM
cem accepted this revision.Aug 20 2019, 9:55 PM

Looks good to me!

This revision is now accepted and ready to land.Aug 20 2019, 9:55 PM