Use const with some read-only buffers in opencrypto APIs.
- Mark the source buffer for a copyback operation as const in the kernel API.
- Use const with input-only buffers in crypto ioctl structures used with /dev/crypto.
Differential D10517
Use const with some read-only buffers in opencrypto APIs. jhb on Apr 27 2017, 12:05 AM. Authored by Tags None Referenced Files
Subscribers
Details
Use const with some read-only buffers in opencrypto APIs.
Diff Detail
Event TimelineComment Actions looks fine, have you verified that the tests in tests/sys/opencrypto pass? they are not present in your test plan. Also, is your testing tool in the tree? Comment Actions The testing tool is in the branch https://github.com/freebsd/freebsd/compare/master...bsdjhb:cryptocheck. (These changes are also in that branch, and my intention is to pull smaller bits out one at a time for review.) I will run the other tests, though they are currently still hardcoded for aesni0. |