crypto: migrate setEngine to internal/errors
Migrate setEngine to use internal/errors, tho it's not entirely clear what conditions are required to trigger it.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
crypto