Page MenuHomeFreeBSD

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

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

Details

Summary

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

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

Event Timeline

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

Looks good to me!

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