crypto: declare int return type for set_field
This commit updates the set_field function pointer to return an int, and also updates the lambdas with a return statement.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
src